:root {
    --bg: #f4f1ea;
    --surface: #fffdfa;
    --surface-2: #f8f5ee;
    --ink: #1d2521;
    --muted: #6f766f;
    --line: #e4ded2;
    --brand: #0f766e;
    --brand-2: #164e63;
    --accent: #f59e0b;
    --green: #15803d;
    --yellow: #b45309;
    --red: #b91c1c;
    --shadow: 0 12px 28px rgba(48, 38, 24, 0.08);
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    font-family: Vazirmatn, system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 36%),
        linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

main {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 20px 0 52px;
}

.topbar {
    position: sticky;
    top: 10px;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    width: min(1120px, calc(100% - 28px));
    margin: 10px auto 0;
    padding: 10px 12px;
    border: 1px solid rgba(228, 222, 210, 0.92);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.brand-mark img {
    width: 76%;
    height: 76%;
    object-fit: contain;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 0.95rem; }
.brand small { color: var(--muted); font-size: 0.72rem; }

.topnav {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.topnav a,
.user-chip,
.secondary-button,
.ghost-button {
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.topnav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.topnav a:hover,
.topnav .nav-cta {
    color: #fff;
    border-color: transparent;
    background: var(--brand);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-chip {
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.28fr 0.72fr;
    align-items: center;
    gap: 0;
    min-height: min(90vh, 720px);
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(228, 222, 210, 0.95);
    border-radius: 30px;
    background:
        radial-gradient(circle at 75% 20%, rgba(15, 118, 110, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 253, 250, 0.98), rgba(244, 241, 234, 0.92));
    box-shadow: 0 30px 90px rgba(48, 38, 24, 0.13);
}

.premium-hero {
    position: relative;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    direction: ltr;
}

.hero-media {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 560px;
    margin: -34px 0 -34px -34px;
    border-radius: 30px 0 0 30px;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 253, 250, 0.2) 52%, rgba(255, 253, 250, 0.92) 100%),
        radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.32), transparent 28%);
    pointer-events: none;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: start;
    direction: rtl;
    padding: 28px 0 28px 22px;
}

.floating-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 28px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: rgba(255, 253, 250, 0.78);
    box-shadow: 0 20px 55px rgba(29, 37, 33, 0.12);
    backdrop-filter: blur(20px);
}

.floating-stats div {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 12px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
}

.floating-stats strong,
.floating-stats span {
    display: block;
}

.floating-stats strong {
    color: var(--brand);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.floating-stats span {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.7;
    text-align: center;
}

.trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(228, 222, 210, 0.78);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.72);
    box-shadow: 0 14px 30px rgba(29, 37, 33, 0.08);
    backdrop-filter: blur(14px);
}

.trust-strip::before,
.trust-strip::after {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 12px;
    font-size: 1rem;
}

.trust-strip::before {
    content: "盾";
    color: var(--brand);
    background: #e4f4f1;
}

.trust-strip::after {
    content: "قفل";
    color: #b45309;
    background: #fff7ed;
}

.trust-strip span,
.trust-strip small {
    display: block;
}

.trust-strip span {
    color: var(--brand);
    font-weight: 900;
}

.trust-strip small {
    color: var(--muted);
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 900;
    background: #e4f4f1;
}

.landing-hero h1,
.auth-info h1,
.page-head h1 {
    margin: 14px 0 8px;
    line-height: 1.28;
}

.landing-hero h1 {
    max-width: 760px;
    font-size: clamp(2.15rem, 4.5vw, 3.6rem);
    letter-spacing: -1px;
}

.landing-hero p,
.auth-info p,
.page-head p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.primary-button,
.secondary-button,
.ghost-button,
.table-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 900;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.secondary-button,
.ghost-button { color: var(--ink); }
.full { width: 100%; }

.feature-grid,
.stats-grid,
.two-column,
.detail-layout {
    display: grid;
    gap: 14px;
}

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }

.feature-card,
.content-card,
.auth-card,
.credit-panel,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.feature-card,
.content-card,
.auth-card,
.credit-panel { padding: 20px; }
.stat-card { padding: 16px; }

.feature-card span,
.credit-panel h2,
.section-title a,
.form-foot a,
.table-link {
    color: var(--brand);
    font-weight: 900;
}

.feature-card h2,
.section-title h2 {
    margin: 8px 0;
    font-size: 1.08rem;
}

.feature-card p,
.credit-panel p,
.form-foot,
.compact-list span,
.compact-list small {
    color: var(--muted);
    line-height: 1.75;
}

.credit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.credit-panel span { color: var(--muted); }
.credit-panel h2 { margin: 3px 0 0; }

.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: 58px;
    min-height: calc(100vh - 86px);
    direction: ltr;
}

.auth-visual,
.auth-form-side {
    direction: rtl;
}

body.auth-mode {
    background: #06272f;
}

body.auth-mode > .topbar {
    display: none;
}

body.auth-mode main {
    width: min(1180px, calc(100% - 32px));
    padding-top: 18px;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    min-height: min(78vh, 720px);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(8, 35, 43, 0.2);
    background: #082f35;
}

.auth-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 31, 39, 0.46) 0%, rgba(5, 31, 39, 0.74) 48%, rgba(4, 26, 31, 0.9) 100%),
        radial-gradient(circle at 80% 80%, rgba(15, 118, 110, 0.38), transparent 32%);
}

.auth-visual-overlay {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: space-between;
    min-height: inherit;
    padding: 34px;
    color: #fff;
}

.auth-mini-brand {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
    color: #71e4d8;
    font-size: 0.86rem;
    font-weight: 900;
    text-align: center;
}

.auth-mini-brand img {
    width: 64px;
    height: 72px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.auth-visual h1 {
    max-width: 540px;
    margin: 24px 0 8px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.25;
}

.auth-visual h1::first-letter {
    color: #34d3c4;
}

.auth-visual p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    max-width: 390px;
    margin-top: 34px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(8, 47, 53, 0.42);
    backdrop-filter: blur(14px);
}

.auth-benefits span {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 4px 12px;
    align-items: center;
}

.auth-benefits b {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #5eead4;
    background: rgba(20, 184, 166, 0.18);
}

.auth-benefits strong,
.auth-benefits small {
    display: block;
}

.auth-benefits small {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.auth-visual-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 34px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(8, 47, 53, 0.5);
    backdrop-filter: blur(16px);
}

.auth-visual-stats div {
    display: grid;
    justify-items: center;
    gap: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-visual-stats div:first-child {
    border-left: 0;
}

.auth-visual-stats strong {
    color: #fff;
    font-size: 1.5rem;
}

.auth-visual-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.auth-form-side {
    position: relative;
    display: grid;
    justify-items: center;
}

.auth-card {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(100%, 420px);
    padding: 34px;
    border: 1px solid rgba(228, 222, 210, 0.82);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 30px 90px rgba(8, 35, 43, 0.1);
    backdrop-filter: blur(16px);
}

.auth-logo {
    width: 86px;
    height: 86px;
    margin: 0 auto 4px;
    border-radius: 0;
    object-fit: contain;
}

.auth-card h2 {
    margin: 0;
    text-align: center;
    font-size: 1.65rem;
}

.auth-card > p {
    margin: 0 0 8px;
    color: var(--muted);
    text-align: center;
}

.auth-card.wide { max-width: 680px; }

.info-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.info-list span {
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 14px;
    color: #0f766e;
    background: #e7f5f2;
    font-weight: 900;
}

.auth-home-link::before {
    content: "⌂";
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #fff;
    background: #0f766e;
}

.auth-home-link:hover {
    color: #0b5f59;
    background: #d8f0ec;
}

label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface-2);
}

textarea {
    resize: vertical;
    line-height: 1.75;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.11);
}

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

.page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.page-head h1 { font-size: clamp(1.45rem, 3vw, 2.3rem); }

.stat-card strong {
    display: block;
    color: var(--brand);
    font-size: 1.55rem;
}

.stat-card span { color: var(--muted); }

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

.toolbar,
.filter-bar {
    display: grid;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.toolbar {
    grid-template-columns: 1.4fr 1.4fr auto auto;
}

.toolbar strong,
.toolbar span {
    display: block;
}

.toolbar span {
    color: var(--muted);
    font-size: 0.82rem;
}

.filter-bar {
    grid-template-columns: 1fr 1fr 1.25fr auto;
}

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

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

.data-table th,
.data-table td {
    padding: 10px 11px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 0.78rem;
    background: #f1ece2;
}

.data-table th:first-child { border-radius: 12px 0 0 12px; }
.data-table th:last-child { border-radius: 0 12px 12px 0; }
.data-table tr:hover td { background: #fff8ed; }

.empty-row {
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

.status-badge,
.track-code {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.track-code {
    color: var(--brand-2);
    background: #e7f5f2;
}

.status-pending { color: var(--yellow); background: #fff7ed; }
.status-reviewing { color: var(--brand-2); background: #e6f6fb; }
.status-resolved { color: var(--green); background: #ecfdf5; }
.status-rejected { color: var(--red); background: #fef2f2; }

.upload-box {
    padding: 18px;
    border: 1.5px dashed #b7aa93;
    border-radius: 16px;
    text-align: center;
    background: #fbf7ef;
}

.upload-box input { display: none; }
.upload-box span,
.upload-box em {
    color: var(--muted);
    font-style: normal;
}

.selected-files {
    display: grid;
    gap: 8px;
}

.selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff8ed;
}

.selected-file span {
    color: var(--muted);
    direction: ltr;
}

.rich-text {
    color: #35413a;
    line-height: 1.9;
}

.privacy-strip,
.note-box {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 14px;
    background: #e7f5f2;
    color: var(--brand-2);
    font-weight: 850;
}

.note-box { margin-top: 14px; color: var(--ink); }

.side-info,
.info-dl,
.stack-form,
.file-list,
.compact-list {
    display: grid;
    gap: 10px;
}

.info-dl,
.side-info dl { margin: 0; }

.info-dl div,
.side-info dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: var(--surface-2);
}

dt { color: var(--muted); }
dd { margin: 0; font-weight: 900; }

.file-list a,
.compact-list a,
.compact-list > span {
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.compact-list a,
.compact-list > span {
    display: grid;
    gap: 2px;
}

.editable-table input { min-width: 108px; }

.inline-form {
    display: flex;
    gap: 7px;
}

.table-button {
    min-height: 34px;
    padding: 7px 10px;
    color: #fff;
    background: var(--brand);
}

.table-button.muted { background: #78716c; }

.toast-stack {
    position: fixed;
    z-index: 30;
    top: 78px;
    left: 16px;
    display: grid;
    gap: 8px;
    width: min(340px, calc(100% - 32px));
}

.toast {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.toast.success { border-color: #bbf7d0; }
.toast.error { border-color: #fecaca; }

body.admin-mode {
    background: #f5faf9;
}

body.admin-mode > .topbar {
    display: none;
}

body.admin-mode main {
    width: 100%;
    padding: 0;
}

body.student-mode {
    background: #f6fbfb;
}

body.student-mode > .topbar {
    display: none;
}

body.student-mode main {
    width: 100%;
    padding: 0;
}

.student-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
    direction: rtl;
    background:
        radial-gradient(circle at 55% 20%, rgba(20, 184, 166, 0.09), transparent 30%),
        #f6fbfb;
}

.student-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    margin: 14px;
    padding: 22px 16px;
    border-radius: 22px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(0, 100, 93, 0.97), rgba(2, 68, 75, 0.98)),
        #075e61;
    box-shadow: 0 24px 70px rgba(7, 94, 97, 0.22);
}

.student-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.student-logo img {
    width: 54px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.22));
}

.student-logo strong,
.student-logo small {
    display: block;
}

.student-logo strong {
    color: #fff;
    font-size: 0.92rem;
}

.student-logo small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
}

.student-nav {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 8px;
}

.student-nav a,
.student-sidebar-logout button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.84);
    background: transparent;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.student-nav a span,
.student-sidebar-logout span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
}

.student-nav a.active,
.student-nav a:hover,
.student-sidebar-logout button:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.95), rgba(15, 118, 110, 0.95));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.student-sidebar-logout {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.student-sidebar-logout button {
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.student-sidebar-logout button span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.student-sidebar-photo {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 250px;
    overflow: hidden;
    border-radius: 36px 36px 22px 22px;
}

.student-sidebar-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 68, 75, 0.05), rgba(2, 68, 75, 0.42));
}

.student-sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-main {
    min-width: 0;
    padding: 14px 24px 34px;
}

.student-topbar {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    align-items: center;
    gap: 18px;
    min-height: 70px;
    margin: 0 -24px 28px;
    padding: 0 24px;
    border-bottom: 1px solid #e6f0ef;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
}

.student-mobile-brand,
.student-notify {
    display: none;
}

.student-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e3eeee;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(21, 70, 68, 0.05);
}

.student-search input {
    border: 0;
    min-height: 32px;
    padding: 4px;
    background: transparent;
}

.student-search button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.student-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.student-panel-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: #0f766e;
    background: #e5fbf6;
    font-size: 0.78rem;
    font-weight: 900;
}

.student-profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.student-profile-chip strong,
.student-profile-chip small {
    display: block;
}

.student-profile-chip small {
    color: var(--muted);
}

.student-profile-chip b {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: #075e61;
}

.student-profile-chip b img {
    width: 28px;
    height: 32px;
    object-fit: contain;
}

.student-welcome {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.student-welcome.compact {
    align-items: center;
}

.student-welcome h1 {
    margin: 12px 0 8px;
    color: #172b2b;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.35;
}

.student-welcome p {
    margin: 0;
    color: var(--muted);
}

.student-primary-action,
.student-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.student-primary-action {
    color: #fff;
    background: linear-gradient(135deg, #0f9f95, #0f766e);
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.2);
}

.student-secondary-action {
    color: #0f766e;
    background: #fff;
    border: 1px solid #dcebea;
}

.student-privacy-card {
    position: relative;
    display: grid;
    gap: 5px;
    margin-bottom: 22px;
    padding: 18px 64px 18px 18px;
    border: 1px solid #d8eeeb;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 40px rgba(21, 70, 68, 0.06);
}

.student-privacy-card span {
    color: #183b3a;
    font-weight: 950;
}

.student-privacy-card p {
    margin: 0;
    color: var(--muted);
}

.student-privacy-card b {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: #fff;
    background: #0f766e;
}

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

.student-stat-card,
.student-panel-card {
    border: 1px solid #e6f0ef;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 45px rgba(21, 70, 68, 0.07);
}

.student-stat-card {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
}

.student-stat-card span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #fff;
}

.student-stat-card strong {
    color: #172b2b;
    font-size: 1.9rem;
}

.student-stat-card small {
    color: var(--muted);
    font-weight: 850;
}

.student-stat-card.purple span { background: #8b5cf6; }
.student-stat-card.blue span { background: #3b82f6; }
.student-stat-card.amber span { background: #f59e0b; }
.student-stat-card.green span { background: #22c55e; }

.student-panel-card {
    padding: 18px;
}

.student-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.student-section-title h2 {
    margin: 0;
    font-size: 1.08rem;
}

.student-section-title a,
.student-search-result {
    color: #0f766e;
    font-size: 0.84rem;
    font-weight: 900;
}

.student-search-result {
    margin: -4px 0 14px;
}

.student-table th {
    background: #f4fbfa;
}

.student-table tr:hover td {
    background: #f7fdfb;
}

.student-report-cards {
    display: none;
}

.student-report-card {
    position: relative;
    display: grid;
    gap: 9px;
    padding: 18px 18px 18px 42px;
    border: 1px solid #e6f0ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(21, 70, 68, 0.06);
}

.student-report-card strong {
    color: #172b2b;
    font-size: 0.96rem;
}

.student-report-card em {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    color: #0f766e;
    background: #e5fbf6;
    font-style: normal;
    font-weight: 950;
    font-size: 0.76rem;
    direction: ltr;
}

.student-report-card small,
.student-report-card time {
    color: var(--muted);
    font-size: 0.76rem;
}

.student-report-card b {
    position: absolute;
    left: 18px;
    bottom: 22px;
    color: #64748b;
    font-size: 1.4rem;
}

.student-detail-layout {
    align-items: start;
}

.student-detail-stack {
    display: grid;
    gap: 14px;
}

.student-detail-alert {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 20px;
    color: #0f766e;
    background: #e8fbf7;
    text-align: center;
}

.student-detail-alert strong {
    font-size: 0.96rem;
}

.student-detail-alert span {
    color: #23615c;
    font-size: 0.8rem;
    line-height: 1.75;
}

.student-info-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.student-info-card dl div {
    display: grid;
    gap: 4px;
    padding: 9px 0;
    border-bottom: 1px solid #eef3f3;
    background: transparent;
}

.student-info-card dl div:last-child {
    border-bottom: 0;
}

.student-info-card dt {
    font-size: 0.78rem;
}

.student-info-card dd {
    color: #172b2b;
}

.student-file-item {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #eef3f3;
    border-radius: 14px;
    background: #fbfefd;
}

.student-file-item span {
    color: #172b2b;
    font-weight: 850;
}

.student-file-item small {
    color: var(--muted);
    direction: ltr;
    text-align: right;
}

.student-bottom-nav {
    display: none;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
    direction: rtl;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    padding: 24px 18px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(4, 80, 76, 0.96), rgba(3, 55, 66, 0.98)),
        var(--brand-2);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.admin-logo img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    padding: 6px;
}

.admin-logo strong,
.admin-logo small {
    display: block;
}

.admin-logo strong {
    font-size: 0.94rem;
}

.admin-logo small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 850;
}

.admin-nav a span {
    width: 24px;
    text-align: center;
}

.admin-nav a.active,
.admin-nav a:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.92), rgba(15, 118, 110, 0.92));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.admin-sidebar-photo {
    position: absolute;
    right: -30px;
    bottom: -28px;
    width: 310px;
    height: 235px;
    overflow: hidden;
    border-radius: 55% 45% 0 0;
    opacity: 0.9;
}

.admin-sidebar-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(3, 55, 66, 0.55));
}

.admin-sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-main {
    min-width: 0;
    padding: 18px 24px 34px;
}

.admin-topbar {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e5eeec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 64, 61, 0.05);
}

.admin-search span {
    color: #94a3b8;
    font-size: 0.78rem;
}

.admin-search input {
    border: 0;
    padding: 5px;
    background: transparent;
}

.admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-grid-button,
.admin-soft-button {
    border: 0;
    cursor: pointer;
}

.admin-profile {
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.admin-profile strong,
.admin-profile small {
    display: block;
}

.admin-profile small {
    color: var(--muted);
}

.admin-profile img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
}

.admin-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0a5f59);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.18);
    font-weight: 900;
    cursor: pointer;
}

.admin-logout span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.admin-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.24);
}

.admin-welcome,
.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.admin-welcome h1,
.admin-page-head h1 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.admin-welcome p,
.admin-page-head p {
    margin: 0;
    color: var(--muted);
}

.admin-grid-button {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #fff;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.24);
}

.admin-soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 64, 61, 0.05);
}

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.admin-kpi {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    padding: 18px;
    border: 1px solid #e5eeec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23, 64, 61, 0.06);
}

.admin-kpi .kpi-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
}

.admin-kpi.blue .kpi-icon { background: #3b82f6; }
.admin-kpi.green .kpi-icon { background: #22c55e; }
.admin-kpi.amber .kpi-icon { background: #f59e0b; }
.admin-kpi.teal .kpi-icon { background: #10b981; }

.admin-kpi small,
.admin-kpi strong {
    display: block;
}

.admin-kpi small {
    color: var(--muted);
}

.admin-kpi strong {
    margin-top: 4px;
    font-size: 1.55rem;
}

.admin-kpi.blue { color: #3b82f6; }
.admin-kpi.green { color: #22c55e; }
.admin-kpi.amber { color: #f59e0b; }
.admin-kpi.teal { color: #10b981; }

.admin-bottom-grid {
    display: grid;
    gap: 16px;
}

.admin-bottom-grid {
    grid-template-columns: 1.08fr 0.92fr;
}

.admin-panel {
    padding: 18px;
    border: 1px solid #e5eeec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23, 64, 61, 0.06);
}

.admin-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-panel-title h2 {
    margin: 0;
    font-size: 1.05rem;
}

.admin-panel-title span,
.admin-panel-title a {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-table-list,
.student-mini-list {
    display: grid;
    gap: 8px;
}

.admin-table-list a {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf4f2;
}

.admin-table-list small,
.student-mini-list small {
    color: var(--muted);
}

.admin-table-list b {
    padding: 5px 9px;
    border-radius: 999px;
    color: #0f766e;
    background: #e7f5f2;
    font-size: 0.75rem;
}

.student-mini-list span {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf4f2;
}

.student-mini-list img {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f4f8f7;
    padding: 5px;
}

@media (max-width: 920px) {
    main,
    .topbar {
        width: min(100% - 20px, 720px);
    }

    .topbar {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .topnav {
        justify-content: start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .topbar-actions { justify-content: space-between; }

    .landing-hero,
    .auth-page,
    .feature-grid,
    .stats-grid,
    .two-column,
    .detail-layout,
    .filter-bar,
    .toolbar,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        min-height: auto;
        padding: 18px;
    }

    .hero-media {
        order: -1;
        min-height: 320px;
        margin: -18px -18px 18px;
        border-radius: 24px 24px 0 0;
    }

    .hero-media img {
        min-height: 320px;
    }

    .hero-media::after {
        background: linear-gradient(180deg, transparent 0%, rgba(255, 253, 250, 0.86) 100%);
    }

    .hero-content {
        padding: 0;
    }

    .floating-stats {
        width: calc(100% - 20px);
        margin: 22px auto 0;
    }

    .page-head,
    .credit-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .table-wrap { overflow: visible; }

    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .data-table thead { display: none; }

    .data-table tr {
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--surface);
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        border-bottom: 1px solid #eee6da;
    }

    .data-table td:last-child { border-bottom: 0; }

    .data-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 900;
    }

    .inline-form { width: 100%; }

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

    .admin-sidebar {
        position: relative;
        height: auto;
        padding: 16px;
    }

    .admin-sidebar-photo {
        display: none;
    }

    .admin-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .admin-nav a {
        white-space: nowrap;
    }

    .admin-main {
        padding: 14px;
    }

    .admin-topbar,
    .admin-kpis,
    .admin-bottom-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-welcome,
    .admin-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-table-list a,
    .student-mini-list span {
        grid-template-columns: 1fr;
    }

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

    .student-sidebar {
        display: none;
    }

    .student-main {
        padding: 14px 14px 96px;
    }

    .student-topbar {
        grid-template-columns: 36px 1fr 36px;
        margin: -12px -12px 16px;
        padding: 12px;
        border-bottom: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .student-notify,
    .student-mobile-brand {
        display: grid;
    }

    .student-notify {
        position: relative;
        place-items: center;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 12px;
        color: #0f766e;
        background: #fff;
        box-shadow: 0 12px 28px rgba(21, 70, 68, 0.08);
    }

    .student-notify::before {
        content: "♧";
        font-size: 1rem;
    }

    .student-mobile-brand {
        justify-items: center;
        text-align: center;
    }

    .student-mobile-brand strong,
    .student-mobile-brand small {
        display: block;
    }

    .student-mobile-brand strong {
        color: #172b2b;
        font-size: 0.86rem;
        font-weight: 950;
    }

    .student-mobile-brand small {
        color: var(--muted);
        font-size: 0.62rem;
    }

    .student-search {
        order: 2;
        grid-column: 1 / -1;
    }

    .student-top-actions {
        display: contents;
    }

    .student-profile-chip {
        justify-content: flex-end;
    }

    .student-profile-chip b {
        border-radius: 14px;
        background: #e5fbf6;
        color: #0f766e;
    }

    .student-welcome,
    .student-welcome.compact {
        align-items: stretch;
        flex-direction: column;
    }

    .student-primary-action,
    .student-secondary-action {
        width: 100%;
    }

    .student-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .student-bottom-nav {
        position: fixed;
        z-index: 60;
        right: 14px;
        bottom: 10px;
        left: 14px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 7px;
        border: 1px solid rgba(220, 235, 234, 0.9);
        border-radius: 19px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 20px 55px rgba(21, 70, 68, 0.16);
        backdrop-filter: blur(18px);
    }

    .student-bottom-nav a,
    .student-bottom-nav button {
        display: grid;
        justify-items: center;
        gap: 3px;
        width: 100%;
        padding: 6px 3px;
        border: 0;
        border-radius: 13px;
        color: var(--muted);
        background: transparent;
        font: inherit;
        font-size: 0.66rem;
        font-weight: 900;
        cursor: pointer;
    }

    .student-bottom-nav form {
        margin: 0;
    }

    .student-bottom-nav span {
        font-size: 0.98rem;
        line-height: 1;
    }

    .student-bottom-nav a.active {
        color: #0f766e;
        background: #e5fbf6;
    }

    .student-bottom-nav .center-action {
        position: relative;
        margin-top: -22px;
        color: #fff;
        background: transparent;
    }

    .student-bottom-nav .center-action span {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border-radius: 999px;
        background: linear-gradient(135deg, #0f9f95, #0f766e);
        box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28);
        font-size: 1.5rem;
    }

    .student-bottom-nav .center-action small {
        display: none;
    }

    .auth-page {
        gap: 18px;
        min-height: auto;
    }

    .auth-visual {
        min-height: 420px;
    }

    .auth-visual-overlay {
        padding: 24px;
    }

    .auth-card {
        width: 100%;
    }
}

@media (max-width: 560px) {
    body {
        background:
            radial-gradient(circle at 50% 5%, rgba(15, 118, 110, 0.12), transparent 35%),
            #fbf8f0;
    }

    main {
        width: min(100% - 12px, 520px);
        padding-top: 8px;
    }

    .topbar {
        position: fixed;
        top: 16px;
        left: 16px;
        right: 16px;
        z-index: 50;
        width: auto;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: space-between;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        pointer-events: none;
    }

    .brand {
        order: 2;
        pointer-events: auto;
    }

    .brand > span:not(.brand-mark),
    .topnav,
    .topbar-actions {
        display: none;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        background: rgba(255, 253, 250, 0.86);
        box-shadow: 0 16px 32px rgba(29, 37, 33, 0.14);
        backdrop-filter: blur(14px);
    }

    .topbar::before {
        content: "☰";
        display: grid;
        place-items: center;
        width: 50px;
        height: 50px;
        border-radius: 16px;
        color: var(--ink);
        font-size: 1.3rem;
        background: rgba(255, 253, 250, 0.86);
        box-shadow: 0 16px 32px rgba(29, 37, 33, 0.14);
        backdrop-filter: blur(14px);
        pointer-events: auto;
    }

    .landing-hero {
        min-height: auto;
        padding: 0 0 22px;
        border-radius: 34px;
        border: 0;
        background:
            linear-gradient(180deg, rgba(255, 253, 250, 0) 0%, #fffaf2 43%, #fffaf2 100%);
        box-shadow: 0 18px 50px rgba(48, 38, 24, 0.12);
    }

    .auth-page {
        min-height: 100vh;
        gap: 0;
        margin: -8px -6px 0;
        background: #06272f;
    }

    .auth-visual {
        min-height: 575px;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-visual > img {
        object-position: center top;
    }

    .auth-visual::after {
        background:
            linear-gradient(180deg, rgba(5, 31, 39, 0.2) 0%, rgba(5, 31, 39, 0.58) 34%, rgba(4, 26, 31, 0.92) 100%),
            radial-gradient(circle at 24% 78%, rgba(20, 184, 166, 0.42), transparent 30%);
    }

    .auth-visual-overlay {
        align-content: start;
        min-height: 575px;
        padding: 58px 22px 0;
    }

    .auth-visual h1 {
        width: 72%;
        margin: 42px 0 8px;
        font-size: clamp(2rem, 10vw, 3.1rem);
        text-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    }

    .auth-visual p {
        margin: 0 0 18px;
        font-size: 0.95rem;
    }

    .auth-benefits {
        display: grid;
        width: min(78%, 320px);
        gap: 9px;
        margin-top: 18px;
        padding: 0;
        border: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .auth-benefits span {
        grid-template-columns: 40px 1fr;
        min-height: 62px;
        padding: 9px;
        border-radius: 16px;
        background: rgba(8, 47, 53, 0.52);
        backdrop-filter: blur(14px);
    }

    .auth-benefits b {
        width: 36px;
        height: 36px;
    }

    .auth-benefits strong {
        font-size: 0.82rem;
    }

    .auth-benefits small {
        font-size: 0.7rem;
        line-height: 1.7;
    }

    .auth-visual-stats {
        position: absolute;
        right: 20px;
        left: 20px;
        bottom: 24px;
        z-index: 2;
        padding: 14px 8px;
        border-radius: 20px;
        background: rgba(13, 33, 39, 0.72);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    }

    .auth-visual-stats strong {
        font-size: 1.35rem;
    }

    .auth-visual-stats span {
        font-size: 0.68rem;
        line-height: 1.6;
    }

    .auth-form-side {
        margin-top: -34px;
        z-index: 2;
        padding: 0 10px 14px;
        background: #f8fafc;
        border-radius: 24px 24px 0 0;
    }

    .auth-card {
        width: 100%;
        padding: 32px 20px 20px;
        border: 0;
        border-radius: 24px 24px 18px 18px;
        background: #f8fafc;
        box-shadow: none;
        backdrop-filter: none;
    }

    .auth-card::before {
        content: "";
        position: absolute;
        top: 12px;
        right: 50%;
        width: 54px;
        height: 5px;
        border-radius: 999px;
        background: #d1d5db;
        transform: translateX(50%);
    }

    .auth-logo {
        display: none;
    }

    .auth-card h2 {
        font-size: 1.35rem;
    }

    .auth-card label {
        font-size: 0.82rem;
    }

    .auth-card input {
        min-height: 56px;
        border-radius: 14px;
        background: #fff;
    }

    body.student-mode {
        background: #f7fbfb;
    }

    .student-main {
        padding: 10px 10px 84px;
    }

    .student-topbar {
        min-height: 48px;
        margin-bottom: 14px;
    }

    .student-search {
        display: none;
    }

    .student-panel-badge {
        padding: 5px 9px;
        font-size: 0.7rem;
    }

    .student-profile-chip span {
        display: none;
    }

    .student-profile-chip b {
        width: 34px;
        height: 34px;
    }

    .student-welcome {
        margin-bottom: 12px;
        text-align: right;
    }

    .student-welcome h1 {
        margin: 8px 0 5px;
        font-size: clamp(1.25rem, 6.5vw, 1.72rem);
    }

    .student-welcome p {
        font-size: 0.78rem;
        line-height: 1.8;
    }

    .student-privacy-card {
        padding: 13px 50px 13px 12px;
        border-radius: 16px;
    }

    .student-privacy-card span {
        font-size: 0.82rem;
    }

    .student-privacy-card p {
        font-size: 0.72rem;
        line-height: 1.7;
    }

    .student-stats-grid {
        margin-bottom: 12px;
    }

    .student-stat-card {
        min-height: 98px;
        padding: 12px;
        border-radius: 15px;
    }

    .student-stat-card strong {
        font-size: 1.34rem;
    }

    .student-stat-card small {
        font-size: 0.7rem;
    }

    .student-panel-card {
        padding: 12px;
        border-radius: 16px;
    }

    .student-reports-panel > .table-wrap {
        display: none;
    }

    .student-report-cards {
        display: grid;
        gap: 11px;
    }

    .student-report-card {
        min-height: 118px;
        padding: 14px 14px 14px 36px;
        border-radius: 16px;
    }

    .student-section-title h2 {
        font-size: 0.9rem;
    }

    .student-welcome.compact .student-secondary-action {
        display: none;
    }

    .student-welcome.compact .student-primary-action {
        min-height: 42px;
        border-radius: 13px;
    }

    .student-panel-card.form-panel {
        border: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .student-panel-card.form-panel form {
        display: grid;
        gap: 12px;
    }

    .student-panel-card.form-panel label {
        gap: 7px;
        color: #172b2b;
        font-size: 0.8rem;
    }

    .student-panel-card.form-panel input,
    .student-panel-card.form-panel select,
    .student-panel-card.form-panel textarea {
        min-height: 48px;
        border: 1px solid #e6eeee;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(21, 70, 68, 0.04);
    }

    .student-panel-card.form-panel textarea {
        min-height: 126px;
    }

    .student-panel-card.form-panel .form-grid {
        gap: 12px;
    }

    .student-panel-card.form-panel .upload-box {
        border-style: solid;
        border-color: #dfe9e8;
        background: #fff;
        min-height: 112px;
        justify-content: center;
        box-shadow: 0 10px 24px rgba(21, 70, 68, 0.04);
    }

    .student-panel-card.form-panel .form-actions {
        display: grid;
        gap: 9px;
    }

    .student-panel-card.form-panel .form-actions .primary-button,
    .student-panel-card.form-panel .form-actions .secondary-button {
        width: 100%;
        min-height: 43px;
        border-radius: 13px;
    }

    .student-detail-layout {
        display: block;
    }

    .student-detail-alert {
        border-radius: 16px;
        padding: 15px 14px;
    }

    .student-info-card dl div {
        text-align: center;
    }

    .student-info-card dd {
        font-size: 0.86rem;
    }

    .student-detail-stack .student-panel-card {
        background: #fff;
    }

    .hero-media {
        min-height: 370px;
        margin: 0;
        border-radius: 34px 34px 0 0;
    }

    .hero-media::after {
        background:
            linear-gradient(180deg, rgba(255, 253, 250, 0) 50%, rgba(255, 253, 250, 0.96) 100%);
    }

    .hero-media img {
        min-height: 370px;
        object-position: center top;
    }

    .hero-media::before {
        content: "";
        position: absolute;
        z-index: 2;
        right: -8%;
        bottom: -1px;
        width: 116%;
        height: 86px;
        background: #fffaf2;
        border-radius: 58% 42% 0 0 / 100% 100% 0 0;
        pointer-events: none;
    }

    .hero-content {
        justify-items: center;
        text-align: center;
        padding: 4px 24px 0;
    }

    .hero-badge {
        margin-top: -8px;
        padding: 8px 13px;
        background: rgba(255, 253, 250, 0.88);
        box-shadow: 0 10px 24px rgba(29, 37, 33, 0.08);
    }

    .landing-hero h1 {
        max-width: 360px;
        margin-top: 18px;
        font-size: clamp(2.05rem, 9vw, 3rem);
        line-height: 1.42;
        color: #144b4a;
    }

    .landing-hero p {
        max-width: 340px;
        font-size: 0.92rem;
        line-height: 2;
    }

    .hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .hero-actions .primary-button,
    .hero-actions .secondary-button {
        width: 100%;
        min-height: 50px;
        border-radius: 15px;
    }

    .floating-stats {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        margin-top: 20px;
        padding: 12px;
        border-radius: 20px;
        background: rgba(255, 253, 250, 0.86);
    }

    .floating-stats div {
        padding: 12px 4px;
        border-radius: 14px;
        background: transparent;
        border-left: 1px solid var(--line);
    }

    .floating-stats div:first-child {
        border-left: 0;
    }

    .floating-stats strong {
        font-size: 1.45rem;
    }

    .floating-stats span {
        font-size: 0.7rem;
    }

    .trust-strip {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
    }

    .trust-strip::before,
    .trust-strip::after {
        width: 38px;
        height: 38px;
    }

    .hero-actions,
    .form-actions,
    .inline-form,
    .selected-file {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button,
    .ghost-button {
        width: 100%;
    }

    .hero-actions .primary-button,
    .hero-actions .secondary-button {
        width: 100%;
    }
}
