@font-face {
    font-family: 'Pelak';
    src: url('/static/fonts/Pelak-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pelak';
    src: url('/static/fonts/Pelak-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pelak';
    src: url('/static/fonts/Pelak-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pelak';
    src: url('/static/fonts/Pelak-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pelak';
    src: url('/static/fonts/Pelak-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


body,
button,
input,
select,
textarea {
    font-family: 'Pelak', Tahoma, Arial, sans-serif !important;
}

body {
    font-weight: 400;
}

p,
span,
td,
th,
input,
select,
textarea {
    font-weight: 400;
}

.menu-item,
.hx-unified-menu-item,
.btn,
.mini-btn,
.logout-btn,
.hx-unified-logout-btn {
    font-weight: 600;
}

h1,
h2,
h3,
h4,
.page-title,
.hx-unified-page-title,
.section-title,
.brand-title,
.hx-unified-brand-title {
    font-weight: 700;
}

.hero-title,
.login-title,
.hx-hero-content h2,
.hx-login-title h2 {
    font-weight: 900;
}

:root {

    --green: #2ed99a;
    --green-dark: #16a66f;
    --green-soft: #e9fff6;

    --dark: #0b1220;
    --dark-2: #111827;
    --dark-3: #1f2937;

    --bg: #f3f6f8;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;

    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.16);

    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    direction: rtl;
    font-family: "Pelak", Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(46, 217, 154, 0.18), transparent 28%),
        radial-gradient(circle at 85% 78%, rgba(15, 23, 42, 0.10), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #eef2f4 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

.app-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px;
    color: white;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        linear-gradient(160deg, rgba(11, 18, 32, 0.98), rgba(17, 24, 39, 0.98)),
        radial-gradient(circle at 40% 0%, rgba(46, 217, 154, 0.36), transparent 40%);
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(255,255,255,0.45) 25%, rgba(255,255,255,0.45) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.45) 75%, rgba(255,255,255,0.45) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255,255,255,0.45) 25%, rgba(255,255,255,0.45) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.45) 75%, rgba(255,255,255,0.45) 76%, transparent 77%);
    background-size: 64px 37px;
}

.sidebar-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: -70px;
    border-radius: 50%;
    background: rgba(46, 217, 154, 0.20);
    filter: blur(18px);
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    box-shadow: 0 18px 38px rgba(46, 217, 154, 0.28);
}

.brand h1 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.5px;
}

.brand p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 25px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.sidebar-user-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(46, 217, 154, 0.16);
    color: var(--green);
    border: 1px solid rgba(46, 217, 154, 0.32);
    font-weight: 900;
}

.sidebar-user strong {
    display: block;
    font-size: 14px;
}

.sidebar-user span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.nav-title {
    margin: 0 4px 10px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.22s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(46, 217, 154, 0.16);
    border-color: rgba(46, 217, 154, 0.32);
    transform: translateX(-4px);
}

.nav-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--green);
    font-weight: 900;
}

.nav-danger {
    color: #fecaca;
}

.nav-danger .nav-icon {
    color: #fb7185;
}

.sidebar-mini-card {
    margin-top: 25px;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(46, 217, 154, 0.16), rgba(255,255,255,0.055));
    border: 1px solid rgba(46, 217, 154, 0.18);
}

.sidebar-mini-card span {
    color: rgba(255,255,255,0.50);
    font-size: 12px;
}

.sidebar-mini-card strong {
    display: block;
    margin-top: 7px;
    font-size: 17px;
}

.sidebar-mini-card p {
    margin: 9px 0 0;
    color: rgba(255,255,255,0.55);
    line-height: 1.9;
    font-size: 12px;
}

.main-content {
    min-width: 0;
    padding: 30px;
}

.topbar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 168px;
    margin-bottom: 24px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.76)),
        radial-gradient(circle at 0% 50%, rgba(46, 217, 154, 0.19), transparent 34%);
    border: 1px solid rgba(255,255,255,0.80);
    box-shadow: var(--shadow-soft);
}

.topbar::before {
    content: "";
    position: absolute;
    left: -40px;
    top: -55px;
    width: 180px;
    height: 180px;
    border: 26px solid rgba(46, 217, 154, 0.16);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

.topbar > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    margin-bottom: 12px;
    color: var(--green-dark);
    background: var(--green-soft);
    border: 1px solid rgba(46, 217, 154, 0.20);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.topbar h2 {
    margin: 0;
    color: var(--dark);
    font-size: 28px;
    letter-spacing: -0.5px;
}

.topbar p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.9;
}

.topbar-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
    padding: 13px 16px;
    border-radius: 18px;
    background: var(--dark);
    color: white;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.16);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 7px rgba(46, 217, 154, 0.18);
}

.messages {
    margin-bottom: 20px;
}

.message {
    padding: 15px 17px;
    border-radius: 18px;
    background: var(--green-soft);
    color: #08734b;
    border: 1px solid rgba(46, 217, 154, 0.26);
    box-shadow: var(--shadow-soft);
}

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

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    padding: 24px;
    border-radius: 26px;
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.82);
    box-shadow: var(--shadow-soft);
    transition: 0.22s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.stat-card::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(180deg, var(--green), var(--green-dark));
}

.stat-card::after {
    content: "";
    position: absolute;
    left: -32px;
    top: -45px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(46, 217, 154, 0.12);
}

.stat-card.red::before {
    background: linear-gradient(180deg, var(--dark-3), var(--dark));
}

.stat-card.red::after {
    background: rgba(15, 23, 42, 0.08);
}

.stat-label {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 14px;
}

.stat-value {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 12px;
    color: var(--dark);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.section-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    margin-bottom: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.90);
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: var(--shadow-soft);
}

.section-card.hx-overflow-visible {
    overflow: visible;
    z-index: 20;
}

.section-card.hx-overflow-visible::before {
    display: none;
}

.section-card::before {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -80px;
    width: 190px;
    height: 190px;
    background: rgba(46, 217, 154, 0.075);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

.section-card > * {
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 23px;
}

.section-header p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.class-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 21px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, #ffffff, #fbfffd);
    border: 1px solid rgba(229, 231, 235, 0.92);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
    transition: 0.22s ease;
}

.class-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 5px solid var(--green);
}

.class-card::after {
    content: "";
    position: absolute;
    left: -36px;
    bottom: -42px;
    width: 110px;
    height: 110px;
    background: rgba(46, 217, 154, 0.11);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

.class-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.class-card h3 {
    position: relative;
    z-index: 1;
    margin: 8px 0 14px;
    color: var(--dark);
    font-size: 20px;
}

.meta-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.card-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 15px;
    padding: 11px 17px;
    font-family: inherit;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 14px 26px rgba(46, 217, 154, 0.24);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(46, 217, 154, 0.34);
}

.btn-light {
    color: var(--dark);
    background: #f3f4f6;
}

.btn-red {
    color: #b91c1c;
    background: #fee2e2;
}

.empty-state {
    text-align: center;
    padding: 42px 20px;
    border-radius: 24px;
    color: var(--muted);
    background:
        linear-gradient(135deg, #f9fafb, #ffffff);
    border: 1px dashed #d1d5db;
    line-height: 1.9;
}

.students-list {
    display: grid;
    gap: 12px;
}

.student-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 20px;
    background: #ffffff;
    transition: 0.2s ease;
}

.student-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.student-name {
    font-weight: 900;
    color: var(--dark);
}

.student-phone {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.8;
}

.attendance-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.attendance-table th {
    color: var(--muted);
    text-align: right;
    font-size: 13px;
    padding: 0 14px;
}

.attendance-table td {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px;
}

.attendance-table td:first-child {
    border-right: 1px solid var(--border);
    border-radius: 0 18px 18px 0;
}

.attendance-table td:last-child {
    border-left: 1px solid var(--border);
    border-radius: 18px 0 0 18px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #f9fafb;
    border-radius: 15px;
    padding: 12px;
    font-family: inherit;
    outline: none;
    transition: 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(46, 217, 154, 0.13);
    background: #ffffff;
}

.form-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

@media (max-width: 1180px) {
    .classes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .stats-grid,
    .classes-grid {
        grid-template-columns: 1fr;
    }

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

    .topbar-badge {
        width: fit-content;
    }
}

@media (max-width: 700px) {
    .main-content {
        padding: 16px;
    }

    .sidebar {
        padding: 20px;
    }

    .topbar {
        padding: 22px;
        border-radius: 24px;
    }

    .section-card {
        padding: 20px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .attendance-table {
        min-width: 650px;
    }

    .table-scroll {
        overflow-x: auto;
    }
}

.logout-form {
    margin: 0;
    padding: 0;
}

.logout-button {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(46, 217, 154, 0.45);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 217, 154, 0.75);
}

.coach-hero {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 18px;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(17, 24, 39, 0.92)),
        radial-gradient(circle at left top, rgba(46, 217, 154, 0.28), transparent 35%);
    color: white;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.coach-hero::before {
    content: "";
    position: absolute;
    left: -60px;
    top: -70px;
    width: 190px;
    height: 190px;
    background: rgba(46, 217, 154, 0.18);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

.coach-hero > * {
    position: relative;
    z-index: 1;
}

.coach-hero-badge {
    display: inline-flex;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(46, 217, 154, 0.16);
    color: var(--green);
    border: 1px solid rgba(46, 217, 154, 0.25);
    font-size: 12px;
    font-weight: 800;
}

.coach-hero h3 {
    margin: 15px 0 8px;
    font-size: 28px;
}

.coach-hero p {
    margin: 0;
    line-height: 2;
    color: rgba(255, 255, 255, 0.68);
}

.coach-hero-card {
    display: grid;
    align-content: center;
    justify-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.coach-hero-card span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.coach-hero-card strong {
    margin-top: 8px;
    font-size: 42px;
    color: var(--green);
}

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

.today-card {
    padding: 22px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, #ffffff, #fbfffd);
    border: 1px solid rgba(229, 231, 235, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.today-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 5px solid var(--green);
}

.today-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.today-time,
.today-session {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.today-time {
    color: #08734b;
    background: var(--green-soft);
}

.today-session {
    color: var(--dark);
    background: #f3f4f6;
}

.today-card h4 {
    position: relative;
    z-index: 1;
    margin: 0 0 13px;
    color: var(--dark);
    font-size: 22px;
}

.today-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.lesson-preview {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 15px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px dashed #d1d5db;
}

.lesson-preview span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.lesson-preview strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
}

.lesson-preview p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

.schedule-list {
    display: grid;
    gap: 12px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 110px 1fr 150px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.92);
    transition: 0.2s ease;
}

.schedule-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.schedule-day {
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    color: #08734b;
    background: var(--green-soft);
    font-weight: 900;
    font-size: 13px;
}

.schedule-info strong {
    display: block;
    color: var(--dark);
    margin-bottom: 6px;
}

.schedule-info span {
    color: var(--muted);
    font-size: 13px;
}

.schedule-time {
    color: var(--dark);
    font-weight: 900;
    text-align: left;
}

.disabled-btn {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .coach-hero {
        grid-template-columns: 1fr;
    }

    .coach-hero-card {
        min-height: 130px;
    }

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

    .schedule-row {
        grid-template-columns: 1fr;
    }

    .schedule-time {
        text-align: right;
    }
}

.report-page-card {
    max-width: 1050px;
}

.report-class-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.report-class-summary div {
    padding: 18px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.report-class-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.report-class-summary strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
}

.report-alert {
    margin-bottom: 20px;
    padding: 15px 17px;
    border-radius: 18px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    line-height: 1.9;
}

.report-form {
    display: grid;
    gap: 18px;
}

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

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 900;
    font-size: 14px;
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 2;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .report-class-summary,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.supervisor-hero {
    background:
        linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(17, 24, 39, 0.92)),
        radial-gradient(circle at left top, rgba(46, 217, 154, 0.25), transparent 35%);
    color: white;
}

.supervisor-hero h3 {
    margin: 14px 0 8px;
    font-size: 28px;
}

.supervisor-hero p {
    margin: 0;
    color: rgba(255,255,255,0.68);
    line-height: 2;
}

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

.report-card-mini {
    padding: 21px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.92);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
    position: relative;
    overflow: hidden;
}

.report-card-mini::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 5px solid var(--green);
}

.report-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.report-card-top span,
.report-card-top small {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.report-card-top span {
    color: #08734b;
    background: var(--green-soft);
}

.report-card-top small {
    color: var(--dark);
    background: #f3f4f6;
}

.report-card-mini h4 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 19px;
}

.report-card-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.report-card-mini p {
    position: relative;
    z-index: 1;
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

.report-detail-card {
    max-width: 1100px;
}

.report-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.report-detail-grid div {
    padding: 18px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.report-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.report-detail-grid strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
}

.report-text-box {
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    margin-bottom: 16px;
}

.report-text-box span {
    display: block;
    color: var(--green-dark);
    font-weight: 900;
    margin-bottom: 10px;
}

.report-text-box p {
    margin: 0;
    color: var(--text);
    line-height: 2.1;
}

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

.muted-text {
    color: var(--muted) !important;
}

.feedback-form-card {
    max-width: 1100px;
}

.checkbox-field {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.nice-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.95);
    cursor: pointer;
}

.nice-checkbox input {
    width: auto;
}

.feedback-list {
    display: grid;
    gap: 14px;
}

.feedback-item {
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.feedback-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.feedback-head strong {
    display: block;
    color: var(--dark);
}

.feedback-head span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.feedback-score {
    min-width: 64px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #08734b;
    background: var(--green-soft);
    font-weight: 900;
}

.feedback-item p {
    color: var(--text);
    line-height: 2;
}

.feedback-status {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.feedback-status.approved {
    color: #08734b;
    background: var(--green-soft);
}

.feedback-status.pending {
    color: #9a3412;
    background: #fff7ed;
}

@media (max-width: 1100px) {
    .report-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .report-cards-grid,
    .report-detail-grid,
    .report-two-columns {
        grid-template-columns: 1fr;
    }
}

.student-search-hero {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 22px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(17, 24, 39, 0.92)),
        radial-gradient(circle at left top, rgba(46, 217, 154, 0.25), transparent 35%);
    color: white;
}

.student-search-hero h3 {
    margin: 14px 0 8px;
    font-size: 30px;
}

.student-search-hero p {
    margin: 0;
    color: rgba(255,255,255,0.68);
    line-height: 2;
}

.student-search-form {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 12px;
    align-items: center;
}

.student-search-form input {
    height: 48px;
    background: rgba(255,255,255,0.10);
    color: white;
    border-color: rgba(255,255,255,0.18);
}

.student-search-form input::placeholder {
    color: rgba(255,255,255,0.50);
}

.student-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.student-result-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
    transition: 0.2s ease;
}

.student-result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.student-result-avatar,
.student-profile-avatar {
    min-width: 58px;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 14px 28px rgba(46, 217, 154, 0.22);
}

.student-result-card h4 {
    margin: 0 0 7px;
    color: var(--dark);
    font-size: 18px;
}

.student-result-card p {
    margin: 3px 0;
    color: var(--muted);
    font-size: 13px;
}

.student-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.84)),
        radial-gradient(circle at left top, rgba(46, 217, 154, 0.18), transparent 35%);
}

.student-profile-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.student-profile-hero h3 {
    margin: 12px 0 8px;
    color: var(--dark);
    font-size: 30px;
}

.student-profile-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

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

.evaluation-card {
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
}

.evaluation-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.evaluation-top span,
.evaluation-top strong {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
}

.evaluation-top span {
    color: #08734b;
    background: var(--green-soft);
}

.evaluation-top strong {
    color: var(--dark);
    background: #f3f4f6;
}

.evaluation-card h4 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 19px;
}

.evaluation-card p {
    color: var(--muted);
    line-height: 2;
}

@media (max-width: 1100px) {
    .student-search-hero {
        grid-template-columns: 1fr;
    }

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

    .evaluation-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {
    .student-result-grid {
        grid-template-columns: 1fr;
    }

    .student-search-form {
        grid-template-columns: 1fr;
    }

    .student-profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-profile-main {
        align-items: flex-start;
        flex-direction: column;
    }
}

.attendance-student-list {
    display: grid;
    gap: 16px;
}

.attendance-student-card {
    padding: 20px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
    position: relative;
    overflow: hidden;
}

.attendance-student-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 5px solid var(--green);
}

.attendance-student-card > * {
    position: relative;
    z-index: 1;
}

.attendance-student-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.attendance-student-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 20px;
}

.attendance-student-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.attendance-form-grid {
    display: grid;
    grid-template-columns: 160px 1fr 170px 1fr;
    gap: 14px;
    align-items: end;
}

@media (max-width: 1150px) {
    .attendance-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .attendance-student-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .attendance-form-grid {
        grid-template-columns: 1fr;
    }
}

button,
input,
select,
textarea {
    font-family: "Pelak", Tahoma, Arial, sans-serif;
}

.evaluation-hero,
.evaluation-form-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(17, 24, 39, 0.92)),
        radial-gradient(circle at left top, rgba(46, 217, 154, 0.25), transparent 35%);
    color: white;
}

.evaluation-hero h3,
.evaluation-form-hero h3 {
    margin: 14px 0 8px;
    font-size: 30px;
}

.evaluation-hero p,
.evaluation-form-hero p {
    margin: 0;
    color: rgba(255,255,255,0.68);
    line-height: 2;
}

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

.evaluation-access-grid div {
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.evaluation-access-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.access-open {
    color: #08734b;
}

.access-closed {
    color: #b91c1c;
}

.hx-eval-access-form {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.hx-eval-access-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hx-eval-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    font-weight: 850;
    color: #0f172a;
}

.hx-eval-access-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    max-width: 920px;
}

.hx-eval-period-box {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    padding: 16px;
    display: grid;
    gap: 14px;
}

.hx-eval-period-box h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
    color: #071112;
}

.hx-eval-period-box .hx-jalali-date-field {
    max-width: 280px;
}

.hx-eval-period-box .hx-jalali-date-input {
    height: 42px;
    border-radius: 14px;
}

.hx-eval-period-box .hx-jalali-calendar {
    width: 300px;
}

@media (max-width: 900px) {
    .hx-eval-access-dates {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hx-eval-period-box .hx-jalali-date-field {
        max-width: 100%;
    }
}

.evaluation-template-list,
.evaluation-student-list,
.evaluation-item-list {
    display: grid;
    gap: 16px;
}

.evaluation-template-card,
.evaluation-student-row,
.evaluation-item-card {
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
}

.evaluation-template-card h4,
.evaluation-student-row h4,
.evaluation-item-card h4 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 20px;
}

.evaluation-template-card p,
.evaluation-student-row p,
.evaluation-item-card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.9;
}

.evaluation-student-row {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 18px;
    align-items: center;
}

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

.evaluation-mini-status {
    padding: 14px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.95);
    display: grid;
    gap: 10px;
}

.evaluation-mini-status span {
    color: var(--muted);
    font-size: 12px;
}

.evaluation-mini-status strong {
    color: var(--dark);
}

.evaluation-score-fields {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    margin-top: 14px;
}

@media (max-width: 1000px) {
    .evaluation-student-row {
        grid-template-columns: 1fr;
    }

    .evaluation-actions,
    .evaluation-access-grid {
        grid-template-columns: 1fr;
    }

    .evaluation-hero,
    .evaluation-form-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .evaluation-score-fields {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* Hexagon Final Visual Upgrade */
/* ============================= */

.hx-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    background:
        radial-gradient(circle at 18% 8%, rgba(46, 217, 154, 0.14), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f3f6f8 45%, #eef2f4 100%);
}

.hx-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 30px 26px;
    overflow-y: auto;
    overflow-x: hidden;
    color: white;
    background:
        linear-gradient(160deg, rgba(4, 14, 28, 0.98), rgba(8, 22, 42, 0.96)),
        radial-gradient(circle at 30% 0%, rgba(46, 217, 154, 0.35), transparent 36%);
    border-left: 1px solid rgba(46, 217, 154, 0.20);
}

.hx-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.35) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.35) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.35) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.35) 76%, transparent 77%);
    background-size: 72px 42px;
    pointer-events: none;
}

.hx-sidebar > * {
    position: relative;
    z-index: 2;
}

.hx-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hx-logo-img {
    width: 105px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(46, 217, 154, 0.25));
}

.hx-sidebar-brand h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
}

.hx-sidebar-brand p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
}

.hx-user-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hx-user-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #2ed99a;
    background: rgba(46, 217, 154, 0.12);
    border: 1px solid rgba(46, 217, 154, 0.28);
    font-weight: 900;
}

.hx-user-card strong {
    display: block;
    font-size: 15px;
}

.hx-user-card span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,0.52);
    font-size: 12px;
}

.hx-nav {
    display: grid;
    gap: 10px;
}

.hx-nav-title {
    margin: 8px 5px 4px;
    color: rgba(255,255,255,0.42);
    font-size: 12px;
}

.hx-nav-link {
    width: 100%;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 19px;
    color: rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.065);
    border: 1px solid rgba(255,255,255,0.07);
    transition: 0.22s ease;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.hx-nav-link:hover {
    color: #ffffff;
    background: rgba(46, 217, 154, 0.16);
    border-color: rgba(46, 217, 154, 0.35);
    box-shadow: 0 12px 28px rgba(46, 217, 154, 0.12);
    transform: translateX(-4px);
}

.hx-nav-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #2ed99a;
    background: rgba(46, 217, 154, 0.12);
    border: 1px solid rgba(46, 217, 154, 0.16);
    font-weight: 900;
}

.hx-nav-danger {
    color: #fecaca;
}

.hx-nav-danger .hx-nav-icon {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.18);
}

.hx-logout-form {
    margin: 0;
    padding: 0;
}

.hx-sidebar-status {
    margin-top: 24px;
    padding: 20px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(46, 217, 154, 0.16), rgba(255,255,255,0.06));
    border: 1px solid rgba(46, 217, 154, 0.20);
}

.hx-sidebar-status span {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
}

.hx-sidebar-status strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
}

.hx-sidebar-status p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.58);
    line-height: 1.9;
    font-size: 12px;
}

.hx-main {
    min-width: 0;
    padding: 32px;
}

.hx-topbar {
    min-height: 172px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 32px;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78)),
        radial-gradient(circle at 0% 50%, rgba(46, 217, 154, 0.19), transparent 34%);
    border: 1px solid rgba(255,255,255,0.86);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hx-topbar::before {
    content: "";
    position: absolute;
    left: -58px;
    top: -62px;
    width: 190px;
    height: 190px;
    background: rgba(46, 217, 154, 0.12);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

.hx-topbar > * {
    position: relative;
    z-index: 1;
}

.hx-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 13px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #08734b;
    background: #e9fff6;
    border: 1px solid rgba(46, 217, 154, 0.22);
    font-size: 12px;
    font-weight: 900;
}

.hx-topbar h2 {
    margin: 0;
    color: #08111f;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
}

.hx-topbar p {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.9;
}

.hx-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hx-status-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 17px;
    border-radius: 18px;
    color: white;
    background: #08111f;
    box-shadow: 0 18px 36px rgba(8, 17, 31, 0.16);
}

.hx-status-pill span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ed99a;
    box-shadow: 0 0 0 7px rgba(46, 217, 154, 0.18);
}

.hx-sidebar::-webkit-scrollbar {
    width: 6px;
}

.hx-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
}

.hx-sidebar::-webkit-scrollbar-thumb {
    background: rgba(46, 217, 154, 0.45);
    border-radius: 999px;
}

/* Login Page */

.hx-login-body {
    min-height: 100vh;
    margin: 0;
    direction: rtl;
    background:
        radial-gradient(circle at 16% 18%, rgba(46, 217, 154, 0.22), transparent 28%),
        linear-gradient(135deg, #03101f 0%, #07182c 45%, #05251d 100%);
    display: grid;
    place-items: center;
    padding: 32px;
    overflow-x: hidden;
}

.hx-login-shell {
    width: min(1500px, 100%);
    min-height: 780px;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.34);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.12);
}

.hx-login-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92)),
        radial-gradient(circle at 20% 5%, rgba(46, 217, 154, 0.10), transparent 30%);
    padding: 54px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hx-login-logo-wrap {
    text-align: center;
    margin-bottom: 36px;
}

.hx-login-logo {
    width: 112px;
    height: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.hx-login-logo-wrap h1 {
    margin: 0;
    color: #07182c;
    font-size: 30px;
    font-weight: 900;
}

.hx-login-logo-wrap p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
}

.hx-login-title {
    margin-bottom: 28px;
}

.hx-login-title span {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    color: #08734b;
    background: #e9fff6;
    border: 1px solid rgba(46, 217, 154, 0.22);
    font-size: 12px;
    font-weight: 900;
}

.hx-login-title h2 {
    margin: 17px 0 8px;
    color: #08111f;
    font-size: 32px;
    font-weight: 900;
}

.hx-login-title p {
    margin: 0;
    color: #64748b;
}

.hx-login-error {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.hx-login-form {
    display: grid;
    gap: 18px;
}

.hx-login-field label {
    display: block;
    margin-bottom: 9px;
    color: #08111f;
    font-size: 14px;
    font-weight: 900;
}

.hx-input-wrap {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 17px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    transition: 0.2s ease;
}

.hx-input-wrap:focus-within {
    border-color: #2ed99a;
    box-shadow: 0 0 0 5px rgba(46, 217, 154, 0.12);
}

.hx-input-wrap span {
    color: #16a66f;
}

.hx-input-wrap input {
    flex: 1;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.hx-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
}

.hx-login-options label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hx-login-options input {
    width: auto;
}

.hx-login-options a {
    color: #16a66f;
    font-weight: 800;
}

.hx-login-button {
    height: 58px;
    border: none;
    border-radius: 18px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, #2ed99a, #08734b);
    box-shadow: 0 18px 36px rgba(46, 217, 154, 0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: 0.22s ease;
}

.hx-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(46, 217, 154, 0.34);
}

.hx-login-footer {
    margin: 24px 0 0;
    color: #64748b;
    text-align: center;
    font-size: 13px;
    line-height: 1.9;
}

.hx-login-hero {
    position: relative;
    overflow: hidden;
    padding: 70px;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    color: white;
    background:
        linear-gradient(135deg, rgba(3, 16, 31, 0.92), rgba(3, 16, 31, 0.75)),
        radial-gradient(circle at 78% 18%, rgba(46, 217, 154, 0.22), transparent 32%),
        linear-gradient(135deg, #03101f, #06251e);
}

.hx-login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(255,255,255,0.40) 25%, rgba(255,255,255,0.40) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.40) 75%, rgba(255,255,255,0.40) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255,255,255,0.40) 25%, rgba(255,255,255,0.40) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.40) 75%, rgba(255,255,255,0.40) 76%, transparent 77%);
    background-size: 82px 48px;
}

.hx-login-hero > * {
    position: relative;
    z-index: 1;
}

.hx-hero-logo img {
    width: 170px;
    height: auto;
    object-fit: contain;
    margin-bottom: 34px;
    filter: drop-shadow(0 20px 40px rgba(46, 217, 154, 0.22));
}

.hx-hero-content {
    transform: translateX(12px);
}

.hx-hero-content h2 {
    margin: 0;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.hx-hero-content h2 span {
    color: #2ed99a;
}

.hx-hero-content p {
    max-width: 620px;
    margin: 22px auto 0;
    color: rgba(255,255,255,0.76);
    font-size: 18px;
    line-height: 2.15;
}

.hx-hero-stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 70px;
    transform: translateX(12px);
}

.hx-hero-stats div {
    min-width: 170px;
    padding: 18px 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
}

.hx-hero-stats span {
    display: block;
    color: white;
    font-size: 26px;
    font-weight: 900;
}

.hx-hero-stats p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}

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

    .hx-sidebar {
        position: relative;
        height: auto;
    }

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

    .hx-login-hero {
        min-height: 520px;
    }

    .hx-hero-stats {
        flex-wrap: wrap;
        transform: none;
    }

    .hx-hero-content {
        transform: none;
    }
}

@media (max-width: 700px) {
    .hx-main {
        padding: 18px;
    }

    .hx-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .hx-topbar h2 {
        font-size: 27px;
    }

    .hx-login-body {
        padding: 14px;
    }

    .hx-login-card {
        padding: 34px 22px;
    }

    .hx-login-hero {
        padding: 40px 22px;
    }

    .hx-hero-content h2 {
        font-size: 32px;
    }

    .hx-hero-stats {
        flex-direction: column;
        width: 100%;
    }

    .hx-hero-stats div {
        width: 100%;
        min-width: 0;
    }
}

/* ================================
   Unified Sidebar For All Pages
================================ */

.hx-unified-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    direction: rtl;
    background:
        radial-gradient(circle at top left, rgba(0, 214, 143, 0.14), transparent 30%),
        #f4f7f6;
}

.hx-unified-sidebar {
    width: 285px;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 26px 20px;
    color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(0, 214, 143, 0.28), transparent 34%),
        linear-gradient(180deg, #05241f 0%, #083c32 52%, #041613 100%);
    box-shadow: -18px 0 45px rgba(4, 22, 19, 0.22);
    z-index: 10;
}

.hx-unified-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.35) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.35) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.35) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.35) 76%, transparent 77%);
    background-size: 72px 42px;
    pointer-events: none;
}

.hx-unified-sidebar > * {
    position: relative;
    z-index: 1;
}

.hx-unified-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.hx-unified-brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, #00d68f, #00a878);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(0, 214, 143, 0.34);
    overflow: hidden;
    flex-shrink: 0;
}

.hx-unified-brand-mark img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.hx-unified-brand-mark span {
    display: none;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.hx-unified-brand-title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.hx-unified-brand-subtitle {
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.62);
}

.hx-unified-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 22px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hx-unified-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background: rgba(0,214,143,0.16);
    border: 1px solid rgba(0,214,143,0.30);
    color: #00d68f;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.hx-unified-user-card strong {
    display: block;
    font-size: 14px;
}

.hx-unified-user-card span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.58);
    font-size: 12px;
}

.hx-unified-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hx-unified-menu-title {
    margin: 6px 6px 4px;
    color: rgba(255,255,255,0.44);
    font-size: 12px;
}

.hx-unified-menu-item {
    min-height: 52px;
    border-radius: 17px;
    padding: 0 16px;
    color: rgba(255,255,255,0.76);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: 0.22s ease;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.055);
}

.hx-unified-menu-item:hover {
    color: #fff;
    background: rgba(0, 214, 143, 0.16);
    border-color: rgba(0, 214, 143, 0.30);
    box-shadow: inset 4px 0 0 #00d68f;
    transform: translateX(-3px);
}

.hx-unified-logout-form {
    margin-top: 24px;
}

.hx-unified-logout-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 17px;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.82);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.hx-unified-logout-btn:hover {
    background: rgba(255,255,255,0.17);
    color: #fff;
}

.hx-unified-side-status {
    margin-top: 24px;
    border-radius: 24px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(0,214,143,0.16), rgba(255,255,255,0.06));
    border: 1px solid rgba(0,214,143,0.20);
}

.hx-unified-side-status span {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
}

.hx-unified-side-status strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
}

.hx-unified-side-status p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.58);
    line-height: 1.9;
    font-size: 12px;
}

.hx-unified-main {
    margin-right: 285px;
    padding: 32px;
    min-height: 100vh;
}

.hx-unified-topbar {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82)),
        radial-gradient(circle at left, rgba(0,214,143,0.16), transparent 35%);
    border: 1px solid #e4ece9;
    border-radius: 32px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    box-shadow: 0 18px 45px rgba(8, 60, 50, 0.07);
    margin-bottom: 22px;
}

.hx-unified-topbar::before {
    content: "";
    position: absolute;
    left: -55px;
    top: -65px;
    width: 180px;
    height: 180px;
    border-radius: 42px;
    transform: rotate(18deg);
    background: rgba(0,214,143,0.12);
}

.hx-unified-topbar > * {
    position: relative;
    z-index: 1;
}

.hx-unified-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    color: #08734b;
    background: #e9fff6;
    border: 1px solid rgba(0,214,143,0.24);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hx-unified-page-title {
    margin: 0;
    font-size: 31px;
    font-weight: 700;
    color: #10201c;
}

.hx-unified-page-desc {
    margin: 9px 0 0;
    color: #6b7c78;
    font-size: 14px;
    line-height: 2;
}

.hx-unified-user-pill {
    min-width: 185px;
    min-height: 52px;
    border-radius: 17px;
    background: #f8fbfa;
    border: 1px solid #dce8e4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #263f39;
    font-weight: 700;
    font-size: 14px;
    padding: 0 18px;
}

@media (max-width: 780px) {
    .hx-unified-layout {
        display: block;
    }

    .hx-unified-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-radius: 0 0 28px 28px;
    }

    .hx-unified-main {
        margin-right: 0;
        padding: 20px;
    }

    .hx-unified-topbar {
        display: block;
    }

    .hx-unified-user-pill {
        margin-top: 16px;
    }
}

/* ================================
   FIX UNIFIED LAYOUT WIDTH BUG
   مشکل فشرده شدن محتوای صفحات
================================ */

.hx-unified-layout {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
    direction: rtl !important;
    background:
        radial-gradient(circle at top left, rgba(0, 214, 143, 0.14), transparent 30%),
        #f4f7f6 !important;
}

.hx-unified-sidebar {
    width: 285px !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 100 !important;
}

.hx-unified-main {
    width: calc(100% - 285px) !important;
    max-width: calc(100% - 285px) !important;
    min-height: 100vh !important;
    margin-right: 285px !important;
    margin-left: 0 !important;
    padding: 32px !important;
    overflow-x: hidden !important;
}

/* همه کارت‌ها و سکشن‌ها داخل صفحه، عرض درست بگیرند */
.hx-unified-main > section,
.hx-unified-main > div,
.hx-unified-main .section-card,
.hx-unified-main .student-search-hero,
.hx-unified-main .student-profile-hero,
.hx-unified-main .report-page-card,
.hx-unified-main .report-detail-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* مخصوص صفحه جستجوی دانش‌آموز */
.student-search-hero {
    width: 100% !important;
    max-width: 100% !important;
}

.student-search-form {
    width: 100% !important;
}

.student-result-grid {
    width: 100% !important;
}

/* جلوگیری از افتادن متن‌ها به شکل باریک */
.hx-unified-main * {
    writing-mode: horizontal-tb !important;
}

/* موبایل */
@media (max-width: 780px) {
    .hx-unified-sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        border-radius: 0 0 28px 28px !important;
    }

    .hx-unified-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        padding: 20px !important;
    }
}

/* ================================
   FORCE PELAK FONT EVERYWHERE
   اجبار فونت پلاک در کل پنل
================================ */

html,
body,
body *,
button,
input,
select,
textarea,
label,
a,
p,
span,
div,
h1,
h2,
h3,
h4,
h5,
h6,
td,
th {
    font-family: 'Pelak', Tahoma, Arial, sans-serif !important;
}

body {
    font-weight: 400 !important;
}

p,
span,
div,
td,
th,
label,
input,
select,
textarea {
    font-weight: 400 !important;
}

a,
button,
.btn,
.mini-btn,
.menu-item,
.hx-unified-menu-item,
.hx-login-button,
.logout-btn,
.hx-unified-logout-btn {
    font-weight: 600 !important;
}

h3,
h4,
.section-title,
.class-name,
.student-name,
.hx-login-field label {
    font-weight: 700 !important;
}

h1,
h2,
.page-title,
.hx-unified-page-title,
.hx-login-title h2,
.hx-hero-content h2,
.coach-hero h2,
.hero-title,
.login-title {
    font-weight: 900 !important;
    letter-spacing: -0.8px;
}

/* مخصوص صفحه ورود */
.hx-login-logo-wrap h1 {
    font-weight: 900 !important;
}

.hx-login-title h2 {
    font-size: 34px !important;
    font-weight: 900 !important;
}

.hx-hero-content h2 {
    font-size: 48px !important;
    font-weight: 900 !important;
}

.hx-hero-content p {
    font-weight: 500 !important;
}

.hx-login-field label {
    font-weight: 700 !important;
}

.hx-input-wrap input {
    font-weight: 500 !important;
}

.hx-login-button {
    font-weight: 700 !important;
}

/* ================================
   Login Page Final Size Fix
   کوچک‌تر شدن صفحه ورود و حذف اسکرول
================================ */

.hx-login-body {
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 18px !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
}

.hx-login-shell {
    width: min(1380px, 100%) !important;
    height: min(690px, calc(100vh - 36px)) !important;
    min-height: unset !important;
    grid-template-columns: 1.05fr 0.95fr !important;
    border-radius: 30px !important;
}

.hx-login-card {
    padding: 30px 54px !important;
    justify-content: center !important;
}

.hx-login-logo-wrap {
    margin-bottom: 22px !important;
}

.hx-login-logo {
    width: 96px !important;
    max-height: 78px !important;
    object-fit: contain !important;
    margin-bottom: 8px !important;
}

.hx-login-logo-black {
    width: 118px !important;
    max-height: 86px !important;
}

.hx-login-logo-wrap h1 {
    margin-top: 0 !important;
    font-size: 27px !important;
}

.hx-login-logo-wrap p {
    margin-top: 4px !important;
    font-size: 13px !important;
}

.hx-login-title {
    margin-bottom: 20px !important;
}

.hx-login-title span {
    display: none !important;
}

.hx-login-title h2 {
    margin: 0 0 8px !important;
    font-size: 31px !important;
}

.hx-login-title p {
    font-size: 13px !important;
}

.hx-login-form {
    gap: 14px !important;
}

.hx-login-field label {
    margin-bottom: 7px !important;
}

.hx-input-wrap {
    height: 52px !important;
    border-radius: 16px !important;
}

.hx-login-options {
    margin-top: 0 !important;
}

.hx-login-button {
    height: 54px !important;
    border-radius: 17px !important;
}

.hx-login-footer {
    margin-top: 16px !important;
}

.hx-login-hero {
    padding: 48px !important;
}

.hx-hero-logo img {
    width: 138px !important;
    margin-bottom: 28px !important;
}

.hx-hero-content h2 {
    font-size: 42px !important;
}

.hx-hero-content p {
    max-width: 560px !important;
    margin-top: 16px !important;
    font-size: 16px !important;
    line-height: 2 !important;
}

.hx-hero-stats {
    margin-top: 48px !important;
}

.hx-hero-stats div {
    min-width: 185px !important;
    padding: 18px 22px !important;
    border-radius: 22px !important;
}

.hx-hero-stats span {
    font-size: 28px !important;
}

/* برای لپ‌تاپ‌هایی که ارتفاع صفحه کمتر است */
@media (max-height: 760px) {
    .hx-login-shell {
        height: min(640px, calc(100vh - 28px)) !important;
    }

    .hx-login-card {
        padding: 24px 46px !important;
    }

    .hx-login-logo {
        width: 82px !important;
        max-height: 68px !important;
    }

    .hx-login-logo-black {
        width: 104px !important;
        max-height: 76px !important;
    }

    .hx-login-title h2 {
        font-size: 28px !important;
    }

    .hx-input-wrap {
        height: 48px !important;
    }

    .hx-login-button {
        height: 50px !important;
    }

    .hx-hero-content h2 {
        font-size: 38px !important;
    }

    .hx-hero-stats {
        margin-top: 34px !important;
    }
}

@media (max-width: 900px) {
    .hx-login-body {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        padding: 14px !important;
    }

    .hx-login-shell {
        height: auto !important;
        grid-template-columns: 1fr !important;
    }

    .hx-login-hero {
        min-height: 420px !important;
    }
}

/* ================================
   Forgot Password Page
================================ */

.hx-forgot-shell {
    width: min(560px, 100%);
    min-height: 620px;
    display: grid;
    place-items: center;
}

.hx-forgot-card {
    width: 100%;
    padding: 46px 54px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92)),
        radial-gradient(circle at 20% 5%, rgba(46, 217, 154, 0.10), transparent 30%);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28);
}

.hx-forgot-success {
    padding: 20px;
    border-radius: 22px;
    background: #e9fff6;
    border: 1px solid rgba(46, 217, 154, 0.28);
    color: #08734b;
    line-height: 2;
    margin-bottom: 18px;
}

.hx-forgot-success strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.hx-forgot-success p {
    margin: 0;
    color: #08734b;
}

.hx-forgot-back {
    text-decoration: none;
}

.hx-forgot-login-link {
    display: block;
    margin-top: 18px;
    color: #16a66f;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 700px) {
    .hx-forgot-card {
        padding: 34px 22px;
    }
}

/* ================================
   Unified Attendance Page
================================ */

.hx-attendance-card {
    padding: 26px !important;
}

.hx-attendance-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 24px;
    background: #f8fbfa;
    border: 1px solid #e4ece9;
}

.hx-attendance-toolbar .form-field {
    min-width: 230px;
}

.hx-attendance-today {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #08734b;
    background: #e9fff6;
    border: 1px solid rgba(0, 214, 143, 0.24);
    font-weight: 700;
}

.hx-attendance-list {
    display: grid;
    gap: 14px;
}

.hx-attendance-row {
    display: grid;
    grid-template-columns: 1.3fr 150px 1fr 170px 1fr;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #edf3f1;
    box-shadow: 0 10px 26px rgba(8, 60, 50, 0.045);
}

.hx-attendance-student {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hx-attendance-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #00d68f, #00a878);
    font-weight: 700;
    flex-shrink: 0;
}

.hx-attendance-student h4 {
    margin: 0 0 6px;
    color: #10201c;
    font-size: 16px;
    font-weight: 700;
}

.hx-attendance-student p {
    margin: 0;
    color: #6b7c78;
    font-size: 12px;
}

.hx-attendance-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (max-width: 1250px) {
    .hx-attendance-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .hx-attendance-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hx-attendance-toolbar .form-field {
        min-width: 0;
    }

    .hx-attendance-row {
        grid-template-columns: 1fr;
    }
}

.report-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.report-date-pill {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #08734b;
    background: #e9fff6;
    border: 1px solid rgba(0, 214, 143, 0.24);
    font-weight: 700;
    white-space: nowrap;
}

/* ================================
   Evaluation Class Select Page
================================ */

.evaluation-select-hero {
    background:
        radial-gradient(circle at left top, rgba(0, 214, 143, 0.22), transparent 34%),
        linear-gradient(135deg, #071b30 0%, #101827 58%, #06251f 100%) !important;
    color: #ffffff !important;
}

.evaluation-select-hero h3 {
    margin: 14px 0 8px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
}

.evaluation-select-hero p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    line-height: 2;
}

.evaluation-class-grid {
    display: grid;
    gap: 16px;
}

.evaluation-class-card {
    display: grid;
    grid-template-columns: 70px 1fr 260px;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e4ece9;
    box-shadow: 0 14px 35px rgba(8, 60, 50, 0.055);
}

.evaluation-class-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #00d68f, #00a878);
    font-size: 24px;
}

.evaluation-class-content h4 {
    margin: 0 0 10px;
    color: #10201c;
    font-size: 20px;
    font-weight: 800;
}

.evaluation-class-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #6b7c78;
    font-size: 13px;
    line-height: 1.9;
}

.evaluation-class-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1000px) {
    .evaluation-class-card {
        grid-template-columns: 1fr;
    }

    .evaluation-class-actions {
        justify-content: flex-start;
    }
}

/* ================================
   Better Remember Me Checkbox
================================ */

.hx-remember-check {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    cursor: pointer !important;
    user-select: none !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.hx-remember-check input {
    display: none !important;
}

.hx-remember-box {
    width: 21px !important;
    height: 21px !important;
    border-radius: 7px !important;
    display: grid !important;
    place-items: center !important;
    background: #ffffff !important;
    border: 1px solid #d9e5e1 !important;
    box-shadow: 0 5px 14px rgba(8, 60, 50, 0.08) !important;
    transition: 0.22s ease !important;
}

.hx-remember-tick {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    transform: scale(0) !important;
    transition: 0.18s ease !important;
}

.hx-remember-check input:checked + .hx-remember-box {
    background: linear-gradient(135deg, #00d68f, #00a878) !important;
    border-color: #00a878 !important;
    box-shadow: 0 10px 24px rgba(0, 168, 120, 0.24) !important;
}

.hx-remember-check input:checked + .hx-remember-box .hx-remember-tick {
    transform: scale(1) !important;
}

.hx-remember-check:hover .hx-remember-box {
    border-color: #00d68f !important;
}

/* ================================
   Role Based Panel Colors
   coach = green stays the same
================================ */

.hx-role-coach {
    --role-primary: #00d68f;
    --role-secondary: #00a878;
    --role-dark-1: #05241f;
    --role-dark-2: #083c32;
    --role-soft: #e9fff6;
    --role-text: #08734b;
    --role-glow: rgba(0, 214, 143, 0.28);
}

.hx-role-lifeguard {
    --role-primary: #14b8a6;
    --role-secondary: #0f766e;
    --role-dark-1: #042f2e;
    --role-dark-2: #064e45;
    --role-soft: #ccfbf1;
    --role-text: #0f766e;
    --role-glow: rgba(20, 184, 166, 0.30);
}

.hx-role-admin {
    --role-primary: #f59e0b;
    --role-secondary: #b45309;
    --role-dark-1: #251507;
    --role-dark-2: #3a2108;
    --role-soft: #fff7ed;
    --role-text: #92400e;
    --role-glow: rgba(245, 158, 11, 0.28);
}

.hx-role-headcoach {
    --role-primary: #8b5cf6;
    --role-secondary: #6d28d9;
    --role-dark-1: #160b2e;
    --role-dark-2: #25124a;
    --role-soft: #f3e8ff;
    --role-text: #6d28d9;
    --role-glow: rgba(139, 92, 246, 0.30);
}

.hx-role-school {
    --role-primary: #0ea5e9;
    --role-secondary: #0369a1;
    --role-dark-1: #062133;
    --role-dark-2: #083a55;
    --role-soft: #e0f2fe;
    --role-text: #0369a1;
    --role-glow: rgba(14, 165, 233, 0.28);
}

.hx-role-parent {
    --role-primary: #2563eb;
    --role-secondary: #1d4ed8;
    --role-dark-1: #071a3a;
    --role-dark-2: #0b2a55;
    --role-soft: #dbeafe;
    --role-text: #1d4ed8;
    --role-glow: rgba(37, 99, 235, 0.28);
}

/* Sidebar color by role */
.hx-unified-layout .hx-unified-sidebar {
    background:
        radial-gradient(circle at top left, var(--role-glow), transparent 34%),
        linear-gradient(180deg, var(--role-dark-1) 0%, var(--role-dark-2) 52%, #041613 100%) !important;
}

/* Logo / avatar / menu accents */
.hx-unified-layout .hx-unified-brand-mark,
.hx-unified-layout .hx-unified-user-avatar,
.hx-unified-layout .hx-attendance-avatar,
.hx-unified-layout .evaluation-class-icon,
.hx-unified-layout .student-result-avatar,
.hx-unified-layout .student-profile-avatar {
    background: linear-gradient(135deg, var(--role-primary), var(--role-secondary)) !important;
    border-color: color-mix(in srgb, var(--role-primary) 35%, transparent) !important;
    color: #ffffff !important;
}

.hx-unified-layout .hx-unified-user-avatar {
    color: #ffffff !important;
    box-shadow: 0 14px 28px var(--role-glow) !important;
}

/* Menu hover */
.hx-unified-layout .hx-unified-menu-item:hover,
.hx-unified-layout .menu-item:hover,
.hx-unified-layout .menu-item.active {
    background: color-mix(in srgb, var(--role-primary) 18%, transparent) !important;
    border-color: color-mix(in srgb, var(--role-primary) 34%, transparent) !important;
    box-shadow: inset 4px 0 0 var(--role-primary) !important;
}

/* Badges */
.hx-unified-layout .hx-unified-eyebrow,
.hx-unified-layout .coach-hero-badge,
.hx-unified-layout .report-date-pill,
.hx-unified-layout .hx-attendance-today {
    color: var(--role-text) !important;
    background: var(--role-soft) !important;
    border-color: color-mix(in srgb, var(--role-primary) 28%, transparent) !important;
}

/* Buttons */
.hx-unified-layout .btn-primary,
.hx-unified-layout .mini-btn.primary,
.hx-unified-layout button.btn-primary {
    background: linear-gradient(135deg, var(--role-primary), var(--role-secondary)) !important;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--role-primary) 28%, transparent) !important;
}

/* Dark hero cards */
.hx-unified-layout .student-search-hero,
.hx-unified-layout .evaluation-select-hero,
.hx-unified-layout .evaluation-hero,
.hx-unified-layout .evaluation-form-hero {
    background:
        radial-gradient(circle at left top, var(--role-glow), transparent 35%),
        linear-gradient(135deg, #071b30 0%, #101827 58%, var(--role-dark-1) 100%) !important;
}

/* Light top cards role glow */
.hx-unified-layout .hx-unified-topbar,
.hx-unified-layout .section-card,
.hx-unified-layout .stat-card {
    border-color: color-mix(in srgb, var(--role-primary) 12%, #e4ece9) !important;
}

.hx-unified-layout .hx-unified-topbar::before,
.hx-unified-layout .stat-card::after {
    background: color-mix(in srgb, var(--role-primary) 16%, transparent) !important;
}

/* Links */
.hx-unified-layout a:not(.btn):not(.mini-btn):not(.hx-unified-menu-item):not(.menu-item) {
    color: var(--role-text);
}

/* ================================
   Chat Page
================================ */

.hx-chat-page {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
    min-height: calc(100vh - 64px);
}

.hx-chat-contacts,
.hx-chat-box {
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e4ece9;
    box-shadow: 0 18px 45px rgba(8, 60, 50, 0.065);
}

.hx-chat-contacts {
    padding: 20px;
    overflow: hidden;
}

.hx-chat-panel-title h3 {
    margin: 0;
    color: #10201c;
    font-size: 22px;
    font-weight: 900;
}

.hx-chat-panel-title p {
    margin: 8px 0 0;
    color: #6b7c78;
    font-size: 13px;
    line-height: 1.8;
}

.hx-chat-contact-list,
.hx-chat-conversation-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.hx-chat-conversation-title {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf3f1;
}

.hx-chat-contact,
.hx-chat-conversation {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    background: #f8fbfa;
    border: 1px solid #edf3f1;
    transition: 0.22s ease;
}

.hx-chat-contact:hover,
.hx-chat-conversation:hover,
.hx-chat-conversation.active {
    background: var(--role-soft, #e9fff6);
    border-color: color-mix(in srgb, var(--role-primary, #00d68f) 30%, #edf3f1);
    transform: translateY(-2px);
}

.hx-chat-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--role-primary, #00d68f), var(--role-secondary, #00a878));
    font-weight: 900;
}

.hx-chat-avatar.small {
    width: 44px;
    height: 44px;
    border-radius: 16px;
}

.hx-chat-contact strong,
.hx-chat-conversation strong {
    display: block;
    color: #10201c;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 5px;
}

.hx-chat-contact span,
.hx-chat-conversation span {
    display: block;
    color: #6b7c78;
    font-size: 12px;
    line-height: 1.7;
}

.hx-chat-box {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.hx-chat-header {
    padding: 24px;
    border-bottom: 1px solid #edf3f1;
    background:
        radial-gradient(circle at left top, var(--role-glow, rgba(0, 214, 143, 0.18)), transparent 34%),
        #ffffff;
}

.hx-chat-header h3 {
    margin: 12px 0 8px;
    color: #10201c;
    font-size: 28px;
    font-weight: 900;
}

.hx-chat-header p {
    margin: 0;
    color: #6b7c78;
    line-height: 1.9;
}

.hx-chat-messages {
    padding: 24px;
    overflow-y: auto;
    background:
        radial-gradient(circle at left bottom, rgba(0, 214, 143, 0.08), transparent 28%),
        #f8fbfa;
}

.hx-message-row {
    display: flex;
    margin-bottom: 14px;
}

.hx-message-row.me {
    justify-content: flex-start;
}

.hx-message-row.other {
    justify-content: flex-end;
}

.hx-message-bubble {
    max-width: min(560px, 80%);
    padding: 14px 16px;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(8, 60, 50, 0.055);
}

.hx-message-row.me .hx-message-bubble {
    color: #ffffff;
    background: linear-gradient(135deg, var(--role-primary, #00d68f), var(--role-secondary, #00a878));
    border-bottom-left-radius: 8px;
}

.hx-message-row.other .hx-message-bubble {
    color: #10201c;
    background: #ffffff;
    border: 1px solid #e4ece9;
    border-bottom-right-radius: 8px;
}

.hx-message-bubble p {
    margin: 0;
    line-height: 2;
    font-size: 14px;
}

.hx-message-bubble span {
    display: block;
    margin-top: 8px;
    opacity: 0.72;
    font-size: 11px;
}

.hx-message-system {
    width: fit-content;
    max-width: 80%;
    margin: 12px auto;
    padding: 9px 14px;
    border-radius: 999px;
    color: #6b7c78;
    background: #eef2f7;
    font-size: 12px;
}

.hx-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
    padding: 18px;
    background: #ffffff;
    border-top: 1px solid #edf3f1;
}

.hx-chat-form textarea {
    width: 100%;
    resize: none;
    border: 1px solid #dce8e4;
    border-radius: 18px;
    padding: 14px 16px;
    font-family: inherit;
    outline: none;
}

.hx-chat-form textarea:focus {
    border-color: var(--role-primary, #00d68f);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--role-primary, #00d68f) 14%, transparent);
}

.hx-chat-form button {
    border: none;
    border-radius: 18px;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    background: linear-gradient(135deg, var(--role-primary, #00d68f), var(--role-secondary, #00a878));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--role-primary, #00d68f) 24%, transparent);
}

.hx-chat-empty,
.hx-chat-welcome,
.hx-chat-empty-small {
    color: #6b7c78;
    line-height: 2;
}

.hx-chat-empty {
    padding: 34px;
    text-align: center;
}

.hx-chat-empty-small {
    padding: 16px;
    border-radius: 18px;
    background: #f8fbfa;
    border: 1px dashed #dce8e4;
    text-align: center;
    font-size: 13px;
}

.hx-chat-welcome {
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 34px;
}

.hx-chat-welcome-icon {
    width: 82px;
    height: 82px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--role-primary, #00d68f), var(--role-secondary, #00a878));
    font-size: 36px;
    margin: 0 auto 18px;
}

.hx-chat-welcome h3 {
    margin: 0 0 10px;
    color: #10201c;
    font-size: 28px;
    font-weight: 900;
}

.hx-chat-welcome p {
    margin: 0;
}

@media (max-width: 1100px) {
    .hx-chat-page {
        grid-template-columns: 1fr;
    }

    .hx-chat-box {
        min-height: 680px;
    }
}

@media (max-width: 700px) {
    .hx-chat-form {
        grid-template-columns: 1fr;
    }

    .hx-chat-form button {
        min-height: 52px;
    }

    .hx-message-bubble {
        max-width: 92%;
    }
}

/* ================================
   Chat Unread Badges
================================ */

.hx-menu-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.hx-chat-conversation {
    position: relative;
}

.hx-chat-unread-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
}

.hx-chat-last-message {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.7;
}

/* ================================
   System Message Page
================================ */

.hx-system-message-hero {
    background:
        radial-gradient(circle at left top, var(--role-glow, rgba(0, 214, 143, 0.22)), transparent 34%),
        linear-gradient(135deg, #071b30 0%, #101827 58%, var(--role-dark-1, #06251f) 100%) !important;
    color: #ffffff !important;
}

.hx-system-message-hero h3 {
    margin: 14px 0 8px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
}

.hx-system-message-hero p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    line-height: 2;
}

.hx-system-message-card {
    margin-top: 22px;
}

.hx-system-message-form {
    display: grid;
    gap: 18px;
}

.hx-system-message-form .form-field {
    display: grid;
    gap: 9px;
}

.hx-system-message-form label {
    color: #10201c;
    font-size: 14px;
    font-weight: 800;
}

.hx-system-message-form select,
.hx-system-message-form textarea {
    width: 100%;
    border: 1px solid #dce8e4;
    border-radius: 18px;
    background: #ffffff;
    padding: 14px 16px;
    color: #10201c;
    font-family: inherit;
    outline: none;
    resize: vertical;
}

.hx-system-message-form select {
    min-height: 54px;
}

.hx-system-message-form textarea {
    min-height: 190px;
    line-height: 2;
}

.hx-system-message-form select:focus,
.hx-system-message-form textarea:focus {
    border-color: var(--role-primary, #00d68f);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--role-primary, #00d68f) 14%, transparent);
}

.hx-system-message-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ================================
   Session Reports List + Review Detail
================================ */

.hx-reports-hero,
.hx-report-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at left top, var(--role-glow, rgba(0, 214, 143, 0.22)), transparent 34%),
        linear-gradient(135deg, #071b30 0%, #101827 58%, var(--role-dark-1, #06251f) 100%) !important;
    color: #ffffff !important;
}

.hx-reports-hero h3,
.hx-report-detail-hero h3 {
    margin: 14px 0 8px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
}

.hx-reports-hero p,
.hx-report-detail-hero p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    line-height: 2;
}

.hx-report-list {
    display: grid;
    gap: 14px;
}

.hx-report-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e4ece9;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 26px rgba(8, 60, 50, 0.045);
    transition: 0.22s ease;
}

.hx-report-row:hover {
    transform: translateY(-2px);
    border-color: var(--role-primary, #00d68f);
    box-shadow: 0 18px 40px rgba(8, 60, 50, 0.08);
}

.hx-report-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hx-report-icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--role-primary, #00d68f), var(--role-secondary, #00a878));
    flex-shrink: 0;
}

.hx-report-main h4 {
    margin: 0 0 10px;
    color: #10201c;
    font-size: 19px;
    font-weight: 900;
}

.hx-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #6b7c78;
    font-size: 13px;
    line-height: 1.8;
}

.hx-report-status {
    display: flex;
    justify-content: flex-end;
}

.hx-status-badge {
    width: fit-content;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.hx-status-badge.approved {
    color: #166534;
    background: #dcfce7;
}

.hx-status-badge.submitted {
    color: #0f172a;
    background: #e0f2fe;
}

.hx-status-badge.needs-edit {
    color: #9a3412;
    background: #ffedd5;
}

.hx-status-badge.rejected {
    color: #b91c1c;
    background: #fee2e2;
}

.hx-status-badge.comment {
    color: #0369a1;
    background: #e0f2fe;
}

.hx-status-badge.pending {
    color: #475569;
    background: #eef2f7;
}

.hx-report-text-box,
.hx-report-info-box {
    padding: 20px;
    border-radius: 22px;
    background: #f8fbfa;
    border: 1px solid #e4ece9;
    color: #263f39;
    line-height: 2.1;
    margin-top: 14px;
}

.hx-report-info-box strong {
    display: block;
    margin-bottom: 8px;
    color: #10201c;
    font-weight: 900;
}

.hx-report-info-box p {
    margin: 0;
}

.hx-report-review-form {
    display: grid;
    gap: 16px;
}

.hx-report-review-form .form-field {
    display: grid;
    gap: 9px;
}

.hx-report-review-form label {
    color: #10201c;
    font-size: 14px;
    font-weight: 800;
}

.hx-report-review-form select,
.hx-report-review-form textarea {
    width: 100%;
    border: 1px solid #dce8e4;
    border-radius: 18px;
    background: #ffffff;
    padding: 14px 16px;
    color: #10201c;
    font-family: inherit;
    outline: none;
}

.hx-report-review-form select {
    min-height: 54px;
}

.hx-report-review-form textarea {
    min-height: 150px;
    line-height: 2;
    resize: vertical;
}

.hx-report-review-form select:focus,
.hx-report-review-form textarea:focus {
    border-color: var(--role-primary, #00d68f);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--role-primary, #00d68f) 14%, transparent);
}

.hx-review-list {
    display: grid;
    gap: 14px;
}

.hx-review-card {
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e4ece9;
    box-shadow: 0 10px 24px rgba(8, 60, 50, 0.045);
}

.hx-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.hx-review-head strong {
    display: block;
    color: #10201c;
    font-weight: 900;
}

.hx-review-head span {
    display: block;
    margin-top: 5px;
    color: #6b7c78;
    font-size: 12px;
}

.hx-review-card p {
    margin: 0;
    color: #263f39;
    line-height: 2;
}

@media (max-width: 900px) {
    .hx-report-row {
        grid-template-columns: 1fr;
    }

    .hx-report-status {
        justify-content: flex-start;
    }

    .hx-reports-hero,
    .hx-report-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ================================
   Login Logo Refinement
================================ */

.hx-login-main-logo-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 34px;
}

.hx-login-main-logo {
    width: 190px;
    max-width: 70%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hx-login-card h1:first-of-type,
.hx-login-card > p:first-of-type {
    display: none !important;
}

.hx-login-hero-logo {
    width: 185px !important;
    max-width: 72% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 28px !important;
}

@media (max-width: 900px) {
    .hx-login-main-logo {
        width: 155px;
    }

    .hx-login-hero-logo {
        width: 150px !important;
    }
}

/* ================================
   Login Form Position Refinement
   فقط عنوان و فیلدها بالاتر می‌آیند
   دکمه ورود ثابت می‌ماند
================================ */

/* لوگو کمی به فرم نزدیک‌تر شود */
.hx-login-main-logo-box {
    margin-bottom: 18px !important;
}

/* عنوان ورود به پنل و توضیح زیرش بالاتر بیاید */
.hx-login-card h2,
.hx-login-card .hx-login-title,
.hx-login-card .login-title {
    transform: translateY(-22px) !important;
}

/* متن زیر عنوان هم همراه عنوان بالاتر بیاید */
.hx-login-card h2 + p,
.hx-login-card .hx-login-subtitle,
.hx-login-card .login-subtitle {
    transform: translateY(-22px) !important;
    margin-bottom: 18px !important;
}

/* فقط باکس‌های نام کاربری و رمز عبور بالاتر بیایند */
.hx-login-card form > .form-field,
.hx-login-card form > .form-group,
.hx-login-card form > .input-group,
.hx-login-card form > label:not(.hx-remember-check) {
    transform: translateY(-22px) !important;
}

/* فاصله بین باکس نام کاربری و رمز عبور کمی بیشتر شود */
.hx-login-card form > .form-field + .form-field,
.hx-login-card form > .form-group + .form-group,
.hx-login-card form > .input-group + .input-group {
    margin-top: 16px !important;
}

/* ردیف فراموشی رمز و مرا به خاطر بسپار هم کمی بالاتر بیاید */
.hx-login-card .login-options,
.hx-login-card .hx-login-options,
.hx-login-card .remember-row,
.hx-login-card .hx-remember-row {
    transform: translateY(-22px) !important;
}

/* دکمه ورود جای خودش بماند */
.hx-login-button,
.hx-login-card button[type="submit"] {
    transform: none !important;
    margin-top: 0 !important;
}

/* Login inputs a little higher */
.hx-login-card form > .form-field,
.hx-login-card form > .form-group,
.hx-login-card form > .input-group {
    transform: translateY(-38px) !important;
}

/* فاصله بین دو فیلد همچنان خوب بمونه */
.hx-login-card form > .form-field + .form-field,
.hx-login-card form > .form-group + .form-group,
.hx-login-card form > .input-group + .input-group {
    margin-top: 18px !important;
}

/* Login username/password fields exact lift */
.hx-login-fields-lift {
    transform: translateY(-63px) !important;
    margin-bottom: -34px !important;
    display: grid !important;
    gap: 22px !important;
}

.hx-login-fields-lift .form-field,
.hx-login-fields-lift .form-group,
.hx-login-fields-lift .input-group {
    transform: none !important;
    margin: 0 !important;
}

/* ================================
   Sidebar User Photo Fix
================================ */

.hx-unified-user-avatar.hx-user-photo-wrap {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.hx-unified-user-avatar.hx-user-photo-wrap .hx-user-photo {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: inherit !important;
}

.hx-unified-user-avatar.hx-user-photo-wrap .hx-user-photo-default {
    object-fit: contain !important;
    padding: 7px !important;
    background: linear-gradient(
        135deg,
        var(--role-primary, #00d68f),
        var(--role-secondary, #00a878)
    ) !important;
}

.hx-unified-user-avatar.hx-user-photo-wrap {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.hx-unified-user-avatar.hx-user-photo-wrap .hx-user-photo {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: inherit !important;
}

.hx-unified-user-avatar.hx-user-photo-wrap .hx-user-photo-default {
    object-fit: contain !important;
    padding: 7px !important;
    background: linear-gradient(
        135deg,
        var(--role-primary, #00d68f),
        var(--role-secondary, #00a878)
    ) !important;
}

/* ================================
   Force sidebar avatar fallback image
   حذف حرف C و نمایش hexagonlogo.png
================================ */

.hx-unified-user-avatar,
.user-avatar,
.sidebar-user-avatar,
.profile-avatar,
.avatar {
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    background:
        url("/static/image/hexagonlogo.png") center center / 72% auto no-repeat,
        linear-gradient(135deg, var(--role-primary, #00d68f), var(--role-secondary, #00a878)) !important;
}

.hx-unified-user-avatar img,
.user-avatar img,
.sidebar-user-avatar img,
.profile-avatar img,
.avatar img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    text-indent: 0 !important;
}

/* ================================
   Final Sidebar User Photo
   بدون استفاده از کلاس قدیمی C
================================ */

.hx-sidebar-user-photo-box {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 12px 28px rgba(0, 214, 143, 0.14) !important;
    flex-shrink: 0 !important;
}

.hx-sidebar-user-photo {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: inherit !important;
}

.hx-sidebar-user-photo-default {
    object-fit: contain !important;
    padding: 7px !important;
    background: linear-gradient(
        135deg,
        var(--role-primary, #00d68f),
        var(--role-secondary, #00a878)
    ) !important;
}

/* ================================
   Class Detail Page - Coach Panel
================================ */

.hx-class-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background:
        radial-gradient(circle at left top, color-mix(in srgb, var(--role-primary, #00d68f) 22%, transparent), transparent 34%),
        linear-gradient(135deg, #071b30 0%, #101827 58%, var(--role-dark-1, #06251f) 100%) !important;
    color: #ffffff !important;
}

.hx-class-detail-hero h2 {
    margin: 14px 0 10px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 950;
}

.hx-class-detail-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 2;
}

.hx-class-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hx-class-report-list {
    display: grid;
    gap: 14px;
}

.hx-class-report-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e4ece9;
    box-shadow: 0 10px 26px rgba(8, 60, 50, 0.045);
}

.hx-class-report-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hx-class-report-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--role-primary, #00d68f), var(--role-secondary, #00a878));
    font-size: 20px;
    font-weight: 950;
    flex-shrink: 0;
}

.hx-class-report-main h4 {
    margin: 0 0 7px;
    color: #10201c;
    font-size: 18px;
    font-weight: 900;
}

.hx-class-session-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hx-class-session-title-row h4 {
    margin: 0;
}

.hx-session-eval-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-weight: 950;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.hx-session-eval-btn:hover {
    background: #0b1220;
}

.hx-class-report-main p {
    margin: 0;
    color: #64748b;
    line-height: 1.9;
}

.hx-class-report-status {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hx-session-actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.hx-session-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 950;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.hx-session-btn:hover {
    background: #e8f0f8;
}

.hx-session-btn.primary {
    background: linear-gradient(135deg, var(--role-primary, #00d68f), var(--role-secondary, #00a878));
    border: none;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 168, 120, 0.18);
}

.hx-session-btn.primary:hover {
    filter: brightness(0.98);
}

.hx-session-btn.is-disabled {
    opacity: 0.55;
    pointer-events: none;
    box-shadow: none;
}

.hx-jalali-days button.is-holiday {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.hx-jalali-days button.is-holiday:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

.hx-jalali-days button.is-holiday.is-selected {
    border: 0;
    background: linear-gradient(135deg, #00d68f, #00a878);
    color: #ffffff;
}

.hx-admin-class-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hx-admin-class-top-box {
    border-radius: 22px;
    border: 1px solid #e4ece9;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(8, 60, 50, 0.05);
}

.hx-admin-class-top-box span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
    font-weight: 950;
    font-size: 12px;
    margin-bottom: 10px;
}

.hx-admin-class-top-box p {
    margin: 0;
    color: #667085;
    font-weight: 850;
    line-height: 2;
}

.hx-admin-class-people-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e4ece9;
}

.hx-admin-class-actions-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e4ece9;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hx-admin-class-actions-row .hx-admin-class-people-form {
    margin: 0;
    padding: 0;
    border-top: 0;
    flex: 1 1 560px;
}

.hx-admin-class-actions-row .hx-admin-class-nav {
    margin-top: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.hx-admin-class-people-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.hx-admin-class-people-field {
    display: grid;
    gap: 8px;
}

.hx-admin-class-people-field label {
    font-weight: 900;
    color: #071112;
}

.hx-admin-class-people-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    font-family: inherit;
    font-weight: 800;
    background: #ffffff;
    color: #071112;
}

.hx-admin-class-people-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.hx-admin-class-people-actions label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
}

.hx-admin-class-nav {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .hx-admin-class-top-grid {
        grid-template-columns: 1fr;
    }

    .hx-admin-class-actions-row .hx-admin-class-nav {
        flex-wrap: wrap;
        justify-content: stretch;
        width: 100%;
    }

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

    .hx-admin-class-people-actions {
        justify-items: stretch;
    }
}

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

.hx-lesson-plan-box {
    padding: 18px;
    border-radius: 24px;
    background: #f8fbfa;
    border: 1px solid #e4ece9;
}

.hx-lesson-plan-box h4 {
    margin: 0 0 16px;
    color: #10201c;
    font-size: 19px;
    font-weight: 900;
}

.hx-lesson-list {
    display: grid;
    gap: 10px;
}

.hx-lesson-item {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e4ece9;
}

.hx-lesson-item strong {
    color: var(--role-primary, #00d68f);
    font-weight: 900;
}

.hx-lesson-item span {
    color: #334155;
    line-height: 1.9;
}

.hx-student-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hx-student-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e4ece9;
    box-shadow: 0 10px 24px rgba(8, 60, 50, 0.045);
}

.hx-student-card-link {
    text-decoration: none;
    color: inherit;
}

.hx-student-card-link:hover {
    border-color: rgba(0, 200, 139, 0.35);
    box-shadow: 0 14px 32px rgba(0, 168, 120, 0.10);
}

.hx-student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--role-primary, #00d68f), var(--role-secondary, #00a878));
    font-weight: 900;
    flex-shrink: 0;
}

.hx-student-card strong {
    display: block;
    color: #10201c;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 6px;
}

.hx-student-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.empty-state.small {
    padding: 18px;
    min-height: auto;
}

@media (max-width: 1000px) {
    .hx-class-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hx-class-detail-actions {
        justify-content: flex-start;
    }

    .hx-class-report-row {
        grid-template-columns: 1fr;
    }

    .hx-class-report-status {
        justify-content: flex-start;
    }

    .hx-lesson-plan-columns {
        grid-template-columns: 1fr;
    }

    .hx-student-list-grid {
        grid-template-columns: 1fr;
    }
}

.hx-class-select-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.hx-btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00d68f, #00a878);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(0, 168, 120, 0.22);
}

.hx-btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 168, 120, 0.28);
}

.hx-unified-menu-item {
    position: relative;
}

.hx-unified-menu-item.hx-sidebar-active {
    border: 2px solid rgba(0, 214, 143, 0.95) !important;
    background: rgba(0, 214, 143, 0.13) !important;
    box-shadow:
        0 0 0 4px rgba(0, 214, 143, 0.08),
        inset 4px 0 0 rgba(0, 214, 143, 0.95),
        0 14px 34px rgba(0, 168, 120, 0.18) !important;
    color: #ffffff !important;
}

.hx-unified-menu-item.hx-sidebar-active::before {
    content: "";
    position: absolute;
    right: -2px;
    top: 14px;
    bottom: 14px;
    width: 5px;
    border-radius: 999px;
    background: #00d68f;
    box-shadow: 0 0 16px rgba(0, 214, 143, 0.8);
}

.hx-unified-menu-item.hx-sidebar-active .hx-menu-badge {
    background: #ffffff;
    color: #008f68;
}


.hx-dashboard-message-alert {
    margin: 22px 0;
    padding: 18px 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(0, 214, 143, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff, #f5fffb);
    border: 1px solid rgba(0, 214, 143, 0.28);
    box-shadow: 0 18px 45px rgba(0, 168, 120, 0.10);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hx-dashboard-message-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00d68f, #00a878);
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #ffffff;
    flex: 0 0 54px;
    box-shadow: 0 12px 28px rgba(0, 168, 120, 0.22);
}

.hx-dashboard-message-alert h3 {
    margin: 0 0 6px;
    color: #071112;
    font-size: 20px;
    font-weight: 950;
}

.hx-dashboard-message-alert p {
    margin: 0;
    color: #667085;
    font-weight: 700;
}

.hx-dashboard-message-alert a {
    margin-right: auto;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00d68f, #00a878);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .hx-dashboard-message-alert {
        flex-direction: column;
        align-items: flex-start;
    }

    .hx-dashboard-message-alert a {
        width: 100%;
        margin-right: 0;
    }
}

.hx-unified-menu-item.hx-sidebar-active {
    border: 2px solid #00d68f !important;
    background: rgba(0, 214, 143, 0.18) !important;
    box-shadow:
        0 0 0 4px rgba(0, 214, 143, 0.10),
        0 14px 34px rgba(0, 168, 120, 0.22) !important;
    color: #ffffff !important;
}

.hx-unified-menu-item.hx-sidebar-active::before {
    content: "";
    position: absolute;
    right: -2px;
    top: 13px;
    bottom: 13px;
    width: 5px;
    border-radius: 999px;
    background: #00d68f;
    box-shadow: 0 0 16px rgba(0, 214, 143, 0.85);
}

/* Active sidebar item */
.hx-unified-menu-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hx-unified-menu-item.hx-sidebar-active {
    border: 2px solid #00d68f !important;
    background: rgba(0, 214, 143, 0.18) !important;
    box-shadow:
        0 0 0 4px rgba(0, 214, 143, 0.10),
        0 14px 34px rgba(0, 168, 120, 0.22) !important;
    color: #ffffff !important;
}

.hx-unified-menu-item.hx-sidebar-active::before {
    content: "";
    position: absolute;
    right: -2px;
    top: 13px;
    bottom: 13px;
    width: 5px;
    border-radius: 999px;
    background: #00d68f;
    box-shadow: 0 0 16px rgba(0, 214, 143, 0.85);
}

/* Internal page scroll instead of browser/right scrollbar */
html,
body {
    height: 100%;
    overflow: hidden !important;
}

.hx-unified-layout {
    height: 100vh;
    overflow: hidden !important;
}

.hx-unified-sidebar {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.hx-unified-main {
    height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 214, 143, 0.55) rgba(0, 0, 0, 0.04);
}

/* Chrome / Edge scrollbar for main area */
.hx-unified-main::-webkit-scrollbar {
    width: 8px;
}

.hx-unified-main::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 999px;
}

.hx-unified-main::-webkit-scrollbar-thumb {
    background: rgba(0, 214, 143, 0.55);
    border-radius: 999px;
}

.hx-unified-main::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 168, 120, 0.75);
}

html,
body {
    height: 100%;
    max-height: 100%;
    overflow: hidden !important;
}

body {
    position: fixed;
    inset: 0;
    width: 100%;
}

.hx-unified-layout {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.hx-unified-sidebar {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.hx-unified-main {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 40px;
}

.message.error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 900;
    margin-bottom: 18px;
}


.hx-student-important-notes {
    margin: 22px 0;
    border-radius: 26px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 193, 7, 0.28), transparent 34%),
        linear-gradient(135deg, #fff8db, #ffffff);
    border: 1px solid #fde68a;
    box-shadow: 0 18px 50px rgba(180, 83, 9, 0.10);
}

.hx-student-important-notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.hx-student-important-notes-header span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #92400e;
    font-weight: 950;
    font-size: 14px;
}

.hx-student-important-notes-header h3 {
    margin: 8px 0 0;
    color: #111827;
    font-size: 22px;
    font-weight: 950;
}

.hx-student-important-notes-list {
    display: grid;
    gap: 12px;
}

.hx-student-important-note-item {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #fcd34d;
    border-radius: 20px;
    padding: 16px 18px;
}

.hx-student-important-note-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hx-student-important-note-top strong {
    color: #111827;
    font-size: 17px;
    font-weight: 950;
}

.hx-student-important-note-top span {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.hx-student-important-note-item p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    font-weight: 750;
    line-height: 2;
}

.hx-student-important-note-item small {
    display: inline-flex;
    margin-top: 10px;
    color: #92400e;
    font-weight: 850;
}

@media (max-width: 700px) {
    .hx-student-important-note-top {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* باکس شیشه‌ای برنامه امروز در داشبورد مربی */
.hx-today-program-glass {
    width: 100%;
    margin-top: 28px;
    padding: 26px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 24px 70px rgba(0, 40, 30, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.hx-today-program-glass::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(0, 203, 142, 0.12);
    pointer-events: none;
}

.hx-today-program-glass::after {
    content: "";
    position: absolute;
    bottom: -65px;
    left: -65px;
    width: 170px;
    height: 170px;
    border-radius: 42px;
    background: rgba(0, 203, 142, 0.08);
    transform: rotate(30deg);
    pointer-events: none;
}

.hx-today-program-head {
    position: relative;
    z-index: 2;
    text-align: right;
    margin-bottom: 22px;
}

.hx-today-program-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
    color: #071b22;
}

.hx-today-program-head p {
    margin: 0;
    font-size: 14px;
    color: #5f7180;
}

.hx-today-program-list {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* اگر کارت‌های برنامه امروز قبلاً خیلی چسبیده یا بیرون‌زده هستند */
.hx-today-program-list > * {
    width: 100%;
    max-width: 100%;
}

/* ===============================
   GLOBAL SIDEBAR LOGO FIX
   سفید شدن پشت لوگوی هگزاگون در همه صفحات
================================ */

.brand-mark,
.sidebar .brand-mark,
.hx-brand-mark,
.hx-sidebar-brand,
.hx-sidebar-logo,
.hx-sidebar-logo-box,
.sidebar-logo,
.sidebar-logo-box,
.sidebar-brand-logo,
.sidebar-brand-icon {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.90) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden !important;
}

.brand-mark img,
.sidebar .brand-mark img,
.hx-brand-mark img,
.hx-sidebar-brand img,
.hx-sidebar-logo img,
.hx-sidebar-logo-box img,
.sidebar-logo img,
.sidebar-logo-box img,
.sidebar-brand-logo img,
.sidebar-brand-icon img {
    background: transparent !important;
    object-fit: contain !important;
}

.brand-mark span,
.sidebar .brand-mark span {
    color: #00a878 !important;
}

/* =========================================
   FINAL FIX - SIDEBAR LOGOS IN BASE PAGES
   مخصوص صفحه‌هایی مثل گزارش جلسه، حضور و غیاب، چت، جستجو
========================================= */

.hx-unified-layout .hx-unified-brand-mark {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.hx-unified-layout .hx-unified-brand-mark img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.hx-unified-layout .hx-sidebar-user-photo-box {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.hx-unified-layout .hx-sidebar-user-photo-default {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* =========================================
   FINAL EXACT FIX - CENTER SIDEBAR LOGOS
   مخصوص صفحات base.html مثل گزارش، پیام‌ها، جستجو، حضور و غیاب
========================================= */

.hx-unified-layout .hx-unified-sidebar .hx-unified-brand-mark {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 20px !important;

    background-color: #ffffff !important;
    background-image: url("/static/image/hexagon-logo.png") !important;
    background-repeat: no-repeat !important;
    background-size: auto 42px !important;
    background-position: right 8px center !important;

    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.hx-unified-layout .hx-unified-sidebar .hx-unified-brand-mark img,
.hx-unified-layout .hx-unified-sidebar .hx-unified-brand-mark span {
    display: none !important;
}

.hx-unified-layout .hx-unified-sidebar .hx-sidebar-user-photo-box {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    border-radius: 18px !important;

    background-color: #ffffff !important;
    background-image: url("/static/image/hexagon-logo.png") !important;
    background-repeat: no-repeat !important;
    background-size: auto 38px !important;
    background-position: right 7px center !important;

    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.hx-unified-layout .hx-unified-sidebar .hx-sidebar-user-photo-box .hx-sidebar-user-photo-default {
    display: none !important;
}

.hx-unified-layout .hx-unified-sidebar .hx-sidebar-user-photo-box .hx-sidebar-user-photo:not(.hx-sidebar-user-photo-default) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
}

/* تنظیم نهایی جای لوگوی سایدبار - کمی راست‌تر */
.hx-unified-layout .hx-unified-sidebar .hx-unified-brand-mark {
    background-position: right 6px center !important;
}

.hx-unified-layout .hx-unified-sidebar .hx-sidebar-user-photo-box {
    background-position: right 5px center !important;
}

/* لینک پروفایل روی اسم کاربر در سایدبار */
.hx-sidebar-profile-link {
    display: inline-block !important;
    color: inherit !important;
    text-decoration: none !important;
}

.hx-sidebar-profile-link h3,
.hx-sidebar-profile-link strong {
    color: inherit !important;
    margin: 0 !important;
}

.hx-sidebar-profile-link:hover h3,
.hx-sidebar-profile-link:hover strong {
    color: #00e2a0 !important;
}

.hx-login-error-stable {
    min-height: 46px;
    width: 100%;
    border-radius: 16px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 16px;
    margin: 0 0 18px 0;
    font-size: 14px;
    font-weight: 900;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hx-login-error-stable.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hx-login-error-stable span {
    font-size: 18px;
    flex: 0 0 auto;
}

.hx-login-error-stable p {
    margin: 0;
}

.hx-login-error-stable {
    min-height: 46px;
    width: 100%;
    border-radius: 16px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 16px;
    margin: 0 0 18px 0;
    font-size: 14px;
    font-weight: 900;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hx-login-error-stable.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hx-login-error-stable span {
    font-size: 18px;
    flex: 0 0 auto;
}

.hx-login-error-stable p {
    margin: 0;
}

.hx-login-fields-lift {
    display: grid !important;
    gap: 14px !important;
}

.hx-login-error-stable {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #be123c !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.hx-login-error-stable.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.hx-login-error-stable span {
    font-size: 18px !important;
    flex: 0 0 auto !important;
}

.hx-login-error-stable p {
    margin: 0 !important;
}

/* بالا بردن یکدست عنوان ورود، فیلدها و دکمه ورود */
.hx-login-card .hx-login-title,
.hx-login-card .hx-login-form {
    transform: translateY(-35px) !important;
}

/* پایین آوردن خیلی کم پیام خطای لاگین */
.hx-login-error-stable {
    transform: translateY(8px) !important;
}


/* حذف اسکرول اضافه سایدبار و فشرده‌سازی منو */
.hx-sidebar,
.sidebar,
.dashboard-sidebar,
.app-sidebar,
.hx-layout-sidebar,
.hx-right-sidebar {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* خود منوی یکپارچه فشرده‌تر شود */
.hx-unified-menu {
    gap: 8px !important;
}

/* دکمه‌های منوی سایدبار کمی کوتاه‌تر شوند */
.hx-unified-menu-item,
.menu-item {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 18px !important;
    margin-bottom: 8px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
}

/* عنوان منوی اصلی کمتر فضا بگیرد */
.hx-unified-menu-title {
    margin: 14px 0 10px !important;
    font-size: 13px !important;
}

/* باکس پروفایل بالای سایدبار کمی فشرده‌تر شود */
.hx-sidebar-user,
.sidebar-user,
.hx-user-card,
.hx-profile-mini-card {
    min-height: 82px !important;
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
}

/* دکمه خروج فشرده‌تر شود */
.hx-unified-logout-form {
    margin-top: 12px !important;
}

.hx-unified-logout-btn {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
}

/* اگر مرورگر باز هم برای خود سایدبار اسکرول‌بار ساخت، مخفی شود */
.hx-sidebar::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.dashboard-sidebar::-webkit-scrollbar,
.app-sidebar::-webkit-scrollbar,
.hx-layout-sidebar::-webkit-scrollbar,
.hx-right-sidebar::-webkit-scrollbar {
    display: none !important;
}

.hx-sidebar,
.sidebar,
.dashboard-sidebar,
.app-sidebar,
.hx-layout-sidebar,
.hx-right-sidebar {
    scrollbar-width: none !important;
}

/* فشرده‌سازی سایدبار راست پنل */
.hx-unified-menu-item {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    margin-bottom: 7px !important;
    border-radius: 17px !important;
    font-size: 13.5px !important;
}

.hx-unified-menu {
    gap: 6px !important;
}

.hx-unified-menu-title {
    margin: 10px 0 8px !important;
    font-size: 12px !important;
}

.hx-unified-logout-btn {
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 17px !important;
    font-size: 13.5px !important;
}

.hx-unified-logout-form {
    margin-top: 8px !important;
}

.hx-role-switch-menu-item {
    background: rgba(0, 200, 139, 0.16) !important;
    border: 1px solid rgba(0, 255, 180, 0.34) !important;
    color: #ffffff !important;
}

.hx-role-switch-menu-item:hover {
    background: rgba(0, 200, 139, 0.28) !important;
    transform: translateX(-2px);
}

.hx-role-switch-menu-item {
    background: rgba(0, 200, 139, 0.18) !important;
    border: 1px solid rgba(0, 255, 180, 0.42) !important;
    color: #ffffff !important;
    font-weight: 950 !important;
}

.hx-role-switch-menu-item:hover {
    background: rgba(0, 200, 139, 0.30) !important;
}

.hx-role-switch-menu-item {
    background: rgba(0, 200, 139, 0.22) !important;
    border: 1px solid rgba(0, 255, 180, 0.48) !important;
    color: #ffffff !important;
    font-weight: 950 !important;
}

.hx-role-switch-menu-item:hover {
    background: rgba(0, 200, 139, 0.34) !important;
}

.hx-role-switch-menu-item {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    font-weight: 950 !important;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28) !important;
    position: relative !important;
    overflow: hidden !important;
}

.hx-role-switch-menu-item::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent) !important;
    transform: translateX(100%) !important;
    transition: 0.35s ease !important;
}

.hx-role-switch-menu-item:hover {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    transform: translateX(-2px) scale(1.01) !important;
}

.hx-role-switch-menu-item:hover::before {
    transform: translateX(-100%) !important;
}

/* دکمه تغییر نقش در سایدبار - نارنجی و مشخص */
.hx-unified-menu a.hx-role-switch-menu-item,
.hx-role-switch-menu-item {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    font-weight: 950 !important;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32) !important;
    border-radius: 18px !important;
    opacity: 1 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* متن داخل دکمه */
.hx-unified-menu a.hx-role-switch-menu-item span,
.hx-role-switch-menu-item span {
    color: #ffffff !important;
    font-weight: 950 !important;
}

/* هاور */
.hx-unified-menu a.hx-role-switch-menu-item:hover,
.hx-role-switch-menu-item:hover {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
    color: #ffffff !important;
    transform: translateX(-2px) scale(1.01) !important;
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.42) !important;
}

/* افکت براق روی دکمه */
.hx-unified-menu a.hx-role-switch-menu-item::before,
.hx-role-switch-menu-item::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    ) !important;
    transform: translateX(100%) !important;
    transition: 0.4s ease !important;
    pointer-events: none !important;
}

.hx-unified-menu a.hx-role-switch-menu-item:hover::before,
.hx-role-switch-menu-item:hover::before {
    transform: translateX(-100%) !important;
}

/* اگر سایدبار حالت active بهش داد، باز هم نارنجی بماند */
.hx-unified-menu a.hx-role-switch-menu-item.hx-sidebar-active,
.hx-role-switch-menu-item.hx-sidebar-active {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
}

.hx-unified-menu-item.hx-sidebar-active,
.hx-unified-menu a.hx-sidebar-active,
a.hx-sidebar-active {
    background: rgba(0, 200, 139, 0.20) !important;
    border: 1px solid #00c88b !important;
    color: #ffffff !important;
    box-shadow: inset 4px 0 0 #00c88b, 0 12px 26px rgba(0, 200, 139, 0.18) !important;
    opacity: 1 !important;
}

.hx-role-admin .hx-unified-menu-item.hx-sidebar-active,
.hx-role-admin .hx-unified-menu a.hx-sidebar-active,
.hx-role-admin a.hx-sidebar-active {
    background: rgba(245, 158, 11, 0.22) !important;
    border: 2px solid rgba(245, 158, 11, 0.95) !important;
    color: #ffffff !important;
    box-shadow:
        0 0 0 4px rgba(245, 158, 11, 0.10),
        inset 4px 0 0 rgba(0, 200, 139, 0.95),
        0 14px 34px rgba(249, 115, 22, 0.22) !important;
}

.hx-role-admin .hx-unified-menu-item:hover {
    color: #ffffff !important;
    background: rgba(245, 158, 11, 0.16) !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
    box-shadow: inset 4px 0 0 rgba(0, 200, 139, 0.85) !important;
    transform: translateX(-3px);
}

.hx-admin-panel-layout .btn-primary {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26) !important;
}

.hx-admin-panel-layout input:focus,
.hx-admin-panel-layout select:focus,
.hx-admin-panel-layout textarea:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14) !important;
}

.hx-admin-panel-layout .hx-unified-logout-btn {
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 17px !important;
    font-size: 13.5px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.hx-admin-panel-layout .hx-unified-logout-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}

/* قرمز ماندن نوتیف پیام‌ها در سایدبار حتی در حالت active */
.hx-menu-badge,
.hx-unified-menu-item .hx-menu-badge,
.hx-unified-menu-item.hx-sidebar-active .hx-menu-badge,
.hx-sidebar-active .hx-menu-badge,
.sidebar .hx-menu-badge,
.sidebar .hx-sidebar-active .hx-menu-badge {
    background: #ef4444 !important;
    color: #ffffff !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35) !important;
}

.hx-jalali-date-field {
    position: relative;
    display: grid;
    gap: 8px;
}

.hx-jalali-date-field label {
    font-size: 12px;
    color: #475569;
    font-weight: 900;
}

.hx-jalali-date-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hx-jalali-date-input {
    width: 100%;
    height: 44px;
    border: 1px solid #dfe8e5;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 14px 0 44px;
    font-family: inherit;
    font-weight: 800;
    direction: ltr;
    text-align: left;
    outline: none;
}

.hx-jalali-calendar-btn {
    position: absolute;
    left: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    background: #f2fbf7;
    color: #047857;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.hx-jalali-calendar {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 999;
    width: 320px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dfe8e5;
    box-shadow: 0 24px 55px rgba(8, 60, 50, 0.16);
}

.hx-jalali-calendar.is-open {
    display: block;
}

.hx-jalali-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hx-jalali-cal-head strong {
    color: #10201c;
    font-weight: 950;
}

.hx-jalali-cal-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: #eefaf5;
    color: #047857;
    cursor: pointer;
    font-weight: 900;
    position: relative;
    font-size: 0;
    display: grid;
    place-items: center;
}

.hx-jalali-cal-head button::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
}

.hx-jalali-cal-head button[data-action="prev"]::before {
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    margin-right: 2px;
}

.hx-jalali-cal-head button[data-action="next"]::before {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    margin-left: 2px;
}

.hx-jalali-cal-head button:hover {
    background: #dcfff1;
}

.hx-jalali-weekdays,
.hx-jalali-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.hx-jalali-weekdays span {
    text-align: center;
    color: #7b8794;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 0;
}

.hx-jalali-days button {
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: #f8faf9;
    color: #10201c;
    cursor: pointer;
    font-weight: 850;
}

.hx-jalali-days button:hover {
    background: #dcfff1;
    color: #047857;
}

.hx-jalali-days button.is-holiday {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.hx-jalali-days button.is-holiday:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

.hx-jalali-days button.is-selected {
    background: linear-gradient(135deg, #00d68f, #00a878);
    color: #ffffff;
}

.hx-jalali-days button.is-empty {
    visibility: hidden;
}

.hx-admin-collapse {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 22px;
    background: #ffffff;
    padding: 0;
    overflow: visible;
}

.hx-admin-collapse + .hx-admin-collapse {
    margin-top: 14px;
}

.hx-admin-collapse-summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 950;
    color: #071112;
    background: linear-gradient(135deg, rgba(0, 214, 143, 0.12), rgba(0, 168, 120, 0.06));
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.hx-admin-collapse-summary::-webkit-details-marker {
    display: none;
}

.hx-admin-collapse-summary::after {
    content: "▾";
    float: left;
    color: rgba(7, 17, 18, 0.7);
}

details[open].hx-admin-collapse .hx-admin-collapse-summary::after {
    content: "▴";
}

.hx-admin-collapse-body {
    padding: 18px;
}

.hx-admin-clickable-row {
    cursor: pointer;
    transition: 0.2s ease;
}

.hx-admin-clickable-row:hover {
    background: #ecfdf5 !important;
    transform: translateY(-1px);
}

.hx-admin-table-action {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00d68f, #00a878);
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 10px 24px rgba(0, 168, 120, 0.18);
    white-space: nowrap;
}

.status-badge {
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.hx-chat-group {
    margin-bottom: 22px;
}

.hx-chat-group-title {
    font-size: 13px;
    font-weight: 800;
    color: #008f70;
    margin: 0 0 10px 0;
    padding-right: 6px;
}

.hx-chat-empty-contact {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0, 190, 140, 0.25);
    border-radius: 16px;
    background: rgba(0, 190, 140, 0.04);
    color: #7a8f8a;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hx-chat-contact-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff3b3b !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(255, 59, 59, 0.35);
}

.hx-chat-contact-list {
    max-height: calc(100vh - 310px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-left: 6px !important;
    padding-bottom: 20px !important;
}

.hx-chat-contact-list::-webkit-scrollbar {
    width: 6px;
}

.hx-chat-contact-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 999px;
}

.hx-chat-contact-list::-webkit-scrollbar-thumb {
    background: rgba(0, 190, 140, 0.45);
    border-radius: 999px;
}

.hx-chat-contact-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 190, 140, 0.75);
}

@media (max-width: 780px) {
    body.hx-mobile-sidebar-open {
        overflow: hidden;
    }

    .hx-mobile-menu-btn {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        border: 1px solid #dce8e4;
        background: #ffffff;
        color: #10201c;
        font-family: inherit;
        font-weight: 950;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 14px 30px rgba(8, 60, 50, 0.10);
        flex-shrink: 0;
    }

    .hx-unified-topbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .hx-unified-user-pill {
        min-width: 0 !important;
        padding: 0 12px !important;
        max-width: 55vw !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hx-mobile-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(2, 8, 23, 0.45);
        z-index: 999;
    }

    .hx-unified-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: -110% !important;
        width: min(320px, 88vw) !important;
        height: 100vh !important;
        border-radius: 0 !important;
        transition: right 0.22s ease !important;
        z-index: 1000 !important;
        will-change: right;
    }

    body.hx-mobile-sidebar-open .hx-unified-sidebar {
        right: 0 !important;
    }

    .hx-unified-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        padding: 16px !important;
    }

    .hx-unified-topbar {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .hx-unified-topbar > div {
        min-width: 0;
    }

    .hx-unified-page-title {
        font-size: 22px !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere;
    }

    .hx-unified-page-desc {
        font-size: 13px !important;
        line-height: 1.8 !important;
        overflow-wrap: anywhere;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

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

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

    .table-wrap,
    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-gutter: stable;
    }

    .section-card,
    .stat-card {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .card-actions .btn,
    .card-actions .mini-btn,
    .form-actions .btn,
    .form-actions .mini-btn {
        width: 100%;
    }

    table {
        font-size: 13px;
    }

    th,
    td {
        padding: 10px 12px;
    }

    input,
    select,
    textarea {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .form-toolbar > * {
        width: 100%;
    }

    .hx-eval-access-toggles,
    .hx-eval-access-dates {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
}

@media (min-width: 781px) {
    .hx-mobile-menu-btn {
        display: none;
    }
}

/* ================================
   Mobile Login Page Fix
   فقط برای صفحه ورود در موبایل
================================ */

@media (max-width: 780px) {

    body:has(.hx-login-page),
    body:has(.login-page),
    body:has(.auth-page),
    body:has(.login-wrapper) {
        min-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: #f4f7f6 !important;
    }

    .hx-login-page,
    .login-page,
    .auth-page,
    .login-wrapper,
    .hx-auth-page,
    .auth-wrapper {
        min-height: 100dvh !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 18px !important;
        background: #f4f7f6 !important;
        overflow: visible !important;
    }

    /* حذف کامل بخش معرفی، لوگو بزرگ، متن تبلیغاتی و آمار در موبایل */
    .hx-login-hero,
    .login-hero,
    .auth-hero,
    .login-info,
    .hx-login-info,
    .login-brand-panel,
    .hx-login-brand,
    .login-side,
    .auth-side,
    .login-stats,
    .hx-login-stats,
    .stats-grid,
    .hx-stats,
    .login-bottom,
    .auth-bottom {
        display: none !important;
    }

    /* اگر صفحه دو ستونه باشد، فقط ستون فرم بماند */
    .hx-login-container,
    .login-container,
    .auth-container,
    .hx-auth-container,
    .login-layout,
    .auth-layout {
        width: 100% !important;
        max-width: 430px !important;
        min-height: auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 auto !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
    }

    /* باکس سفید فرم ورود */
    .hx-login-card,
    .login-card,
    .auth-card,
    .login-box,
    .hx-auth-card {
        width: 100% !important;
        max-width: 430px !important;
        min-height: auto !important;
        margin: 0 auto !important;
        padding: 28px 20px 24px !important;
        border-radius: 28px !important;
        background: #ffffff !important;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
        overflow: visible !important;
        position: relative !important;
        top: auto !important;
        transform: none !important;
    }

    /* جلوگیری از بریده شدن بالای فرم */
    .hx-login-card *,
    .login-card *,
    .auth-card *,
    .login-box *,
    .hx-auth-card * {
        max-width: 100% !important;
    }

    /* عنوان بالای فرم در موبایل مشخص بماند */
    .hx-login-card h1,
    .hx-login-card h2,
    .login-card h1,
    .login-card h2,
    .auth-card h1,
    .auth-card h2,
    .login-box h1,
    .login-box h2 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 0 !important;
        margin-bottom: 22px !important;
        text-align: center !important;
        font-size: 26px !important;
        line-height: 1.5 !important;
        color: #0f172a !important;
    }

    /* فیلدها استاندارد موبایل */
    .hx-login-card input,
    .login-card input,
    .auth-card input,
    .login-box input,
    .hx-auth-card input {
        height: 56px !important;
        border-radius: 18px !important;
        font-size: 15px !important;
    }

    /* دکمه ورود */
    .hx-login-card button,
    .login-card button,
    .auth-card button,
    .login-box button,
    .hx-auth-card button {
        width: 100% !important;
        min-height: 58px !important;
        border-radius: 22px !important;
        font-size: 20px !important;
    }
}

/* ==================================================
   FINAL MOBILE LOGIN FIX - Hexagon
   موبایل: فقط باکس سفید ورود بماند
================================================== */

@media (max-width: 900px) {

    html,
    body {
        width: 100% !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: static !important;
        inset: auto !important;
    }

    body.hx-login-body {
        width: 100% !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-height: none !important;
        padding: 18px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: static !important;
        inset: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f4f7f6 !important;
    }

    .hx-login-shell {
        width: 100% !important;
        max-width: 430px !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        display: block !important;
        grid-template-columns: 1fr !important;
        border-radius: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 auto !important;
    }

    /* حذف کامل بخش سرمه‌ای، معرفی، لوگو بزرگ، متن تبلیغاتی و آمار */
    .hx-login-hero,
    .hx-hero-logo,
    .hx-hero-logo img,
    .hx-login-hero-logo,
    .hx-hero-content,
    .hx-hero-content h2,
    .hx-hero-content p,
    .hx-hero-stats,
    .hx-hero-stats div {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* فقط کارت سفید ورود */
    .hx-login-card {
        width: 100% !important;
        max-width: 430px !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 28px 20px 26px !important;
        margin: 0 auto !important;
        border-radius: 30px !important;
        background: #ffffff !important;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14) !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        position: relative !important;
        top: auto !important;
        transform: none !important;
    }

    /* برگرداندن عنوان و لوگوی بالای فرم، چون قبلاً بعضی‌ها hide شده بودند */
    .hx-login-logo-wrap,
    .hx-login-main-logo-box {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 0 18px !important;
        padding: 0 !important;
    }

    .hx-login-logo,
    .hx-login-main-logo,
    .hx-login-logo-black {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 120px !important;
        max-width: 62% !important;
        height: auto !important;
        max-height: 90px !important;
        object-fit: contain !important;
        margin: 0 auto 10px !important;
    }

    .hx-login-logo-wrap h1,
    .hx-login-logo-wrap p {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-indent: 0 !important;
    }

    .hx-login-logo-wrap h1 {
        margin: 0 !important;
        color: #07182c !important;
        font-size: 22px !important;
        line-height: 1.5 !important;
        font-weight: 900 !important;
        text-align: center !important;
    }

    .hx-login-logo-wrap p {
        margin: 4px 0 0 !important;
        color: #64748b !important;
        font-size: 12px !important;
        line-height: 1.8 !important;
        text-align: center !important;
    }

    /* حذف جابه‌جایی‌های قبلی که باعث بریده شدن فرم شده بود */
    .hx-login-card .hx-login-title,
    .hx-login-card .hx-login-form,
    .hx-login-card h2,
    .hx-login-card .login-title,
    .hx-login-card .login-subtitle,
    .hx-login-fields-lift,
    .hx-login-card form > .form-field,
    .hx-login-card form > .form-group,
    .hx-login-card form > .input-group,
    .hx-login-card .hx-login-options,
    .hx-login-card .login-options,
    .hx-login-card .remember-row,
    .hx-login-card .hx-remember-row {
        transform: none !important;
        top: auto !important;
        margin-top: 0 !important;
    }

    .hx-login-title {
        display: block !important;
        margin: 0 0 18px !important;
        text-align: center !important;
    }

    .hx-login-title span {
        display: none !important;
    }

    .hx-login-title h2 {
        display: block !important;
        margin: 0 0 8px !important;
        color: #08111f !important;
        font-size: 25px !important;
        line-height: 1.45 !important;
        font-weight: 900 !important;
        text-align: center !important;
    }

    .hx-login-title p {
        display: block !important;
        margin: 0 !important;
        color: #64748b !important;
        font-size: 13px !important;
        line-height: 1.8 !important;
        text-align: center !important;
    }

    .hx-login-form {
        display: grid !important;
        gap: 14px !important;
        width: 100% !important;
        transform: none !important;
    }

    .hx-login-fields-lift {
        display: grid !important;
        gap: 14px !important;
        transform: none !important;
        margin: 0 !important;
    }

    .hx-login-field label {
        display: block !important;
        margin-bottom: 7px !important;
        color: #08111f !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        text-align: right !important;
    }

    .hx-input-wrap {
        width: 100% !important;
        height: 54px !important;
        border-radius: 18px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
    }

    .hx-input-wrap input {
        height: 100% !important;
        font-size: 15px !important;
    }

    .hx-login-options {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
        font-size: 13px !important;
        line-height: 1.8 !important;
        transform: none !important;
    }

    .hx-login-button,
    .hx-login-card button[type="submit"] {
        width: 100% !important;
        height: 56px !important;
        min-height: 56px !important;
        border-radius: 20px !important;
        font-size: 19px !important;
        transform: none !important;
        margin-top: 4px !important;
    }

    .hx-login-footer {
        display: none !important;
    }

    /* حذف آمارها در موبایل، حتی اگر جای دیگری با همین کلاس باشند */
    .hx-login-body .stats-grid,
    .hx-login-body .stat-card,
    .hx-login-body .hx-hero-stats {
        display: none !important;
    }
}


/* ==================================================
   HEXAGON LOGIN MOBILE OVERRIDE - FINAL
   موبایل: حذف کامل بخش معرفی و آمار، فقط فرم سفید
================================================== */

@media only screen and (max-width: 900px) {

    html {
        width: 100% !important;
        min-height: 100% !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body.hx-login-body {
        width: 100% !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 18px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: static !important;
        inset: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f4f7f6 !important;
    }

    body.hx-login-body .hx-login-shell {
        width: 100% !important;
        max-width: 430px !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
        grid-template-columns: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: 0 !important;
        background: transparent !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    body.hx-login-body .hx-login-hero {
        display: none !important;
    }

    body.hx-login-body .hx-hero-logo,
    body.hx-login-body .hx-hero-content,
    body.hx-login-body .hx-hero-stats {
        display: none !important;
    }

    body.hx-login-body .hx-login-card {
        width: 100% !important;
        max-width: 430px !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 26px 20px 24px !important;
        border-radius: 28px !important;
        background: #ffffff !important;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14) !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        transform: none !important;
        position: relative !important;
        top: auto !important;
    }

    body.hx-login-body .hx-login-main-logo-box {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 0 18px !important;
        padding: 0 !important;
    }

    body.hx-login-body .hx-login-main-logo {
        display: block !important;
        width: 145px !important;
        max-width: 70% !important;
        height: auto !important;
        max-height: 95px !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    body.hx-login-body .hx-login-title {
        display: block !important;
        width: 100% !important;
        margin: 0 0 18px !important;
        padding: 0 !important;
        text-align: center !important;
        transform: none !important;
    }

    body.hx-login-body .hx-login-title h2 {
        display: block !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        color: #08111f !important;
        font-size: 25px !important;
        line-height: 1.45 !important;
        font-weight: 900 !important;
        text-align: center !important;
        transform: none !important;
    }

    body.hx-login-body .hx-login-title p {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #64748b !important;
        font-size: 13px !important;
        line-height: 1.8 !important;
        text-align: center !important;
        transform: none !important;
    }

    body.hx-login-body .hx-login-form {
        display: grid !important;
        width: 100% !important;
        gap: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    body.hx-login-body .hx-login-fields-lift {
        display: grid !important;
        gap: 14px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    body.hx-login-body .hx-login-error-stable {
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        border-radius: 15px !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    body.hx-login-body .hx-login-field {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    body.hx-login-body .hx-login-field label {
        display: block !important;
        margin: 0 0 7px !important;
        color: #08111f !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        font-weight: 900 !important;
        text-align: right !important;
    }

    body.hx-login-body .hx-input-wrap {
        width: 100% !important;
        height: 54px !important;
        min-height: 54px !important;
        border-radius: 18px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        box-sizing: border-box !important;
    }

    body.hx-login-body .hx-input-wrap input {
        height: 100% !important;
        font-size: 15px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.hx-login-body .hx-login-options {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #64748b !important;
        font-size: 13px !important;
        line-height: 1.8 !important;
        transform: none !important;
    }

    body.hx-login-body .hx-login-options a {
        color: #16a66f !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        text-align: right !important;
    }

    body.hx-login-body .hx-remember-check {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }

    body.hx-login-body .hx-login-button {
        width: 100% !important;
        height: 56px !important;
        min-height: 56px !important;
        margin: 4px 0 0 !important;
        padding: 0 18px !important;
        border-radius: 20px !important;
        font-size: 19px !important;
        font-weight: 900 !important;
        transform: none !important;
    }

    body.hx-login-body .hx-login-footer {
        display: none !important;
    }
}

@media only screen and (max-width: 420px) {

    body.hx-login-body {
        padding: 12px !important;
        align-items: center !important;
    }

    body.hx-login-body .hx-login-card {
        padding: 22px 16px 22px !important;
        border-radius: 24px !important;
    }

    body.hx-login-body .hx-login-main-logo {
        width: 125px !important;
    }

    body.hx-login-body .hx-login-title h2 {
        font-size: 23px !important;
    }

    body.hx-login-body .hx-login-options {
        align-items: flex-start !important;
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }

    body.hx-login-body .hx-login-options a {
        width: 100% !important;
        text-align: right !important;
    }
}

/* ================================
   Final Mobile Login Design
   بکگراند دسکتاپ + باکس سفید استاندارد موبایل
================================ */

@media (max-width: 780px) {

    html,
    body.hx-login-body {
        width: 100% !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background:
            linear-gradient(135deg, rgba(3, 16, 31, 0.94), rgba(3, 16, 31, 0.82)),
            radial-gradient(circle at 78% 18%, rgba(46, 217, 154, 0.24), transparent 34%),
            linear-gradient(135deg, #03101f, #06251e) !important;
        position: relative !important;
    }

    body.hx-login-body::before {
        content: "" !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 0 !important;
        pointer-events: none !important;
        opacity: 0.13 !important;
        background-image:
            linear-gradient(30deg, transparent 24%, rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.35) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.35) 76%, transparent 77%),
            linear-gradient(150deg, transparent 24%, rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.35) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.35) 76%, transparent 77%) !important;
        background-size: 82px 48px !important;
    }

    .hx-login-shell {
        width: 100% !important;
        max-width: 440px !important;
        min-height: 100dvh !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 26px 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* حذف کامل بخش معرفی، آمار، لوگوی بزرگ و متن تبلیغاتی در موبایل */
    .hx-login-hero,
    .hx-hero-logo,
    .hx-hero-content,
    .hx-hero-stats,
    .login-hero,
    .auth-hero,
    .login-info,
    .login-stats,
    .stats-grid {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .hx-login-card {
        width: 100% !important;
        max-width: 430px !important;
        min-height: auto !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 54px 20px 24px !important;
        border-radius: 30px !important;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94)),
            radial-gradient(circle at 18% 0%, rgba(46, 217, 154, 0.10), transparent 34%) !important;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28) !important;
        border: 1px solid rgba(255,255,255,0.22) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        transform: none !important;
    }

    /* لوگوی بالای فرم: بزرگ‌تر، پایین‌تر، نزدیک‌تر به عنوان */
    .hx-login-main-logo-box {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 12px 0 10px !important;
        padding: 0 !important;
        transform: none !important;
    }

    .hx-login-main-logo {
        width: 185px !important;
        max-width: 76% !important;
        max-height: none !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .hx-login-title {
        display: block !important;
        text-align: center !important;
        margin: 0 0 30px !important;
        padding: 0 !important;
        transform: none !important;
    }

    .hx-login-title h2 {
        margin: 8px 0 8px !important;
        color: #08111f !important;
        font-size: 34px !important;
        line-height: 1.35 !important;
        font-weight: 900 !important;
        text-align: center !important;
        transform: none !important;
    }

    .hx-login-title p {
        margin: 0 !important;
        color: #64748b !important;
        font-size: 15px !important;
        line-height: 1.9 !important;
        text-align: center !important;
        transform: none !important;
    }

    .hx-login-form,
    .hx-login-fields-lift {
        width: 100% !important;
        display: grid !important;
        gap: 16px !important;
        margin: 0 !important;
        transform: none !important;
    }

    .hx-login-field label {
        margin-bottom: 8px !important;
        color: #08111f !important;
        font-size: 15px !important;
        font-weight: 900 !important;
        text-align: right !important;
    }

    .hx-input-wrap {
        width: 100% !important;
        height: 58px !important;
        border-radius: 20px !important;
        background: #ffffff !important;
    }

    .hx-login-options {
        width: 100% !important;
        margin: 4px 0 2px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        transform: none !important;
    }

    .hx-login-options a {
        font-size: 15px !important;
        font-weight: 900 !important;
        color: #16a66f !important;
        text-decoration: none !important;
    }

    .hx-remember-check {
        font-size: 14px !important;
        color: #64748b !important;
    }

    .hx-login-button {
        width: 100% !important;
        height: 62px !important;
        margin-top: 8px !important;
        border-radius: 23px !important;
        font-size: 24px !important;
        font-weight: 900 !important;
    }
}

/* ================================
   Mobile Login Final Size Tuning
   لوگو بزرگ‌تر + باکس جمع‌وجورتر
================================ */

@media (max-width: 780px) {

    .hx-login-shell {
        max-width: 410px !important;
        padding: 22px 16px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hx-login-card {
        max-width: 390px !important;
        padding: 38px 18px 22px !important;
        border-radius: 28px !important;
        transform: scale(0.94) !important;
        transform-origin: center center !important;
    }

    /* لوگو بزرگ‌تر و پایین‌تر */
    .hx-login-main-logo-box {
        margin-top: 26px !important;
        margin-bottom: 2px !important;
        transform: translateY(14px) !important;
    }

    .hx-login-main-logo,
    .hx-login-main-logo-box img,
    .hx-login-card img {
        width: 225px !important;
        max-width: 82% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* عنوان نزدیک‌تر به لوگو و کمی کوچک‌تر */
    .hx-login-title {
        margin-top: 14px !important;
        margin-bottom: 22px !important;
    }

    .hx-login-title h2 {
        font-size: 30px !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
    }

    .hx-login-title p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    /* فرم جمع‌وجورتر */
    .hx-login-form,
    .hx-login-fields-lift {
        gap: 12px !important;
    }

    .hx-login-field label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .hx-input-wrap {
        height: 52px !important;
        border-radius: 18px !important;
    }

    .hx-input-wrap input,
    .hx-login-field input {
        height: 52px !important;
        font-size: 14px !important;
    }

    .hx-input-icon {
        font-size: 20px !important;
    }

    .hx-login-options {
        margin-top: 2px !important;
        margin-bottom: 0 !important;
        gap: 8px !important;
    }

    .hx-login-options a {
        font-size: 14px !important;
    }

    .hx-remember-check {
        font-size: 13px !important;
    }

    .hx-login-button {
        height: 56px !important;
        margin-top: 6px !important;
        border-radius: 21px !important;
        font-size: 22px !important;
    }
}

/* ================================
   FORCE Mobile Login Resize
================================ */

@media (max-width: 780px) {

    body.hx-login-body {
        min-height: 100dvh !important;
        background:
            linear-gradient(135deg, rgba(3, 16, 31, 0.94), rgba(3, 16, 31, 0.86)),
            radial-gradient(circle at 80% 15%, rgba(46, 217, 154, 0.22), transparent 35%),
            linear-gradient(135deg, #03101f, #06251e) !important;
    }

    .hx-login-shell {
        min-height: 100dvh !important;
        width: 100% !important;
        max-width: none !important;
        padding: 18px 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
    }

    /* خود باکس سفید را واقعاً کوچک‌تر می‌کنیم */
    body.hx-login-body .hx-login-card {
        width: 88vw !important;
        max-width: 355px !important;
        min-width: 0 !important;
        min-height: auto !important;
        height: auto !important;
        padding: 26px 15px 18px !important;
        border-radius: 26px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    /* لوگو را با scale بزرگ می‌کنیم تا اگر width اثر نکرد، باز هم بزرگ شود */
    body.hx-login-body .hx-login-main-logo-box {
        margin-top: 24px !important;
        margin-bottom: 18px !important;
        transform: translateY(10px) scale(1.28) !important;
        transform-origin: center center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    body.hx-login-body .hx-login-main-logo,
    body.hx-login-body .hx-login-main-logo-box img,
    body.hx-login-body .hx-login-card img {
        width: 210px !important;
        min-width: 210px !important;
        max-width: 210px !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    /* عنوان و متن کوچک‌تر و جمع‌وجورتر */
    body.hx-login-body .hx-login-title {
        margin: 22px 0 20px !important;
    }

    body.hx-login-body .hx-login-title h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin: 0 0 6px !important;
    }

    body.hx-login-body .hx-login-title p {
        font-size: 13px !important;
        line-height: 1.7 !important;
        margin: 0 !important;
    }

    body.hx-login-body .hx-login-form,
    body.hx-login-body .hx-login-fields-lift {
        gap: 10px !important;
    }

    body.hx-login-body .hx-login-field label {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }

    body.hx-login-body .hx-input-wrap {
        height: 48px !important;
        min-height: 48px !important;
        border-radius: 17px !important;
    }

    body.hx-login-body .hx-input-wrap input,
    body.hx-login-body .hx-login-field input {
        height: 48px !important;
        min-height: 48px !important;
        font-size: 13px !important;
    }

    body.hx-login-body .hx-input-icon {
        font-size: 18px !important;
    }

    body.hx-login-body .hx-login-options {
        margin: 0 !important;
        gap: 6px !important;
    }

    body.hx-login-body .hx-login-options a {
        font-size: 13px !important;
    }

    body.hx-login-body .hx-remember-check {
        font-size: 12px !important;
    }

    body.hx-login-body .hx-login-button {
        height: 52px !important;
        min-height: 52px !important;
        border-radius: 20px !important;
        font-size: 20px !important;
        margin-top: 6px !important;
    }
}

/* فقط کوچک‌تر کردن لوگوی صفحه لاگین موبایل */
@media (max-width: 780px) {

    body.hx-login-body .hx-login-main-logo-box {
        margin-top: 22px !important;
        margin-bottom: 14px !important;
        transform: translateY(8px) scale(1.08) !important;
        transform-origin: center center !important;
    }

    body.hx-login-body .hx-login-main-logo,
    body.hx-login-body .hx-login-main-logo-box img {
        width: 165px !important;
        min-width: 165px !important;
        max-width: 165px !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}

/* ================================
   Mobile Login Compact Spacing Fix
   کم کردن فاصله‌های اضافی داخل باکس ورود موبایل
================================ */

@media (max-width: 780px) {

    .hx-login-shell {
        padding: 18px 14px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hx-login-card {
        width: 100% !important;
        max-width: 430px !important;
        min-height: auto !important;
        height: auto !important;
        padding: 34px 20px 22px !important;
        border-radius: 30px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    /* لوگو: پایین‌تر و بدون فضای خالی اضافه */
    .hx-login-main-logo-box,
    .hx-login-logo-box,
    .login-logo-box,
    .auth-logo-box {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 0 16px !important;
        padding: 0 !important;
        min-height: auto !important;
        height: auto !important;
        transform: none !important;
    }

    .hx-login-main-logo,
    .hx-login-logo,
    .login-logo,
    .auth-logo {
        width: 210px !important;
        max-width: 78% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        transform: none !important;
    }

    /* عنوان ورود به پنل نزدیک‌تر به لوگو */
    .hx-login-title {
        margin: 0 0 24px !important;
        padding: 0 !important;
        text-align: center !important;
        transform: none !important;
    }

    .hx-login-title h1,
    .hx-login-title h2 {
        margin: 0 0 6px !important;
        padding: 0 !important;
        font-size: 32px !important;
        line-height: 1.35 !important;
        font-weight: 900 !important;
    }

    .hx-login-title p {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    /* فرم نزدیک‌تر به عنوان */
    .hx-login-form,
    .hx-login-fields-lift {
        margin: 0 !important;
        padding: 0 !important;
        display: grid !important;
        gap: 14px !important;
        transform: none !important;
    }

    .hx-login-field {
        margin: 0 !important;
        padding: 0 !important;
    }

    .hx-login-field label {
        margin: 0 0 8px !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .hx-input-wrap {
        height: 56px !important;
        min-height: 56px !important;
        margin: 0 !important;
    }

    .hx-login-options {
        margin: 4px 0 0 !important;
        padding: 0 !important;
    }

    .hx-login-button {
        height: 60px !important;
        min-height: 60px !important;
        margin-top: 12px !important;
    }
}

/* =========================================
   FORCE Mobile Login Compact Layout
   کاهش قطعی فاصله بالا/پایین لوگو در موبایل
========================================= */

@media (max-width: 780px) {

    .hx-login-shell {
        min-height: 100dvh !important;
        padding: 18px 14px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hx-login-card {
        min-height: auto !important;
        height: auto !important;
        padding-top: 22px !important;
        padding-bottom: 18px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        justify-content: flex-start !important;
    }

    /* لوگو بیاد نزدیک بالای باکس */
    .hx-login-main-logo-box {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        line-height: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hx-login-main-logo {
        width: 205px !important;
        max-width: 78% !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
        transform: translateY(0) !important;
    }

    /* عنوان بیاد نزدیک لوگو */
    .hx-login-title {
        margin-top: 0 !important;
        margin-bottom: 18px !important;
        padding: 0 !important;
        transform: translateY(-4px) !important;
    }

    .hx-login-title h1,
    .hx-login-title h2 {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        padding: 0 !important;
        font-size: 31px !important;
        line-height: 1.25 !important;
    }

    .hx-login-title p {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* فرم هم کمی بیاد بالاتر */
    .hx-login-form {
        margin-top: 0 !important;
        padding-top: 0 !important;
        gap: 12px !important;
        transform: translateY(-4px) !important;
    }

    .hx-login-fields-lift {
        margin-top: 0 !important;
        padding-top: 0 !important;
        gap: 12px !important;
        transform: none !important;
    }

    .hx-login-field {
        margin: 0 !important;
        padding: 0 !important;
    }

    .hx-login-field label {
        margin-bottom: 6px !important;
    }

    .hx-input-wrap {
        height: 54px !important;
        min-height: 54px !important;
    }

    .hx-login-options {
        margin-top: 2px !important;
        margin-bottom: 0 !important;
    }

    .hx-login-button {
        height: 58px !important;
        min-height: 58px !important;
        margin-top: 8px !important;
    }
}


/* ================================
   Online Content Section
================================ */

.hx-online-content-page {
    width: 100%;
}

.hx-online-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hx-online-toolbar h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
}

.hx-online-toolbar p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.9;
}

.hx-online-primary-btn,
.hx-online-secondary-btn,
.hx-online-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 16px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    transition: 0.2s ease;
    white-space: nowrap;
}

.hx-online-primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.25);
}

.hx-online-primary-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.32);
}

.hx-online-secondary-btn {
    color: #0f172a;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.hx-online-secondary-btn:hover {
    color: #0f172a;
    transform: translateY(-1px);
}

.hx-online-danger-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.25);
}

.hx-online-filter-card,
.hx-online-form-card,
.hx-online-detail-card,
.hx-online-empty {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hx-online-filter-card {
    margin-bottom: 22px;
}

.hx-online-filter-card label,
.hx-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-weight: 900;
    font-size: 14px;
}

.hx-online-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hx-form-control {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

textarea.hx-form-control {
    min-height: 150px;
    resize: vertical;
    line-height: 1.9;
}

.hx-file-input {
    padding-top: 12px;
}

.hx-form-error {
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
}

.hx-online-feed {
    display: grid;
    gap: 18px;
}

.hx-online-post-card {
    padding: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hx-online-post-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.hx-online-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #065f46;
    background: rgba(16, 185, 129, 0.12);
    font-size: 13px;
    font-weight: 900;
}

.hx-online-post-card h3 {
    margin: 10px 0 8px;
    font-size: 22px;
    font-weight: 950;
    color: #0f172a;
}

.hx-online-post-card h3 a {
    color: inherit;
    text-decoration: none;
}

.hx-online-post-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.9;
}

.hx-online-date {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.hx-online-cover {
    display: block;
    width: 100%;
    max-height: 360px;
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    margin-bottom: 16px;
}

.hx-online-cover img,
.hx-online-cover video {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.hx-online-excerpt {
    margin-top: 12px !important;
    color: #334155 !important;
}

.hx-online-headcoach-note-preview,
.hx-online-headcoach-note {
    margin-top: 16px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #78350f;
    line-height: 1.9;
}

.hx-online-post-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
    font-size: 14px;
}

.hx-online-post-footer a {
    color: #059669;
    font-weight: 900;
    text-decoration: none;
}

.hx-online-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.hx-form-group-full {
    grid-column: 1 / -1;
}

.hx-online-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hx-checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}

.hx-online-form-actions,
.hx-online-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
}

.hx-online-current-files {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.hx-online-attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hx-online-file-chip,
.hx-online-file-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 16px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    text-decoration: none;
    font-weight: 850;
}

.hx-online-detail-card h2 {
    margin: 12px 0 18px;
    color: #0f172a;
    font-size: 30px;
    font-weight: 950;
}

.hx-online-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hx-online-detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.hx-online-detail-body {
    color: #334155;
    line-height: 2.1;
    font-size: 16px;
}

.hx-online-detail-files {
    margin-top: 24px;
}

.hx-online-detail-files h3,
.hx-online-note-form h3,
.hx-online-headcoach-note h3 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 19px;
    font-weight: 950;
}

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

.hx-online-media-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
}

.hx-online-media-card img,
.hx-online-media-card video {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.hx-online-note-form {
    margin-top: 24px;
    padding: 20px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

@media (max-width: 780px) {
    .hx-online-toolbar,
    .hx-online-post-head,
    .hx-online-post-footer,
    .hx-online-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hx-online-form-grid,
    .hx-online-media-grid {
        grid-template-columns: 1fr;
    }

    .hx-online-toolbar,
    .hx-online-filter-card,
    .hx-online-form-card,
    .hx-online-detail-card,
    .hx-online-post-card,
    .hx-online-empty {
        padding: 18px;
        border-radius: 24px;
    }

    .hx-online-detail-card h2 {
        font-size: 24px;
    }

    .hx-online-primary-btn,
    .hx-online-secondary-btn,
    .hx-online-danger-btn {
        width: 100%;
    }
}

/* =====================================================
   Online Content Blog UI - Class Cards + Blog Feed
===================================================== */

.hx-online-home,
.hx-online-class-feed,
.hx-online-content-page {
    width: 100%;
}

.hx-online-hero,
.hx-online-class-hero,
.hx-online-selected-class-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 26px;
    padding: 28px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 8% 10%, rgba(16, 185, 129, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.94));
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

.hx-online-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    font-size: 13px;
    font-weight: 950;
}

.hx-online-hero h2,
.hx-online-class-hero h2,
.hx-online-selected-class-banner h2 {
    margin: 12px 0 8px;
    color: #07111f;
    font-size: 32px;
    line-height: 1.4;
    font-weight: 950;
}

.hx-online-hero p,
.hx-online-section-head p,
.hx-online-class-hero-meta,
.hx-online-selected-class-banner p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 2;
}

.hx-online-back-link,
.hx-online-selected-class-banner a {
    display: inline-flex;
    align-items: center;
    color: #059669;
    font-weight: 950;
    text-decoration: none;
    margin-bottom: 10px;
}

.hx-online-class-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hx-online-class-hero-meta span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.hx-online-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin: 10px 0 18px;
}

.hx-online-section-head h3 {
    margin: 0 0 6px;
    color: #07111f;
    font-size: 24px;
    font-weight: 950;
}

.hx-online-class-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hx-online-class-card {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 30px;
    text-decoration: none;
    color: inherit;
    background:
        radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92));
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: 0.22s ease;
    position: relative;
    overflow: hidden;
}

.hx-online-class-card::before {
    content: "";
    position: absolute;
    inset: auto -45px -60px auto;
    width: 150px;
    height: 150px;
    border-radius: 44px;
    border: 18px solid rgba(16, 185, 129, 0.10);
    transform: rotate(30deg);
}

.hx-online-class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 62px rgba(15, 23, 42, 0.12);
    border-color: rgba(16, 185, 129, 0.34);
}

.hx-online-class-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hx-online-class-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.28);
}

.hx-online-class-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #047857;
    background: rgba(16, 185, 129, 0.10);
    font-size: 13px;
    font-weight: 950;
}

.hx-online-class-card h3 {
    position: relative;
    z-index: 1;
    margin: 24px 0 12px;
    color: #07111f;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.5;
}

.hx-online-class-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 850;
}

.hx-online-class-latest,
.hx-online-class-empty-text {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(241, 245, 249, 0.82);
    color: #475569;
    font-size: 13px;
    line-height: 1.9;
}

.hx-online-class-latest strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
}

.hx-online-class-action {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    color: #059669;
    font-size: 15px;
    font-weight: 950;
}

.hx-online-latest-head {
    margin-top: 34px;
}

.hx-online-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hx-online-blog-card {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    overflow: hidden;
    border-radius: 30px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: 0.22s ease;
}

.hx-online-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 62px rgba(15, 23, 42, 0.12);
}

.hx-online-blog-cover {
    height: 185px;
    background: linear-gradient(135deg, #052e2b, #0f172a);
    overflow: hidden;
    position: relative;
}

.hx-online-blog-cover img,
.hx-online-blog-cover video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hx-online-no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hx-online-no-cover span {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 34px;
}

.hx-online-video-cover span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    color: #059669;
    font-size: 24px;
    font-weight: 950;
}

.hx-online-blog-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.hx-online-blog-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.hx-online-blog-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #047857;
    background: rgba(16, 185, 129, 0.11);
    font-size: 12px;
    font-weight: 950;
}

.hx-online-blog-date {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
}

.hx-online-blog-card h3 {
    margin: 14px 0 8px;
    color: #07111f;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.55;
}

.hx-online-blog-card p {
    margin: 0;
    color: #64748b;
    line-height: 2;
    font-size: 14px;
}

.hx-online-mini-note {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
    font-size: 12px;
    font-weight: 950;
}

.hx-online-blog-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}

.hx-online-blog-footer strong {
    color: #059669;
    font-weight: 950;
}

.hx-online-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hx-online-empty h3 {
    margin: 0 0 8px;
    color: #07111f;
    font-size: 22px;
    font-weight: 950;
}

.hx-online-empty p {
    margin: 0;
    color: #64748b;
    line-height: 2;
}

.hx-online-primary-btn,
.hx-online-secondary-btn,
.hx-online-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 17px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 950;
    transition: 0.2s ease;
    white-space: nowrap;
}

.hx-online-primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.25);
}

.hx-online-primary-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.hx-online-secondary-btn {
    color: #0f172a;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.hx-online-danger-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.hx-online-selected-class-banner {
    margin-bottom: 20px;
}

@media (max-width: 1180px) {
    .hx-online-class-grid,
    .hx-online-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .hx-online-hero,
    .hx-online-class-hero,
    .hx-online-selected-class-banner,
    .hx-online-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .hx-online-class-grid,
    .hx-online-blog-grid {
        grid-template-columns: 1fr;
    }

    .hx-online-hero,
    .hx-online-class-hero,
    .hx-online-selected-class-banner {
        padding: 20px;
        border-radius: 26px;
    }

    .hx-online-hero h2,
    .hx-online-class-hero h2 {
        font-size: 25px;
    }

    .hx-online-class-card,
    .hx-online-blog-card {
        border-radius: 26px;
    }

    .hx-online-primary-btn,
    .hx-online-secondary-btn,
    .hx-online-danger-btn {
        width: 100%;
    }
}

/* =========================
   ONLINE CONTENT - NEW UI
========================= */

.hx-oc-page {
    width: 100%;
    max-width: 100%;
}

.hx-oc-hero-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #f8fffc 0%, #eefcf7 100%);
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 34px;
    padding: 34px 36px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    margin-bottom: 28px;
}

.hx-oc-hero-right {
    flex: 1;
}

.hx-oc-hero-left {
    flex-shrink: 0;
}

.hx-oc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    color: #059669;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 12px;
}

.hx-oc-hero-card h2 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.3;
    font-weight: 950;
    color: #07111f;
}

.hx-oc-hero-card p {
    margin: 0;
    font-size: 16px;
    line-height: 2;
    color: #64748b;
    max-width: 760px;
}

.hx-oc-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.22);
    transition: 0.2s ease;
}

.hx-oc-main-btn:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.hx-oc-back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #059669;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

.hx-oc-section-head {
    margin-bottom: 18px;
}

.hx-oc-section-head h3 {
    margin: 0 0 6px;
    color: #07111f;
    font-size: 31px;
    font-weight: 950;
}

.hx-oc-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.9;
}

.hx-oc-mt {
    margin-top: 38px;
}

.hx-oc-class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.hx-oc-class-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 32px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
    overflow: hidden;
    position: relative;
}

.hx-oc-class-card::after {
    content: "";
    position: absolute;
    left: -25px;
    bottom: -25px;
    width: 110px;
    height: 110px;
    background: rgba(16, 185, 129, 0.07);
    border-radius: 28px;
}

.hx-oc-class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
    border-color: rgba(16, 185, 129, 0.24);
}

.hx-oc-class-top,
.hx-oc-class-body,
.hx-oc-class-footer {
    position: relative;
    z-index: 2;
}

.hx-oc-class-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.hx-oc-class-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981, #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.20);
}

.hx-oc-class-count {
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    color: #059669;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
}

.hx-oc-class-body h3 {
    margin: 0 0 14px;
    color: #07111f;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.5;
}

.hx-oc-class-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    color: #475569;
    font-size: 15px;
    line-height: 1.9;
}

.hx-oc-class-meta span {
    color: #0f172a;
    font-weight: 900;
}

.hx-oc-class-last-post {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    padding: 14px 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}

.hx-oc-class-last-post span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.hx-oc-class-last-post strong {
    color: #07111f;
    font-weight: 900;
}

.hx-oc-class-last-post-empty {
    color: #64748b;
}

.hx-oc-class-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #059669;
    font-size: 15px;
    font-weight: 900;
}

.hx-oc-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.hx-oc-post-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
    display: flex;
    flex-direction: column;
    min-height: 390px;
}

.hx-oc-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
}

.hx-oc-post-cover {
    height: 190px;
    background: linear-gradient(135deg, #062e2b, #07111f);
    overflow: hidden;
}

.hx-oc-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hx-oc-post-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hx-oc-post-cover-fallback span {
    font-size: 46px;
    color: #fff;
    opacity: 0.92;
}

.hx-oc-post-content {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hx-oc-post-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.hx-oc-post-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    color: #059669;
    font-size: 12px;
    font-weight: 900;
}

.hx-oc-post-date {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.hx-oc-post-content h4 {
    margin: 0 0 10px;
    color: #07111f;
    font-size: 21px;
    line-height: 1.6;
    font-weight: 950;
}

.hx-oc-post-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 2;
}

.hx-oc-note-chip {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.hx-oc-post-bottom {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.hx-oc-post-bottom strong {
    color: #059669;
    font-weight: 900;
}

.hx-oc-empty-box {
    width: 100%;
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 26px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.hx-oc-empty-box h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #07111f;
    font-weight: 950;
}

.hx-oc-empty-box p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 2;
}

@media (max-width: 1200px) {
    .hx-oc-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hx-oc-hero-card {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }

    .hx-oc-class-grid,
    .hx-oc-post-grid {
        grid-template-columns: 1fr;
    }

    .hx-oc-hero-card h2 {
        font-size: 32px;
    }
}
/* ================================
   Coach Dashboard Today/My Classes Switch
================================ */

.hx-coach-switch-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

.hx-coach-switch-head p {
    margin: 8px 0 0 !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
}

.hx-coach-switch-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.22);
    flex-shrink: 0;
}

.hx-coach-switch-btn {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 13px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.hx-coach-switch-btn:hover {
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}

.hx-coach-switch-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.24);
}

.hx-coach-switch-panel {
    display: none;
}

.hx-coach-switch-panel.active {
    display: block;
}

.hx-my-class-card .today-lesson-box {
    min-height: 118px;
}

.hx-my-class-schedule-line {
    margin: 4px 0 !important;
    color: #334155 !important;
    font-weight: 850 !important;
    line-height: 1.8 !important;
}

@media (max-width: 780px) {
    .hx-coach-switch-head {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hx-coach-switch-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hx-coach-switch-btn {
        width: 100%;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* Fix: hide mobile header on desktop */
@media (min-width: 781px) {
    .hx-mobile-header {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 780px) {
    .hx-mobile-header {
        display: flex !important;
    }
}
.hx-fin-page .hx-jalali-date-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hx-fin-page .hx-jalali-date-wrapper .hx-jalali-date-input {
    flex: 1;
}

.hx-fin-page .hx-jalali-calendar-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    cursor: pointer;
}

/* =====================================================
   HEXAGON PANEL SIDEBAR PATTERN - EXTRACTED FROM WEBSITE
   پترن شش‌ضلعی متحرک برای سایدبار پنل، با رنگ هر نقش
===================================================== */

.hx-unified-sidebar {
    position: fixed !important;
    overflow: hidden !important;

    background:
        linear-gradient(
            135deg,
            var(--role-dark-1, #08141b) 0%,
            var(--role-dark-2, #0d1f28) 48%,
            #071112 100%
        ) !important;
}

/* لایه نورهای نرم متحرک */
.hx-unified-sidebar::before {
    content: "" !important;
    position: absolute !important;
    inset: -22% !important;
    z-index: 0 !important;
    pointer-events: none !important;

    background:
        radial-gradient(circle at 20% 30%,
            color-mix(in srgb, var(--role-primary, #25c991) 28%, transparent) 0%,
            transparent 29%
        ),
        radial-gradient(circle at 80% 20%,
            color-mix(in srgb, var(--role-primary, #25c991) 18%, transparent) 0%,
            transparent 25%
        ),
        radial-gradient(circle at 72% 76%,
            color-mix(in srgb, var(--role-primary, #25c991) 20%, transparent) 0%,
            transparent 30%
        ),
        radial-gradient(circle at 30% 82%,
            color-mix(in srgb, var(--role-primary, #25c991) 16%, transparent) 0%,
            transparent 26%
        ) !important;

    filter: blur(10px) !important;
    opacity: 0.95 !important;
    animation: hxSidebarGlowMove 14s ease-in-out infinite alternate !important;
}

/* لایه خطوط شش‌ضلعی متحرک */
.hx-unified-sidebar::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;

    opacity: 0.18 !important;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='121' viewBox='0 0 140 121'%3E%3Cpath d='M35 1h70l34 59-34 60H35L1 60 35 1z' fill='none' stroke='%2334d399' stroke-width='1.5' stroke-opacity='0.26'/%3E%3C/svg%3E") !important;

    background-size: 140px 121px !important;
    background-repeat: repeat !important;
    background-position: 0 0 !important;

    animation: hxSidebarPatternFloat 22s linear infinite !important;
}

/* همه محتوای داخل سایدبار بالاتر از پترن بیاید */
.hx-unified-sidebar > * {
    position: relative !important;
    z-index: 3 !important;
}

/* کارت پروفایل و دکمه‌ها شیشه‌ای‌تر و هماهنگ با پترن */
.hx-unified-sidebar .hx-unified-user-card {
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--role-primary, #25c991) 18%, rgba(255,255,255,0.08)),
            rgba(255,255,255,0.055)
        ) !important;

    border: 1px solid color-mix(in srgb, var(--role-primary, #25c991) 30%, rgba(255,255,255,0.10)) !important;
    backdrop-filter: blur(12px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(135%) !important;
}

.hx-unified-sidebar .hx-unified-menu-item {
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(255,255,255,0.075) !important;
    backdrop-filter: blur(8px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
}

.hx-unified-sidebar .hx-unified-menu-item:hover,
.hx-unified-sidebar .hx-unified-menu-item.hx-sidebar-active {
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--role-primary, #25c991) 32%, rgba(255,255,255,0.06)),
            color-mix(in srgb, var(--role-primary, #25c991) 12%, rgba(255,255,255,0.04))
        ) !important;

    border-color: color-mix(in srgb, var(--role-primary, #25c991) 58%, rgba(255,255,255,0.12)) !important;

    box-shadow:
        inset 4px 0 0 var(--role-primary, #25c991),
        0 16px 35px color-mix(in srgb, var(--role-primary, #25c991) 22%, transparent) !important;

    color: #ffffff !important;
}

/* انیمیشن نورها */
@keyframes hxSidebarGlowMove {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    50% {
        transform: translate3d(2%, 1%, 0) scale(1.05);
    }

    100% {
        transform: translate3d(-1%, 2%, 0) scale(1.02);
    }
}

/* انیمیشن حرکت پترن شش‌ضلعی */
@keyframes hxSidebarPatternFloat {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 140px 121px;
    }
}

/* نسخه سبک‌تر برای موبایل */
@media (max-width: 780px) {
    .hx-unified-sidebar::after {
        opacity: 0.12 !important;
        background-size: 100px 86px !important;
    }

    .hx-unified-sidebar::before {
        filter: blur(14px) !important;
        opacity: 0.75 !important;
    }
}

/* =====================================================
   FIX SIDEBAR TOP LOGO OVERFLOW
   جلوگیری از بیرون زدن لوگوی بالای سایدبار
===================================================== */

@media (min-width: 781px) {
    .hx-unified-sidebar {
        padding-top: 26px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hx-unified-brand {
        margin-top: 0 !important;
        padding-top: 0 !important;
        transform: none !important;
        position: relative !important;
        top: auto !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
    }

    .hx-unified-brand a,
    .hx-unified-brand-logo,
    .hx-unified-brand img {
        transform: none !important;
        position: relative !important;
        top: auto !important;
        margin-top: 0 !important;
    }

    .hx-unified-brand img,
    .hx-unified-brand-logo {
        max-height: 78px !important;
        object-fit: contain !important;
    }

    .hx-unified-user-card {
        margin-top: 14px !important;
    }
}

/* =====================================================
   FINAL SIDEBAR SCROLL + TOP LOGO FIX
   اسکرول سایدبار + جلوگیری از بریدن لوگوی بالا
===================================================== */

@media (min-width: 781px) {
    .hx-unified-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        height: 100vh !important;
        max-height: 100vh !important;

        padding-top: 28px !important;
        padding-bottom: 18px !important;
        box-sizing: border-box !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .hx-unified-sidebar::-webkit-scrollbar {
        width: 5px !important;
    }

    .hx-unified-sidebar::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .hx-unified-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.22) !important;
        border-radius: 999px !important;
    }

    .hx-unified-brand {
        position: relative !important;
        top: auto !important;
        transform: none !important;

        margin-top: 0 !important;
        margin-bottom: 18px !important;
        padding-top: 0 !important;

        min-height: 82px !important;
        height: auto !important;

        overflow: visible !important;
        flex-shrink: 0 !important;
    }

    .hx-unified-brand a {
        position: relative !important;
        top: auto !important;
        transform: none !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        min-height: 82px !important;
        overflow: visible !important;
    }

    .hx-unified-brand img,
    .hx-unified-brand-logo {
        position: relative !important;
        top: auto !important;
        transform: none !important;

        display: block !important;
        max-width: 155px !important;
        max-height: 76px !important;
        width: auto !important;
        height: auto !important;

        object-fit: contain !important;
        margin: 0 auto !important;
    }

    .hx-unified-user-card {
        margin-top: 0 !important;
        margin-bottom: 18px !important;
        flex-shrink: 0 !important;
    }

    .hx-unified-menu {
        overflow: visible !important;
        padding-bottom: 12px !important;
    }

    .hx-unified-logout-form,
    .hx-unified-logout,
    .hx-logout-btn {
        margin-bottom: 12px !important;
    }
}

/* Student detail accordion sections */

.hx-student-accordion-card {
    padding: 0 !important;
    overflow: hidden;
}

.hx-student-accordion-head {
    width: 100%;
    min-height: 92px;
    padding: 24px 26px;
    border: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.10), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fcfa);
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: right;
}

.hx-student-accordion-head h3 {
    margin: 0 0 8px;
    color: #07111f;
    font-size: 26px;
    font-weight: 950;
}

.hx-student-accordion-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
    font-size: 14px;
}

.hx-student-accordion-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 950;
    flex: 0 0 42px;
    transition: 0.2s ease;
}

.hx-student-accordion-card:not(.is-collapsed) .hx-student-accordion-icon {
    transform: rotate(180deg);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.hx-student-accordion-body {
    padding: 24px 26px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.hx-student-accordion-card.is-collapsed .hx-student-accordion-body {
    display: none;
}

@media (max-width: 780px) {
    .hx-student-accordion-head {
        min-height: 78px;
        padding: 18px;
    }

    .hx-student-accordion-head h3 {
        font-size: 21px;
    }

    .hx-student-accordion-body {
        padding: 18px;
    }
}

/* Student detail accordion - clean version */

.hx-student-accordion-card {
    padding: 0 !important;
    overflow: hidden !important;
}

.hx-student-accordion-head {
    width: 100%;
    min-height: 96px;
    padding: 24px 26px;
    border: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.10), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fcfa);
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: right;
}

.hx-student-accordion-head h3 {
    margin: 0 0 8px;
    color: #07111f;
    font-size: 26px;
    font-weight: 950;
}

.hx-student-accordion-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
    font-size: 14px;
}

.hx-student-accordion-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    transition: 0.25s ease;
}

.hx-student-accordion-icon::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: 0.25s ease;
}

.hx-student-accordion-card:not(.is-collapsed) .hx-student-accordion-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.22);
}

.hx-student-accordion-card:not(.is-collapsed) .hx-student-accordion-icon::before {
    transform: rotate(225deg);
    margin-top: 4px;
}

.hx-student-accordion-body {
    display: block !important;
    max-height: 2500px;
    opacity: 1;
    padding: 24px 26px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease;
}

.hx-student-accordion-card.is-collapsed .hx-student-accordion-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
}

@media (max-width: 780px) {
    .hx-student-accordion-head {
        min-height: 78px;
        padding: 18px;
    }

    .hx-student-accordion-head h3 {
        font-size: 21px;
    }

    .hx-student-accordion-body {
        padding: 18px;
    }

    .hx-student-accordion-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        flex-basis: 40px;
    }
}

.hx-session-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.hx-session-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:106px;
    height:42px;
    padding:0 16px;
    border-radius:14px;
    font-weight:700;
    text-decoration:none;
    border:1px solid #dbe4ea;
    transition:all .2s ease;
}

.hx-session-btn--muted{
    background:#eef2f6;
    color:#5f6f84;
}

.hx-session-btn--warning{
    background:#ffbe2e;
    color:#1f2a37;
    border-color:#ffbe2e;
}

.hx-session-btn--success{
    background:#1cc98a;
    color:#ffffff;
    border-color:#1cc98a;
}

.hx-session-btn--dark{
    background:#0f172a;
    color:#ffffff;
    border-color:#0f172a;
}

.hx-sidebar .hx-user-name,
.hx-sidebar .hx-profile-name,
.hx-sidebar .hx-profile-card .name,
.hx-sidebar .hx-profile-card strong,
.hx-sidebar .hx-profile-card h4{
    color:#ffffff !important;
}

.hx-sidebar .hx-user-role,
.hx-sidebar .hx-profile-role,
.hx-sidebar .hx-profile-card small,
.hx-sidebar .hx-profile-card span{
    color:rgba(255,255,255,.88) !important;
}

.hx-profile-summary-card{
    background:#ffffff;
    border:1px solid #dfe8e3;
    border-radius:28px;
    padding:26px 32px;
    margin:24px 0;
    box-shadow:0 8px 30px rgba(0,0,0,.04);
}

.hx-profile-summary-badge{
    display:inline-flex;
    align-items:center;
    padding:8px 14px;
    border-radius:999px;
    background:#eafaf4;
    color:#0f8f67;
    font-size:14px;
    font-weight:700;
    margin-bottom:10px;
}

.hx-profile-summary-card h3{
    margin:0 0 8px 0;
    font-size:34px;
    font-weight:800;
    color:#0f172a;
}

.hx-profile-summary-card p{
    margin:0;
    color:#6b7280;
    font-size:16px;
}

.hx-sidebar{
    position:relative;
    overflow:hidden;
}

.hx-sidebar::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size:64px 64px;
    opacity:.35;
    pointer-events:none;
}

.hx-sidebar > *{
    position:relative;
    z-index:1;
}

/* =====================================================
   FINAL FIX - Sidebar profile name + dashboard pattern
===================================================== */

/* سفید شدن اسم و نقش کاربر در سایدبار همه صفحات */
.hx-unified-sidebar .hx-unified-user-card,
.hx-unified-sidebar .hx-unified-user-card *,
.hx-unified-sidebar .hx-unified-user-card strong,
.hx-unified-sidebar .hx-unified-user-card span,
.hx-unified-sidebar .hx-sidebar-profile-link,
.hx-unified-sidebar .hx-sidebar-profile-link *,
.hx-unified-sidebar .hx-sidebar-profile-link strong,
.hx-unified-sidebar .hx-sidebar-profile-link span,
.sidebar .user-side-card,
.sidebar .user-side-card *,
.sidebar .user-side-card strong,
.sidebar .user-side-card span,
.sidebar .hx-coach-profile-link,
.sidebar .hx-coach-profile-link * {
    color: #ffffff !important;
}

.hx-unified-sidebar .hx-unified-user-card span,
.hx-unified-sidebar .hx-sidebar-profile-link span,
.sidebar .user-side-card span,
.sidebar .hx-coach-profile-link span {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* لینک پروفایل در داشبورد مربی */
.hx-coach-profile-link {
    text-decoration: none !important;
    cursor: pointer !important;
}

.hx-coach-profile-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.hx-coach-profile-link:hover strong {
    color: #ffffff !important;
}

.hx-coach-profile-link:hover span {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* پترن سایدبار داشبورد مربی که class آن sidebar است */
.sidebar {
    position: sticky !important;
    isolation: isolate !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background:
        radial-gradient(circle at 22% 4%, rgba(16, 185, 129, 0.34), transparent 34%),
        linear-gradient(180deg, #063829 0%, #064233 48%, #031c17 100%) !important;
}

.sidebar::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 0.22 !important;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(255,255,255,0.28) 25%, rgba(255,255,255,0.28) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.28) 75%, rgba(255,255,255,0.28) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255,255,255,0.28) 25%, rgba(255,255,255,0.28) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.28) 75%, rgba(255,255,255,0.28) 76%, transparent 77%) !important;
    background-size: 86px 50px !important;
}

/* پترن سایدبار اصلی همه صفحات که class آن hx-unified-sidebar است */
.hx-unified-sidebar {
    position: fixed !important;
    isolation: isolate !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.hx-unified-sidebar::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 0.22 !important;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(255,255,255,0.28) 25%, rgba(255,255,255,0.28) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.28) 75%, rgba(255,255,255,0.28) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255,255,255,0.28) 25%, rgba(255,255,255,0.28) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.28) 75%, rgba(255,255,255,0.28) 76%, transparent 77%) !important;
    background-size: 86px 50px !important;
}

.sidebar > *,
.hx-unified-sidebar > * {
    position: relative !important;
    z-index: 2 !important;
}

/* مطمئن شو کارت پروفایل روی پترن می‌ماند و خواناست */
.hx-unified-user-card,
.user-side-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(10px) !important;
}

/* Role switch button under profile card */
.hx-role-switch-top-wrap {
    width: 100% !important;
    margin: 14px 0 18px !important;
    padding: 0 !important;
}

.hx-role-switch-top-btn {
    width: 100% !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;

    font-weight: 950 !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34) !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.hx-role-switch-top-btn:hover {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.hx-role-switch-top-btn *,
.hx-role-switch-top-btn:hover * {
    color: #ffffff !important;
    text-decoration: none !important;
}

.hx-role-switch-top-wrap + .hx-unified-menu-title {
    margin-top: 4px !important;
}

/* دکمه تغییر نقش زیر کارت پروفایل و بالای منوی اصلی */
.hx-role-switch-under-profile {
    width: 100% !important;
    margin: 14px 0 18px !important;
}

.hx-role-switch-top-btn {
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;

    font-weight: 950 !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34) !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.hx-role-switch-top-btn:hover {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.hx-role-switch-top-btn *,
.hx-role-switch-top-btn:hover * {
    color: #ffffff !important;
    text-decoration: none !important;
}

.hx-role-switch-under-profile + .hx-unified-menu-title {
    margin-top: 2px !important;
}

/* Unified role switch button under profile */
.hx-role-switch-under-profile {
    width: 100% !important;
    margin: 14px 0 18px !important;
}

.hx-role-switch-top-btn {
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;

    font-weight: 950 !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34) !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.hx-role-switch-top-btn:hover {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.42) !important;
}

.hx-role-switch-top-btn *,
.hx-role-switch-top-btn:hover * {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* System messages readable style */
.hx-message-system strong {
    font-size: 15px !important;
    font-weight: 950 !important;
}

.hx-message-system p {
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 2.15 !important;
    color: #0f172a !important;
}
/* FIX - School dashboard hero title */
.hx-school-dashboard-title-fixed {
    width: 100% !important;
    display: block !important;
    text-align: right !important;
    direction: rtl !important;
    font-size: 42px !important;
    font-weight: 950 !important;
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.school-hero,
.hx-school-hero,
.hx-school-dashboard-hero,
.school-dashboard-hero {
    direction: rtl !important;
    text-align: right !important;
}

/* FIX - School dashboard title */
.hx-school-dashboard-title-fixed {
    width: 100% !important;
    display: block !important;
    text-align: right !important;
    direction: rtl !important;
    font-size: 42px !important;
    font-weight: 950 !important;
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* FIX - School finance class cards */
.hx-school-finance-classes-box {
    direction: rtl !important;
}

.hx-school-finance-class-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

.hx-school-finance-class-card {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
    text-decoration: none !important;
    background:
        radial-gradient(circle at 0 0, rgba(0, 196, 140, .16), transparent 36%),
        #ffffff !important;
    border: 1px solid rgba(0, 196, 140, .22) !important;
    border-radius: 26px !important;
    padding: 20px !important;
    min-height: 230px !important;
    color: #0f172a !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07) !important;
    transition: .2s ease !important;
}

.hx-school-finance-class-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(0, 196, 140, .55) !important;
    box-shadow: 0 24px 54px rgba(15, 23, 42, .11) !important;
}

.hx-school-finance-class-icon {
    width: 58px !important;
    height: 58px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 26px !important;
    box-shadow: 0 14px 30px rgba(16, 185, 129, .28) !important;
}

.hx-school-finance-class-main {
    min-width: 0 !important;
}

.hx-school-finance-class-topline {
    display: flex !important;
    justify-content: flex-start !important;
    margin-bottom: 10px !important;
}

.hx-school-finance-class-topline span {
    display: inline-flex !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: #ecfdf5 !important;
    color: #059669 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.hx-school-finance-class-main h4 {
    margin: 0 0 16px !important;
    font-size: 22px !important;
    font-weight: 950 !important;
    color: #07111f !important;
    line-height: 1.7 !important;
}

.hx-school-finance-class-info {
    display: grid !important;
    gap: 9px !important;
}

.hx-school-finance-class-info div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 15px !important;
    padding: 10px 12px !important;
}

.hx-school-finance-class-info small {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.hx-school-finance-class-info strong {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    text-align: left !important;
}

.hx-school-finance-class-action {
    margin-top: 14px !important;
    color: #059669 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

@media (max-width: 1200px) {
    .hx-school-finance-class-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .hx-school-finance-class-grid {
        grid-template-columns: 1fr !important;
    }
}

/* FINAL FIX - school dashboard hero title right side */
.hx-school-purple-hero {
    display: block !important;
    direction: rtl !important;
    text-align: right !important;
    justify-content: unset !important;
}

.hx-school-purple-hero .hx-headcoach-purple-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    direction: rtl !important;
    position: relative !important;
    z-index: 5 !important;
}

.hx-school-purple-hero .hx-headcoach-purple-date {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.hx-school-dashboard-title-fixed {
    display: block !important;
    width: 100% !important;
    text-align: right !important;
    direction: rtl !important;
    margin: 18px 0 0 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 44px !important;
    font-weight: 950 !important;
    line-height: 1.5 !important;
}

/* FINAL FIX - school documents right alignment */
.hx-docs-page,
.hx-docs-page * {
    direction: rtl;
}

.hx-docs-hero {
    justify-content: flex-end !important;
    text-align: right !important;
    direction: rtl !important;
}

.hx-docs-hero > div {
    width: 100% !important;
    text-align: right !important;
}

.hx-docs-card,
.hx-docs-school-title-card,
.hx-docs-section-head,
.hx-docs-minute-card,
.hx-docs-minute-body {
    text-align: right !important;
    direction: rtl !important;
}

.hx-docs-form-grid .field,
.hx-docs-form-grid label,
.hx-docs-form-grid input,
.hx-docs-form-grid textarea,
.hx-docs-form-grid select {
    text-align: right !important;
    direction: rtl !important;
}
/* HX - Django messages colors */
.hx-message,
.hx-alert,
.messages li,
.messages .message {
    border-radius: 16px;
    padding: 14px 18px;
    margin: 12px 0;
    font-weight: 700;
}

.hx-message-error,
.hx-alert-error,
.messages .error,
.messages li.error,
.message.error,
.alert-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.hx-message-success,
.hx-alert-success,
.messages .success,
.messages li.success,
.message.success,
.alert-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.hx-form-error-box {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 14px 18px;
    margin: 14px 0 20px;
    font-weight: 800;
}

/* HX - Django messages colors */
.hx-messages {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
}

.hx-message {
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 800;
    line-height: 1.9;
}

.hx-message-error,
.hx-message.error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.hx-message-success,
.hx-message.success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.hx-message-warning,
.hx-message.warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.hx-message-info,
.hx-message.info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

.hx-form-error-box {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 14px 18px;
    margin: 14px 0 20px;
    font-weight: 800;
}
.hx-messages {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
}

.hx-message {
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 800;
    line-height: 1.9;
}

.hx-message-error,
.hx-message.error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.hx-message-success,
.hx-message.success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.hx-message-warning,
.hx-message.warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.hx-message-info,
.hx-message.info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

.hx-form-error-box {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 14px 18px;
    margin: 14px 0 20px;
    font-weight: 800;
}

/* HX - students search one-line layout */
.hx-student-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.hx-student-search-form .form-grid {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(220px, 0.8fr);
    gap: 14px;
}

.hx-student-search-form .form-actions {
    margin: 0;
    display: flex;
    align-items: end;
    gap: 10px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hx-student-search-form {
        grid-template-columns: 1fr;
    }

    .hx-student-search-form .form-grid {
        grid-template-columns: 1fr;
    }

    .hx-student-search-form .form-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Chat empty panel vertical center */
.hx-chat-empty,
.hx-chat-placeholder,
.hx-chat-empty-state,
.hx-chat-main-empty,
.hx-chat-thread-empty {
    min-height: calc(100vh - 260px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hx-chat-empty h1,
.hx-chat-empty h2,
.hx-chat-placeholder h1,
.hx-chat-placeholder h2,
.hx-chat-empty-state h1,
.hx-chat-empty-state h2,
.hx-chat-main-empty h1,
.hx-chat-main-empty h2 {
    margin-top: 0 !important;
}

/* Chat active contact + notification badge fix */
.hx-chat-contact.is-active {
    background: linear-gradient(135deg, rgba(0, 200, 139, 0.18), rgba(0, 127, 95, 0.10)) !important;
    border: 2px solid rgba(0, 200, 139, 0.95) !important;
    box-shadow: 0 16px 34px rgba(0, 127, 95, 0.18) !important;
}

.hx-chat-contact.is-active .hx-chat-contact-avatar {
    background: linear-gradient(135deg, #00c88b, #007f5f) !important;
    color: #ffffff !important;
}

.hx-chat-contact-info {
    min-width: 0 !important;
}

.hx-chat-contact-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
}

.hx-chat-contact-title-row strong {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.hx-chat-contact-badge,
.hx-menu-badge {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    text-align: center !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    flex: 0 0 22px !important;
}

.hx-unified-menu-item .hx-menu-badge {
    margin-inline-start: auto !important;
    margin-inline-end: 8px !important;
    align-self: center !important;
}

/* Chat selected contact and unread badge fix */
.hx-chat-contact.is-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.08)) !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.22) !important;
}

.hx-chat-contact-badge,
.hx-menu-badge {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    text-align: center !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    flex: 0 0 22px !important;
}

.hx-chat-contact {
    position: relative !important;
}

.hx-chat-contact .hx-chat-contact-badge {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.hx-unified-menu-item {
    display: flex !important;
    align-items: center !important;
}

.hx-unified-menu-item .hx-menu-badge {
    margin-inline-start: auto !important;
    margin-inline-end: 8px !important;
}
/* Chat empty page center */
.hx-chat-welcome-center {
    width: 100% !important;
    min-height: calc(100vh - 260px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 40px 24px !important;
}

.hx-chat-welcome-icon {
    width: 78px !important;
    height: 78px !important;
    border-radius: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 22px !important;
    background: linear-gradient(135deg, #00c889, #009b6a) !important;
    color: #ffffff !important;
    font-size: 30px !important;
    box-shadow: 0 22px 45px rgba(0, 150, 105, 0.24) !important;
}

.hx-chat-welcome-center h2 {
    margin: 0 0 12px !important;
    font-size: 30px !important;
    font-weight: 950 !important;
    color: #071112 !important;
}

.hx-chat-welcome-center p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 2 !important;
}

/* =====================================================
   GLOBAL JALALI CALENDAR ARROW FIX
===================================================== */

.hx-jalali-calendar {
    direction: rtl !important;
}

.hx-jalali-cal-head {
    direction: rtl !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 10px !important;
}

.hx-jalali-cal-head strong {
    grid-column: 2 !important;
    text-align: center !important;
    justify-self: center !important;
    width: 100% !important;
    line-height: 1.4 !important;
}

.hx-jalali-cal-head button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 22px !important;
    font-weight: 950 !important;
    text-align: center !important;
}

.hx-jalali-cal-head button::before {
    display: none !important;
}

.hx-jalali-cal-head button[data-action="prev"] {
    grid-column: 1 !important;
}

.hx-jalali-cal-head button[data-action="next"] {
    grid-column: 3 !important;
}

/* =========================================================
   Login page mobile fix - password eye + compact card
   ========================================================= */

@media (max-width: 768px) {

  .login-page,
  .auth-page,
  .hx-login-page {
    min-height: 100vh;
    padding: 18px 16px !important;
    align-items: flex-start !important;
  }

  .login-card,
  .auth-card,
  .hx-login-card {
    width: calc(100% - 18px) !important;
    max-width: 390px !important;
    margin: 56px auto 0 !important;
    padding: 34px 22px 28px !important;
    border-radius: 28px !important;
  }

  .login-logo,
  .auth-logo,
  .hx-login-logo {
    margin-bottom: 28px !important;
  }

  .login-card h1,
  .login-card h2,
  .auth-card h1,
  .auth-card h2,
  .hx-login-card h1,
  .hx-login-card h2 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 30px !important;
    line-height: 1.4 !important;
  }

  .login-card .login-subtitle,
  .auth-card .login-subtitle,
  .hx-login-card .login-subtitle,
  .login-card p,
  .auth-card p,
  .hx-login-card p {
    margin-bottom: 28px !important;
  }

  .form-group,
  .login-form-group,
  .auth-form-group {
    margin-bottom: 18px !important;
  }

  .password-field,
  .password-wrapper,
  .input-password-wrapper,
  .login-password-wrapper,
  .form-password-wrapper,
  .hx-password-field {
    position: relative !important;
    width: 100% !important;
  }

  input[type="password"],
  input[type="text"].password-input,
  .password-field input,
  .password-wrapper input,
  .input-password-wrapper input,
  .login-password-wrapper input,
  .form-password-wrapper input,
  .hx-password-field input {
    width: 100% !important;
    height: 54px !important;
    box-sizing: border-box !important;
    direction: ltr !important;
    text-align: left !important;
    padding-right: 52px !important;
    padding-left: 54px !important;
  }

  .password-toggle,
  .toggle-password,
  .show-password,
  .login-password-toggle,
  .hx-password-toggle,
  button[aria-label*="رمز"],
  button[aria-label*="password"],
  button[aria-label*="Password"] {
    position: absolute !important;
    left: 12px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 50% !important;

    font-size: 18px !important;
    line-height: 1 !important;
    z-index: 5 !important;
    cursor: pointer !important;
  }

  .password-toggle svg,
  .toggle-password svg,
  .show-password svg,
  .login-password-toggle svg,
  .hx-password-toggle svg {
    width: 20px !important;
    height: 20px !important;
  }

  .remember-row,
  .login-options,
  .auth-options {
    margin-top: 10px !important;
    margin-bottom: 18px !important;
  }

  .login-button,
  .auth-submit,
  .hx-login-submit,
  button[type="submit"] {
    height: 56px !important;
    margin-top: 10px !important;
  }
}
/* =====================================================
   FINAL MOBILE SIDEBAR + HEADER FIX
   همه پنل‌ها در موبایل: سایدبار پیش‌فرض بسته، هدر ثابت
===================================================== */

@media (min-width: 781px) {
    .hx-mobile-header,
    .hx-mobile-sidebar-overlay {
        display: none !important;
    }
}

@media (max-width: 780px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.hx-mobile-sidebar-open {
        overflow: hidden !important;
    }

    .hx-unified-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100dvh !important;
        overflow-x: hidden !important;
    }

    .hx-unified-main,
    main.hx-unified-main,
    main.hx-unified-main.coach-dashboard-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding: 78px 12px 18px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .hx-mobile-header {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        height: 54px !important;
        min-height: 54px !important;
        padding: 7px 9px !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        border: 1px solid rgba(16, 185, 129, 0.22) !important;
        box-shadow: 0 18px 45px rgba(8, 60, 50, 0.14) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        z-index: 950 !important;
        box-sizing: border-box !important;
    }

    .hx-mobile-brand {
        display: none !important;
    }

    .hx-mobile-menu-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg, #00c889, #009b6a) !important;
        color: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
        font-weight: 950 !important;
        line-height: 1 !important;
        box-shadow: 0 12px 26px rgba(0, 150, 105, 0.22) !important;
        cursor: pointer !important;
        flex: 0 0 40px !important;
    }

    .hx-mobile-user {
        min-width: 0 !important;
        max-width: calc(100% - 56px) !important;
        color: #071112 !important;
        font-size: 14px !important;
        font-weight: 950 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-align: left !important;
        direction: rtl !important;
    }

    .hx-unified-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(315px, 86vw) !important;
        max-width: 86vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        padding: 22px 16px 26px !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 1000 !important;
        transform: translateX(110%) !important;
        transition: transform 0.24s ease !important;
        will-change: transform !important;
        box-sizing: border-box !important;
    }

    body.hx-mobile-sidebar-open .hx-unified-sidebar {
        transform: translateX(0) !important;
    }

    .hx-mobile-sidebar-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(2, 8, 23, 0.46) !important;
        z-index: 990 !important;
        display: block !important;
    }

    .hx-mobile-sidebar-overlay[hidden] {
        display: none !important;
    }

    .hx-unified-brand {
        margin-bottom: 18px !important;
    }

    .hx-unified-user-card {
        margin-bottom: 16px !important;
        padding: 12px !important;
        border-radius: 18px !important;
    }

    .hx-unified-menu {
        gap: 8px !important;
    }

    .hx-unified-menu-item,
    .hx-unified-logout-btn {
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 15px !important;
        font-size: 13px !important;
        padding: 0 13px !important;
    }

    .hx-unified-topbar {
        display: none !important;
    }
}

/* =====================================================
   FINAL COACH DASHBOARD MOBILE FIX
===================================================== */

@media (max-width: 780px) {
    .coach-hero {
        width: 100% !important;
        min-height: auto !important;
        margin: 0 0 14px !important;
        padding: 18px !important;
        border-radius: 24px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .coach-hero h2 {
        font-size: 24px !important;
        line-height: 1.55 !important;
        margin: 8px 0 0 !important;
        text-align: right !important;
    }

    .coach-date {
        font-size: 11px !important;
        padding: 6px 10px !important;
        border-radius: 999px !important;
    }

    .hero-mini-card {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px !important;
        border-radius: 18px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-mini-card strong {
        font-size: 28px !important;
    }

    .stats-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin: 12px 0 16px !important;
    }

    .stat-card {
        min-width: 0 !important;
        min-height: 98px !important;
        padding: 14px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .stat-label {
        font-size: 11px !important;
        line-height: 1.7 !important;
    }

    .stat-value {
        font-size: 24px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    .stat-card .hx-next-class-counter {
        font-size: 16px !important;
        white-space: normal !important;
        line-height: 1.7 !important;
    }

    .stat-card .stat-note {
        font-size: 11px !important;
        line-height: 1.6 !important;
    }

    .hx-dashboard-message-alert {
        width: 100% !important;
        margin: 12px 0 !important;
        padding: 16px !important;
        border-radius: 20px !important;
        display: grid !important;
        grid-template-columns: 42px 1fr !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .hx-dashboard-message-alert a {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .hx-dashboard-message-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 15px !important;
        font-size: 20px !important;
    }

    .hx-dashboard-message-alert h3 {
        font-size: 16px !important;
    }

    .hx-dashboard-message-alert p {
        font-size: 12px !important;
        line-height: 1.8 !important;
    }

    .hx-coach-modern-program {
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px 0 !important;
        padding: 16px !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .hx-cmp-head {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 16px !important;
    }

    .hx-cmp-head h2 {
        font-size: 24px !important;
        line-height: 1.5 !important;
    }

    .hx-cmp-head p {
        font-size: 12px !important;
        line-height: 1.8 !important;
    }

    .hx-cmp-head-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .hx-cmp-emergency-btn {
        width: 100% !important;
        min-height: 42px !important;
        font-size: 12px !important;
        border-radius: 14px !important;
    }

    .hx-cmp-tabs {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 6px !important;
        border-radius: 16px !important;
    }

    .hx-cmp-tab {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        border-radius: 13px !important;
    }

    .hx-cmp-grid,
    .today-class-card-grid,
    .hx-today-program-list {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        justify-content: stretch !important;
    }

    .hx-cmp-card,
    .today-class-card,
    .hx-my-class-card,
    .hx-today-program-list .today-class-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: auto !important;
        padding: 16px !important;
        border-radius: 22px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hx-cmp-card h3,
    .today-class-card h4 {
        font-size: 20px !important;
        line-height: 1.55 !important;
        margin-bottom: 14px !important;
    }

    .hx-cmp-card-top,
    .today-class-card-top {
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .hx-cmp-icon,
    .today-class-icon {
        width: 48px !important;
        height: 48px !important;
        border-radius: 16px !important;
        font-size: 22px !important;
    }

    .hx-cmp-info-list,
    .today-class-info {
        gap: 8px !important;
    }

    .hx-cmp-info-item,
    .today-class-info div {
        min-height: 42px !important;
        padding: 9px 11px !important;
        border-radius: 14px !important;
        gap: 8px !important;
    }

    .hx-cmp-info-item span,
    .today-class-info span {
        font-size: 11px !important;
    }

    .hx-cmp-info-item strong,
    .today-class-info strong {
        font-size: 12px !important;
        word-break: break-word !important;
    }

    .today-lesson-box {
        min-height: auto !important;
        padding: 13px !important;
        border-radius: 16px !important;
    }

    .today-class-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .today-class-actions .mini-btn,
    .hx-cmp-actions .mini-btn,
    .hx-cmp-actions a {
        width: 100% !important;
        min-height: 42px !important;
        justify-content: center !important;
    }

    .hx-weekly-classes-section,
    .hx-today-program-glass {
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px 0 !important;
        padding: 16px !important;
        border-radius: 24px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .hx-timetable-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        border-radius: 18px !important;
    }


    .hx-tt-header,
    .hx-tt-row {
        min-width: 720px !important;
    }
}

.hx-menu-badge-wine,
.hx-unified-menu-item .hx-menu-badge-wine,
.hx-unified-menu-item.hx-sidebar-active .hx-menu-badge-wine,
.hx-sidebar-active .hx-menu-badge-wine {
    background: #7a1f3d !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(122, 31, 61, 0.34) !important;
}
/* Headcoach dashboard stats like coach dashboard */
.hx-headcoach-stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.hx-headcoach-stats-grid .stat-card {
    min-height: 112px !important;
}

.hx-headcoach-stats-grid .hx-next-class-counter {
    font-size: 18px !important;
    line-height: 1.7 !important;
    white-space: normal !important;
}

.hx-headcoach-stats-grid .stat-note {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .hx-headcoach-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 780px) {
    .hx-headcoach-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.hx-cmp-action-students {
    grid-column: 1 / -1;
    background: rgba(16, 185, 129, 0.10) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.24) !important;
}

.hx-class-student-manage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.hx-student-manage-page {
    padding: 28px;
}

.hx-student-manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 26px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.06);
}

.hx-student-manage-header span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #10b981;
    font-weight: 950;
}

.hx-student-manage-header h1 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 950;
}

.hx-student-manage-header p {
    margin: 8px 0 0;
    color: #64748b;
    font-weight: 700;
}

.hx-student-back-btn {
    padding: 12px 18px;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-weight: 900;
}

.hx-student-manage-help {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(236, 253, 245, 0.9);
    border: 1px dashed rgba(16, 185, 129, 0.35);
    color: #065f46;
    line-height: 2;
    font-weight: 800;
}

.hx-student-manage-list {
    display: grid;
    gap: 14px;
}

.hx-student-manage-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.hx-student-manage-row.is-free {
    cursor: pointer;
}

.hx-student-manage-row.is-free:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(236, 253, 245, 0.8);
}

.hx-student-manage-row.is-current {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.98));
    border-color: rgba(16, 185, 129, 0.35);
}

.hx-student-manage-row.is-busy {
    background: rgba(241, 245, 249, 0.86);
    border-color: rgba(148, 163, 184, 0.28);
    opacity: 0.9;
}

.hx-student-manage-row.is-pending {
    background: rgba(255, 251, 235, 0.92);
    border-color: rgba(245, 158, 11, 0.28);
}

.hx-student-manage-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-weight: 950;
}

.hx-student-manage-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hx-student-manage-info strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.hx-student-manage-info span {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.hx-student-manage-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #10b981;
}

.hx-student-inline-form,
.hx-student-move-form {
    margin: 0;
}

.hx-student-move-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hx-student-move-form input {
    height: 40px;
    width: 230px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    padding: 0 14px;
    outline: none;
    font-family: inherit;
    font-weight: 700;
}

.hx-student-move-form button,
.hx-student-remove-btn,
.hx-student-save-btn,
.hx-move-approve-btn,
.hx-move-reject-btn {
    border: none;
    font-family: inherit;
    cursor: pointer;
    font-weight: 950;
}

.hx-student-move-form button {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
}

.hx-student-remove-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
}

.hx-student-save-btn {
    width: 100%;
    margin-top: 20px;
    min-height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.25);
}

.hx-student-pending-badge {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-weight: 950;
    font-size: 12px;
}

.hx-student-empty {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-weight: 900;
    text-align: center;
}

.hx-move-request-list {
    display: grid;
    gap: 16px;
}

.hx-move-request-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.06);
}

.hx-move-request-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, 0.12);
    font-size: 24px;
}

.hx-move-request-content {
    flex: 1;
}

.hx-move-request-content h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.hx-move-request-content p {
    margin: 0;
    line-height: 2.1;
    color: #334155;
    font-weight: 750;
}

.hx-move-request-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
}

.hx-move-request-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hx-move-approve-btn {
    padding: 12px 18px;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
}

.hx-move-reject-btn {
    padding: 12px 18px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

@media (max-width: 768px) {
    .hx-student-manage-page {
        padding: 16px;
    }

    .hx-student-manage-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hx-student-back-btn {
        width: 100%;
        text-align: center;
    }

    .hx-student-manage-row {
        grid-template-columns: 44px 1fr;
    }

    .hx-student-manage-row input[type="checkbox"],
    .hx-student-inline-form,
    .hx-student-move-form,
    .hx-student-pending-badge {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hx-student-move-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hx-student-move-form input,
    .hx-student-move-form button {
        width: 100%;
    }

    .hx-move-request-card {
        flex-direction: column;
    }

    .hx-class-students-summary {
        gap: 12px;
    }

    .hx-class-student-manage-btn {
        width: 100%;
    }
}

/* جای درست دکمه افزودن / حذف در باکس لیست دانش‌آموزان */
.hx-class-students-summary {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    align-items: center !important;
    gap: 14px !important;
}

.hx-class-students-summary > div {
    justify-self: start !important;
}

.hx-class-student-manage-btn {
    justify-self: end !important;
    min-width: 180px !important;
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.hx-class-students-arrow {
    justify-self: end !important;
}

@media (max-width: 768px) {
    .hx-class-students-summary {
        grid-template-columns: 1fr !important;
    }

    .hx-class-student-manage-btn {
        width: 100% !important;
        justify-self: stretch !important;
    }
}

/* دکمه دانش‌آموزان کلاس در کارت کلاس */
.hx-cmp-action-students {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    margin-top: 8px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 16px !important;
    font-size: 13px !important;
    font-weight: 950 !important;

    background: rgba(16, 185, 129, 0.10) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.24) !important;
    box-shadow: none !important;
}

.hx-coach-modern-program .hx-cmp-tabs {
    flex-wrap: wrap !important;
}

.hx-coach-modern-program .hx-cmp-tab {
    min-width: 130px !important;
}

.hx-coach-weekly-panel {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
}

.hx-coach-calendar-panel {
    display: grid;
    gap: 22px;
}

.hx-coach-calendar-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hx-coach-calendar-summary-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 185, 129, 0.18);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
}

.hx-coach-calendar-summary-card span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
}

.hx-coach-calendar-summary-card strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.hx-coach-calendar-summary-card p {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    color: #047857;
    font-size: 12px;
    line-height: 1.9;
    font-weight: 850;
}

.hx-coach-calendar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.hx-coach-calendar-head span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 12px;
    font-weight: 950;
}

.hx-coach-calendar-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
}

.hx-coach-calendar-head p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.hx-coach-calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hx-coach-calendar-nav a,
.hx-coach-calendar-nav strong {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.hx-coach-calendar-nav a {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.hx-coach-calendar-nav strong {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.hx-coach-calendar {
    overflow-x: auto;
    border-radius: 26px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    background: rgba(255, 255, 255, 0.96);
}

.hx-coach-calendar-weekdays,
.hx-coach-calendar-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
}

.hx-coach-calendar-weekdays span {
    padding: 14px 10px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 950;
    border-left: 1px solid rgba(16, 185, 129, 0.12);
    background: rgba(248, 250, 252, 0.9);
}

.hx-coach-calendar-day {
    min-height: 170px;
    padding: 10px;
    border-top: 1px solid rgba(16, 185, 129, 0.10);
    border-left: 1px solid rgba(16, 185, 129, 0.10);
    background: #fff;
}

.hx-coach-calendar-day.is-muted {
    opacity: 0.45;
    background: #f8fafc;
}

.hx-coach-calendar-day.is-today {
    background: rgba(236, 253, 245, 0.85);
}

.hx-coach-calendar-day-number {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 950;
}

.hx-coach-calendar-day.is-today .hx-coach-calendar-day-number {
    background: #10b981;
    color: #fff;
}

.hx-coach-calendar-items {
    display: grid;
    gap: 7px;
}

.hx-coach-calendar-item {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(16, 185, 129, 0.16);
    background: rgba(236, 253, 245, 0.82);
}

.hx-coach-calendar-item strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
}

.hx-coach-calendar-item span {
    color: #047857;
    font-size: 11px;
    font-weight: 950;
}

.hx-coach-calendar-item small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.hx-coach-calendar-item em {
    color: #059669;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}

.hx-coach-calendar-item.is-cancelled {
    background: rgba(254, 242, 242, 0.95);
    border-color: rgba(248, 113, 113, 0.28);
}

.hx-coach-calendar-item.is-cancelled span,
.hx-coach-calendar-item.is-cancelled em {
    color: #b91c1c;
}

.hx-coach-calendar-item.is-held {
    background: rgba(239, 246, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.20);
}

.hx-coach-calendar-item.is-held span,
.hx-coach-calendar-item.is-held em {
    color: #2563eb;
}

@media (max-width: 992px) {
    .hx-coach-calendar-summary {
        grid-template-columns: 1fr;
    }

    .hx-coach-calendar-summary-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hx-coach-calendar-head {
        flex-direction: column;
    }

    .hx-coach-calendar-nav {
        width: 100%;
    }

    .hx-coach-calendar-nav a,
    .hx-coach-calendar-nav strong {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .hx-coach-modern-program .hx-cmp-tab {
        width: 100%;
    }

    .hx-coach-calendar-summary-card {
        grid-template-columns: 1fr;
    }
}
.hx-coach-calendar-tabs-section {
    margin-top: 28px !important;
}

.hx-coach-calendar-tabs-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

.hx-coach-calendar-tabs {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 22px !important;
    background: rgba(241, 245, 249, 0.9) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
}

.hx-coach-calendar-tabs button {
    border: none !important;
    height: 44px !important;
    padding: 0 22px !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: #64748b !important;
    font-family: inherit !important;
    font-weight: 950 !important;
    cursor: pointer !important;
}

.hx-coach-calendar-tabs button.active {
    background: #10b981 !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.26) !important;
}

.hx-coach-calendar-panel {
    display: none !important;
}

.hx-coach-calendar-panel.active {
    display: block !important;
}

@media (max-width: 768px) {
    .hx-coach-calendar-tabs-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hx-coach-calendar-tabs {
        width: 100% !important;
    }

    .hx-coach-calendar-tabs button {
        flex: 1 !important;
    }
}

.hx-class-report-row.hx-session-cancelled-row {
    position: relative !important;
    background: rgba(241, 245, 249, 0.78) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    filter: grayscale(0.45) !important;
    opacity: 0.72 !important;
}

.hx-class-report-row.hx-session-cancelled-row::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(248, 250, 252, 0.34);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    pointer-events: none;
}

.hx-class-report-row.hx-session-cancelled-row .hx-class-report-main,
.hx-class-report-row.hx-session-cancelled-row .hx-class-report-status {
    position: relative;
    z-index: 2;
}

.hx-session-cancelled-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
    font-size: 12px;
    font-weight: 950;
}

.hx-session-cancelled-row .hx-session-btn,
.hx-session-cancelled-row .hx-session-btn.is-disabled {
    background: rgba(226, 232, 240, 0.95) !important;
    color: #64748b !important;
    border-color: rgba(203, 213, 225, 0.95) !important;
    box-shadow: none !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
.hx-class-report-row.hx-session-cancelled-row {
    position: relative !important;
    background: rgba(241, 245, 249, 0.82) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    filter: grayscale(0.55) !important;
    opacity: 0.72 !important;
}

.hx-class-report-row.hx-session-cancelled-row::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(248, 250, 252, 0.35);
    backdrop-filter: blur(1.4px);
    -webkit-backdrop-filter: blur(1.4px);
    pointer-events: none;
}

.hx-class-report-row.hx-session-cancelled-row .hx-class-report-main,
.hx-class-report-row.hx-session-cancelled-row .hx-class-report-status {
    position: relative;
    z-index: 2;
}

.hx-session-cancelled-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
    font-size: 12px;
    font-weight: 950;
}

.hx-session-cancelled-row a,
.hx-session-cancelled-row button,
.hx-session-cancelled-row .hx-session-btn {
    background: rgba(226, 232, 240, 0.95) !important;
    color: #64748b !important;
    border-color: rgba(203, 213, 225, 0.95) !important;
    box-shadow: none !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
#hxCoachMonthPanel.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* کارت کلاس امروز وقتی تعطیلی غیرمترقبه ثبت شده */
.hx-cmp-card.hx-cmp-card-cancelled {
    position: relative !important;
}

.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-card-inner {
    position: relative !important;
    overflow: hidden !important;
    border-color: rgba(148, 163, 184, 0.34) !important;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.92)) !important;
    filter: grayscale(0.35) !important;
}

.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(226, 232, 240, 0.28);
    backdrop-filter: blur(1.2px);
    -webkit-backdrop-filter: blur(1.2px);
    pointer-events: none;
    z-index: 3;
}

.hx-cmp-card.hx-cmp-card-cancelled h3,
.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-card-top,
.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-info-list,
.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-note-box {
    position: relative !important;
    z-index: 4 !important;
    opacity: 0.78 !important;
}

.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-session {
    background: rgba(148, 163, 184, 0.18) !important;
    color: #475569 !important;
}

.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-icon {
    background: rgba(148, 163, 184, 0.22) !important;
    box-shadow: none !important;
}

.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-note-box {
    background: rgba(241, 245, 249, 0.75) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}

.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-note-box strong {
    color: #475569 !important;
}

.hx-cmp-actions-cancelled {
    position: relative !important;
    z-index: 10 !important;
    grid-template-columns: 1fr 2fr !important;
}

.hx-cmp-actions-cancelled .hx-cmp-details-action {
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
    background: #ffffff !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.28) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
}

.hx-cmp-cancelled-status {
    min-height: 44px;
    border-radius: 15px;
    background: rgba(100, 116, 139, 0.13);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    pointer-events: none;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .hx-cmp-actions-cancelled {
        grid-template-columns: 1fr !important;
    }

    .hx-cmp-actions-cancelled .hx-cmp-details-action,
    .hx-cmp-cancelled-status {
        width: 100% !important;
    }

    .hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-card-inner::after {
        backdrop-filter: blur(0.8px);
        -webkit-backdrop-filter: blur(0.8px);
    }
}

/* وضعیت تعطیل‌شده در کارت برنامه امروز مربی */
.hx-cmp-cancelled-status {
    min-height: 44px !important;
    border-radius: 15px !important;
    background: rgba(239, 68, 68, 0.12) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-cancelled-status {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border-color: rgba(220, 38, 38, 0.45) !important;
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.22) !important;
}

.hx-cmp-card.hx-cmp-card-cancelled .hx-cmp-details-action {
    background: #ffffff !important;
    color: #047857 !important;
}

.hx-admin-quick-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-top: 12px;
}

.hx-admin-action-btn--compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 10px 18px;
    border-radius: 16px;
    font-size: 15px;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* موبایل */
@media (max-width: 900px) {
    .hx-admin-quick-actions-row {
        flex-wrap: wrap;
    }

    .hx-admin-action-btn--compact {
        min-width: 160px;
    }
}

@media (max-width: 576px) {
    .hx-admin-quick-actions-row {
        gap: 10px;
    }

    .hx-admin-action-btn--compact {
        width: 100%;
        min-width: 0;
    }
}
.hx-absence-accordion {
    border: 1px solid #cfeee3;
    border-radius: 24px;
    background: #fff;
    margin-bottom: 18px;
    overflow: hidden;
}

.hx-absence-accordion__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    background: linear-gradient(90deg, #ffffff 0%, #f6fffb 100%);
}

.hx-absence-accordion__summary::-webkit-details-marker {
    display: none;
}

.hx-absence-accordion__summary-right,
.hx-absence-accordion__summary-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.hx-absence-accordion__summary-center {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.hx-absence-accordion__coach {
    font-size: 28px;
    font-weight: 800;
    color: #0d1b2a;
}

.hx-absence-accordion__class {
    font-size: 15px;
    color: #6b7a90;
    font-weight: 600;
}

.hx-absence-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.hx-absence-chip--date {
    background: #dff7ee;
    color: #17795e;
}

.hx-absence-chip--status {
    background: #eef6ff;
    color: #3b6ea8;
}

.hx-absence-accordion__toggle-text {
    font-size: 14px;
    color: #5b6980;
    font-weight: 700;
}

.hx-absence-accordion__arrow {
    font-size: 18px;
    color: #3d4c63;
    transition: transform 0.2s ease;
}

.hx-absence-accordion[open] .hx-absence-accordion__arrow {
    transform: rotate(180deg);
}

.hx-absence-accordion__body {
    padding: 0 20px 20px;
    border-top: 1px dashed #dcefe8;
}

/* موبایل */
@media (max-width: 768px) {
    .hx-absence-accordion__summary {
        flex-direction: column;
        align-items: stretch;
    }

    .hx-absence-accordion__summary-right,
    .hx-absence-accordion__summary-left {
        justify-content: space-between;
    }

    .hx-absence-accordion__coach {
        font-size: 22px;
    }

    .hx-absence-accordion__class {
        font-size: 14px;
    }
}
/* HX_MULTIROLE_FONT_HARDEN_V10 */
html, body, body *, button, input, select, textarea, option, a, label, table, th, td {
  font-family: 'Pelak', Tahoma, Arial, sans-serif !important;
}

/* HX_LIFEGUARD_SIDEBAR_CANONICAL_V15
   Canonical, single-source lifeguard sidebar theme.
   IMPORTANT: do not append additional lifeguard sidebar themes after this block. */
.hx-unified-layout.hx-role-lifeguard {
    --role-primary: #14b8a6 !important;
    --role-secondary: #0f766e !important;
    --role-dark-1: #06382f !important;
    --role-dark-2: #06483e !important;
    --role-soft: #ccfbf1 !important;
    --role-text: #0f766e !important;
    --role-glow: rgba(20, 184, 166, .28) !important;
    --hx-role-main: #14b8a6 !important;
    --hx-role-dark: #0f766e !important;
    --hx-role-soft: #ccfbf1 !important;
}

/* The sidebar itself must always be opaque and dark. */
.hx-unified-layout.hx-role-lifeguard .hx-unified-sidebar {
    position: fixed !important;
    isolation: isolate !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #06382f !important;
    background-image:
        radial-gradient(circle at 22% 5%, rgba(20,184,166,.34), transparent 34%),
        linear-gradient(180deg, #06382f 0%, #06483e 48%, #031d18 100%) !important;
    border-left: 1px solid rgba(94,234,212,.16) !important;
    box-shadow: -18px 0 46px rgba(3,29,24,.22) !important;
}

/* One pattern layer only. Old V13/V14 overlays are removed by installer. */
.hx-unified-layout.hx-role-lifeguard .hx-unified-sidebar::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: .20 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(255,255,255,.25) 25%, rgba(255,255,255,.25) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.25) 75%, rgba(255,255,255,.25) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255,255,255,.25) 25%, rgba(255,255,255,.25) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.25) 75%, rgba(255,255,255,.25) 76%, transparent 77%) !important;
    background-size: 86px 50px !important;
    animation: none !important;
}
.hx-unified-layout.hx-role-lifeguard .hx-unified-sidebar::after {
    content: none !important;
    display: none !important;
}

.hx-unified-layout.hx-role-lifeguard .hx-unified-sidebar > * {
    position: relative !important;
    z-index: 2 !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Brand */
.hx-unified-layout.hx-role-lifeguard .hx-unified-brand-title,
.hx-unified-layout.hx-role-lifeguard .hx-unified-sidebar strong {
    color: #ffffff !important;
    opacity: 1 !important;
}
.hx-unified-layout.hx-role-lifeguard .hx-unified-brand-subtitle,
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu-title,
.hx-unified-layout.hx-role-lifeguard .hx-unified-user-card span {
    color: rgba(255,255,255,.74) !important;
    opacity: 1 !important;
}

/* Profile card */
.hx-unified-layout.hx-role-lifeguard .hx-unified-user-card {
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    background: linear-gradient(135deg, rgba(20,184,166,.20), rgba(255,255,255,.07)) !important;
    border: 1px solid rgba(94,234,212,.22) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.13) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
.hx-unified-layout.hx-role-lifeguard .hx-unified-user-card:hover {
    background: linear-gradient(135deg, rgba(20,184,166,.27), rgba(255,255,255,.09)) !important;
    border-color: rgba(94,234,212,.38) !important;
}

/* Menu buttons: never transparent/white-washed. */
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu-item,
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu a.hx-unified-menu-item {
    color: rgba(255,255,255,.88) !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    background-color: rgba(255,255,255,.055) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu-item *,
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu a.hx-unified-menu-item * {
    color: inherit !important;
    opacity: 1 !important;
}
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu-item:hover,
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu-item.hx-sidebar-active,
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu a.hx-unified-menu-item:hover,
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu a.hx-unified-menu-item.hx-sidebar-active {
    color: #ffffff !important;
    opacity: 1 !important;
    background-color: rgba(20,184,166,.22) !important;
    background-image: linear-gradient(135deg, rgba(20,184,166,.24), rgba(15,118,110,.18)) !important;
    border-color: rgba(94,234,212,.52) !important;
    box-shadow: inset 4px 0 0 #2dd4bf, 0 12px 26px rgba(0,0,0,.13) !important;
}
.hx-unified-layout.hx-role-lifeguard .hx-unified-menu-item.hx-sidebar-active::before {
    background: #2dd4bf !important;
    opacity: 1 !important;
}

/* Role-switch controls: explicit dark turquoise, no inherited orange/white glass state. */
.hx-unified-layout.hx-role-lifeguard .hx-role-switch-top-btn,
.hx-unified-layout.hx-role-lifeguard a.hx-role-switch-menu-item,
body .hx-unified-layout.hx-role-lifeguard a.hx-role-switch-menu-item {
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    background-color: #0f766e !important;
    background-image: linear-gradient(135deg, #0f766e, #075f57) !important;
    border: 1px solid rgba(94,234,212,.34) !important;
    box-shadow: 0 12px 28px rgba(3,29,24,.20) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.hx-unified-layout.hx-role-lifeguard .hx-role-switch-top-btn *,
.hx-unified-layout.hx-role-lifeguard a.hx-role-switch-menu-item * {
    color: #ffffff !important;
    opacity: 1 !important;
}
.hx-unified-layout.hx-role-lifeguard .hx-role-switch-top-btn:hover,
.hx-unified-layout.hx-role-lifeguard a.hx-role-switch-menu-item:hover,
body .hx-unified-layout.hx-role-lifeguard a.hx-role-switch-menu-item:hover {
    color: #ffffff !important;
    background-color: #10978a !important;
    background-image: linear-gradient(135deg, #10978a, #08635b) !important;
    border-color: rgba(94,234,212,.62) !important;
    box-shadow: 0 16px 32px rgba(3,29,24,.25) !important;
}

/* Logout stays readable but visually separate. */
.hx-unified-layout.hx-role-lifeguard .hx-unified-logout-btn {
    color: #ffe8e8 !important;
    opacity: 1 !important;
    background: rgba(127,29,29,.22) !important;
    border-color: rgba(252,165,165,.16) !important;
}
.hx-unified-layout.hx-role-lifeguard .hx-unified-logout-btn:hover {
    color: #ffffff !important;
    background: rgba(185,28,28,.34) !important;
    border-color: rgba(252,165,165,.30) !important;
}

/* Mobile keeps the same role identity. */
.hx-unified-layout.hx-role-lifeguard .hx-mobile-header {
    background: #06382f !important;
    color: #ffffff !important;
    border-color: rgba(94,234,212,.20) !important;
}
