/* ROM Eğitim — ortak arayüz yenilemesi
   İşlevsel seçicileri değiştirmeden giriş ve rol panellerini aynı görsel sisteme bağlar. */

:root,
[data-theme="light"],
[data-theme="dark"] {
    --rom-ink: #102b3a;
    --rom-ink-soft: #173b4d;
    --rom-green: #176b57;
    --rom-green-hover: #105441;
    --rom-mint: #dcebe4;
    --rom-paper: #f5f3ec;
    --rom-canvas: #f6f7f4;
    --rom-white: #ffffff;
    --rom-line: #dce2de;
    --rom-muted: #67767d;
    --rom-danger: #b84c42;
    --rom-warning: #a66b16;
    --rom-radius: 14px;
    --rom-shadow: 0 18px 50px rgba(16, 43, 58, 0.08);

    --ds-primary: var(--rom-green);
    --ds-primary-hover: var(--rom-green-hover);
    --ds-primary-light: rgba(23, 107, 87, 0.1);
    --ds-primary-glow: none;
    --ds-surface: var(--rom-white);
    --ds-surface-hover: #f0f4f1;
    --ds-border: var(--rom-line);
    --ds-border-hover: #bdc9c3;
}

/* ───────────────────────────────
   Tema dışı kalan yerel kontroller ve içe aktarma akışı
   ─────────────────────────────── */
.topbar-new .active-season-selector {
    min-width: 190px;
}

.topbar-new #globalSeasonSelect {
    min-width: 190px;
    height: 38px !important;
    padding: 7px 34px 7px 12px !important;
    color: var(--rom-ink) !important;
    color-scheme: light;
    background-color: #fff !important;
    border: 1px solid #c8d3ce !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: .78rem !important;
    font-weight: 650;
    line-height: 1.2;
}

.topbar-new #globalSeasonSelect:hover {
    border-color: #9fb1a8 !important;
}

.topbar-new #globalSeasonSelect:focus,
.topbar-new #globalSeasonSelect:focus-visible {
    border-color: var(--rom-green) !important;
    box-shadow: 0 0 0 3px rgba(28, 119, 92, .14) !important;
}

.topbar-new #globalSeasonSelect option {
    color: var(--rom-ink);
    background: #fff;
    font-weight: 600;
}

.topbar-new #globalSeasonSelect option:checked {
    color: #fff;
    background: var(--rom-green) linear-gradient(var(--rom-green), var(--rom-green));
}

.modal,
.modal-content,
.modal .modal-content {
    color: var(--rom-ink) !important;
    background: #fbfcfa !important;
    border-color: rgba(255, 255, 255, .55) !important;
}

.modal .modal-header,
.modal-content .modal-header {
    color: var(--rom-ink) !important;
    background: #fff !important;
    border-bottom-color: var(--rom-line) !important;
}

.modal .modal-header h2,
.modal .modal-header h3,
.modal .modal-header h4,
.modal-content .modal-header h2 {
    color: var(--rom-ink) !important;
}

.modal .modal-close {
    color: #53676f !important;
    background: #f5f7f4 !important;
    border: 1px solid #d9e0dc !important;
    border-radius: 9px !important;
}

.modal .modal-close:hover {
    color: #9f3f46 !important;
    background: #fff1f1 !important;
    border-color: #efc5c7 !important;
}

.modal .modal-body {
    color: var(--rom-ink) !important;
    background: #fbfcfa !important;
}

.modal .modal-body label,
.modal .modal-body p,
.modal .modal-body .text-secondary {
    color: #52666f !important;
}

#importModal .modal-import {
    max-width: 900px;
}

#importModal .import-steps {
    background: #f1f5f1 !important;
    border: 1px solid #e1e8e3;
}

#importModal .import-step {
    color: #75848a !important;
}

#importModal .import-step.active {
    color: var(--rom-green) !important;
}

#importModal .import-step.done {
    color: #2d725c !important;
}

#importModal .import-step-num {
    color: #66767d;
    background: #fff !important;
    border-color: #ced8d2 !important;
}

#importModal .import-step.active .import-step-num {
    color: #fff !important;
    background: var(--rom-green) !important;
    border-color: var(--rom-green) !important;
}

#importModal .import-step.done .import-step-num {
    color: #24634f !important;
    background: #e2f0e8 !important;
    border-color: #9ec9b8 !important;
}

#importModal .step-divider {
    background: #d7dfda !important;
}

#importModal .file-drop-zone {
    color: var(--rom-ink);
    background: #f6f9f6 !important;
    border: 2px dashed #a8bcb2 !important;
}

#importModal .file-drop-zone:hover,
#importModal .file-drop-zone.dragover {
    background: #edf5f0 !important;
    border-color: var(--rom-green) !important;
    box-shadow: 0 0 0 3px rgba(28, 119, 92, .08);
}

#importModal .file-drop-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 13px;
    color: var(--rom-green);
    background: #e6f0ea;
    border-radius: 12px;
    filter: saturate(.65);
    opacity: 1;
    font-size: 1.45rem;
}

#importModal .file-drop-text {
    color: #314b55 !important;
    font-weight: 700;
}

#importModal .file-drop-hint,
#importModal .import-step:not(.active),
#importModal .mapper-loading {
    color: #78878d !important;
}

#importModal .file-selected-info {
    color: #24634f !important;
    background: #eaf4ee !important;
    border-color: #bdd8cb !important;
}

#importModal .visual-mapper-container,
#importModal .preview-table-wrapper,
#importModal .import-summary {
    color: var(--rom-ink) !important;
    background: #fff !important;
    border-color: var(--rom-line) !important;
}

#importModal .match-status.matched {
    color: #24634f !important;
    background: #e5f2eb !important;
}

#importModal .match-status.unmatched {
    color: #8b5a19 !important;
    background: #fff3df !important;
}

@media (max-width: 768px) {
    .topbar-new .active-season-selector {
        min-width: 0;
    }

    .topbar-new #globalSeasonSelect {
        min-width: 0;
        max-width: 118px !important;
        height: 34px !important;
        padding: 6px 25px 6px 8px !important;
        text-overflow: ellipsis;
    }

    #importModal .modal-import {
        width: calc(100% - 20px) !important;
        max-height: calc(100dvh - 20px) !important;
    }

    #importModal .import-steps {
        justify-content: flex-start;
        overflow-x: auto;
    }

    #importModal .file-drop-zone {
        padding: 28px 16px;
    }
}

body {
    background: var(--rom-canvas);
    color: var(--rom-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ───────────────────────────────
   Giriş
   ─────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
    align-items: stretch;
    justify-content: stretch;
    overflow: auto;
    background: var(--rom-paper);
    color: var(--rom-ink);
}

.login-page::before,
.login-page::after {
    display: none;
}

.login-intro {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: clamp(38px, 6vw, 88px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #f7f5ee;
    background:
        linear-gradient(140deg, rgba(23, 107, 87, 0.2), transparent 52%),
        var(--rom-ink);
}

.login-intro::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -220px;
    bottom: -180px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(255,255,255,.025), 0 0 0 144px rgba(255,255,255,.018);
    pointer-events: none;
}

.login-brand,
.login-intro-copy,
.login-intro-footer {
    position: relative;
    z-index: 1;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.login-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f7f5ee;
    color: var(--rom-ink);
    font-family: Georgia, serif;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.login-intro-copy {
    max-width: 610px;
    margin: 72px 0;
}

.login-eyebrow {
    margin: 0 0 22px;
    color: #acd2c4;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.login-intro h2 {
    max-width: 720px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5.2vw, 5.8rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.login-intro-copy > p:last-of-type {
    max-width: 570px;
    margin: 28px 0 0;
    color: rgba(247, 245, 238, 0.7);
    font-size: 1rem;
    line-height: 1.75;
}

.login-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 42px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.13);
}

.login-benefit {
    padding: 18px;
    background: var(--rom-ink);
}

.login-benefit strong,
.login-benefit span {
    display: block;
}

.login-benefit strong {
    margin-bottom: 6px;
    color: #f7f5ee;
    font-size: 0.86rem;
}

.login-benefit span {
    color: rgba(247,245,238,.52);
    font-size: 0.72rem;
    line-height: 1.45;
}

.login-intro-footer {
    color: rgba(247,245,238,.44);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.login-container,
.glass-panel.login-container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: clamp(28px, 5vw, 72px);
    display: grid;
    place-items: center;
    background: var(--rom-paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.login-card {
    width: min(100%, 520px);
    padding: 0;
    color: var(--rom-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.login-header {
    margin-bottom: 30px;
    text-align: left;
}

.login-logo {
    width: 48px;
    height: 48px;
    margin: 0 0 22px;
    border-radius: 10px;
    background: var(--rom-ink);
    color: white;
    box-shadow: none;
    font-size: 0;
}

.login-logo::after {
    content: "R";
    font-family: Georgia, serif;
    font-size: 1.35rem;
}

.login-header h1 {
    margin-bottom: 7px;
    color: var(--rom-ink);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.login-header p {
    color: var(--rom-muted);
    font-size: 0.94rem;
}

.institution-panel {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--rom-line);
    border-radius: 12px;
    background: rgba(255,255,255,.55);
}

.institution-panel label,
.form-group label {
    color: var(--rom-ink);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.055em;
}

.institution-help {
    color: var(--rom-muted);
}

.institution-help button,
.login-switch-link a,
.checkbox-container a {
    color: var(--rom-green) !important;
}

.login-mode-tabs {
    gap: 0;
    padding: 4px;
    margin-bottom: 18px;
    border: 1px solid var(--rom-line);
    border-radius: 12px;
    background: rgba(255,255,255,.58);
}

.login-mode-tab {
    min-height: 42px;
    padding: 9px 12px;
    color: var(--rom-muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
}

.login-mode-tab:hover {
    color: var(--rom-ink);
    background: rgba(16,43,58,.04);
}

.login-mode-tab.active[data-mode="admin"],
.login-mode-tab.active[data-mode="parent"] {
    color: var(--rom-ink);
    background: var(--rom-white);
    border: 0;
    box-shadow: 0 2px 9px rgba(16,43,58,.08);
}

.login-mode-tab .badge-icon {
    display: none;
}

.role-selector {
    gap: 10px;
    margin-bottom: 22px;
}

.role-option label {
    min-height: 64px;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    color: var(--rom-muted);
    background: rgba(255,255,255,.5);
    border: 1px solid var(--rom-line);
    border-radius: 11px;
}

.role-option label:hover {
    border-color: #a9bbb3;
    background: white;
}

.role-option input[type="radio"]:checked + label {
    color: var(--rom-green);
    background: #edf5f1;
    border-color: var(--rom-green);
    box-shadow: none;
}

.role-option input[type="radio"]:checked + label .role-label,
.role-label {
    color: inherit;
}

.role-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(23,107,87,.08);
    font-size: 0.78rem;
    font-weight: 800;
}

.form-control,
select.form-control {
    min-height: 50px;
    padding: 13px 15px 13px 43px;
    color: var(--rom-ink);
    background-color: rgba(255,255,255,.72);
    border: 1px solid #ccd5d0;
    border-radius: 10px;
    box-shadow: none;
}

.form-control-no-icon,
select.form-control-no-icon {
    padding-left: 15px;
}

.form-control::placeholder {
    color: #95a19d;
}

.form-control:focus {
    color: var(--rom-ink);
    background: white;
    border-color: var(--rom-green);
    box-shadow: 0 0 0 3px rgba(23,107,87,.11);
}

.input-wrapper .input-icon {
    color: #7c8c87;
    filter: grayscale(1);
    opacity: .72;
}

.checkbox-container {
    color: var(--rom-muted) !important;
}

.checkbox-container input {
    accent-color: var(--rom-green);
}

.login-card .btn-primary {
    min-height: 52px;
    border-radius: 10px;
    background: var(--rom-green);
    border: 1px solid var(--rom-green);
    box-shadow: none;
}

.login-card .btn-primary:hover {
    background: var(--rom-green-hover);
    border-color: var(--rom-green-hover);
    box-shadow: none;
}

.login-switch-link,
#adminFooter > div:first-child,
#parentFooter > div:first-child {
    color: var(--rom-muted) !important;
}

#pwaInstallContainer {
    border-top-color: var(--rom-line) !important;
}

#pwaInstallContainer p {
    color: var(--rom-muted) !important;
}

#pwaInstallBtn.btn-secondary {
    color: var(--rom-ink) !important;
    background: transparent !important;
    border: 1px solid var(--rom-line) !important;
    box-shadow: none !important;
}

.institution-register-overlay {
    background: rgba(9,29,39,.72);
}

.institution-register-modal {
    color: var(--rom-ink);
    background: var(--rom-paper);
    border-color: var(--rom-line);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(9,29,39,.25);
}

.institution-register-info {
    color: white;
    background: var(--rom-ink);
    border-color: rgba(255,255,255,.1);
}

.institution-register-info p,
.institution-register-step {
    color: rgba(255,255,255,.68);
}

.institution-register-step {
    background: rgba(255,255,255,.06);
}

.institution-register-step strong,
.institution-register-kicker {
    color: #b6dacd;
    background: rgba(107,191,159,.13);
}

/* ───────────────────────────────
   Ortak panel kabuğu
   ─────────────────────────────── */
.panel-layout {
    background: var(--rom-canvas);
}

.sidebar-new {
    background: var(--rom-ink) !important;
    border-right: 0 !important;
    box-shadow: none !important;
}

.sidebar-new .sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,.09) !important;
}

.sidebar-new .topbar-logo {
    color: var(--rom-ink) !important;
    background: #f5f3ec !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: 0 !important;
}

.sidebar-new .topbar-logo::after {
    content: "R";
    font-family: Georgia, serif;
    font-size: 1.05rem;
}

.sidebar-new .topbar-brand,
.sidebar-new .topbar-brand-subtitle,
.sidebar-new .topbar-brand-group,
.sidebar-new .topbar-brand-group h2,
.sidebar-new .topbar-brand-group span,
.sidebar-new .sidebar-footer,
.sidebar-new .sidebar-footer * {
    color: rgba(255,255,255,.88) !important;
}

.sidebar-new .topbar-brand-subtitle {
    color: rgba(255,255,255,.48) !important;
}

.sidebar-new .btn-sidebar-collapse {
    color: rgba(255,255,255,.55) !important;
}

.sidebar-menu .nav-item {
    margin-bottom: 3px;
    padding: 11px 13px;
    color: rgba(255,255,255,.62) !important;
    border: 0 !important;
    border-radius: 9px;
    font-weight: 550;
}

.sidebar-menu .nav-item:hover {
    color: white !important;
    background: rgba(255,255,255,.07) !important;
}

.sidebar-menu .nav-item.active {
    color: white !important;
    background: rgba(120,194,166,.16) !important;
    border: 0 !important;
    box-shadow: inset 3px 0 0 #78c2a6;
}

.sidebar-menu .nav-icon {
    filter: grayscale(1);
    opacity: .82;
}

.nav-badge {
    color: #c5e7da;
    background: rgba(120,194,166,.16);
}

.topbar-new,
[data-theme="light"] .topbar-new,
[data-theme="dark"] .topbar-new {
    background: rgba(246,247,244,.92) !important;
    border-bottom: 1px solid var(--rom-line) !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
}

.topbar-new .page-title,
.topbar-new .topbar-user-name {
    color: var(--rom-ink) !important;
}

.topbar-new .topbar-user-role,
.topbar-new .active-season-selector > span {
    color: var(--rom-muted) !important;
}

.topbar-new .topbar-avatar {
    color: white !important;
    background: var(--rom-green) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.main-content {
    background: var(--rom-canvas) !important;
}

/* custom-ux içindeki akışkan üst çubuk kullanılırken eski sabit-header payını sıfırla. */
.main-wrapper > .main-content {
    margin-top: 0 !important;
}

/* ───────────────────────────────
   Güvenli yerel panel önizlemesi
   ─────────────────────────────── */
.demo-launcher {
    margin-top: 22px;
    padding: 18px;
    color: var(--rom-ink);
    background: #f3f6f2;
    border: 1px solid #dce4df;
    border-radius: 16px;
}

.demo-launcher-heading {
    margin-bottom: 14px;
}

.demo-launcher-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--rom-green);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.demo-launcher h3 {
    margin: 0 0 5px;
    color: var(--rom-ink) !important;
    font-family: var(--rom-display);
    font-size: 1.18rem;
}

.demo-launcher p {
    margin: 0;
    color: var(--rom-muted) !important;
    font-size: .78rem;
    line-height: 1.5;
}

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

.demo-role-grid button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--rom-ink);
    background: white;
    border: 1px solid #d4ddd8;
    border-radius: 10px;
    font: inherit;
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.demo-role-grid button:hover {
    background: #edf4ef;
    border-color: #9db7aa;
    transform: translateY(-1px);
}

.demo-role-grid button span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: white;
    background: var(--rom-green);
    border-radius: 7px;
    font-size: .68rem;
}

.demo-role-grid .demo-finance-button {
    grid-column: 1 / -1;
}

.demo-preview-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10050;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: min(620px, calc(100vw - 36px));
    padding: 12px 14px 12px 16px;
    color: #e8f2ed;
    background: #123342;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    box-shadow: 0 18px 46px rgba(13,35,46,.25);
    font-size: .78rem;
}

.demo-preview-banner button {
    flex: 0 0 auto;
    padding: 8px 11px;
    color: #123342;
    background: #dcebe3;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 620px) {
    .demo-preview-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
        align-items: flex-start;
        gap: 10px;
    }

    .demo-preview-banner span {
        flex: 1;
    }
}

.main-content .card,
[data-theme="light"] .card,
[data-theme="dark"] .card {
    color: var(--rom-ink);
    background: var(--rom-white) !important;
    border: 1px solid var(--rom-line) !important;
    border-radius: var(--rom-radius) !important;
    box-shadow: 0 7px 24px rgba(16,43,58,.045) !important;
    backdrop-filter: none !important;
}

.main-content .card:hover {
    border-color: #c4cec9 !important;
    box-shadow: 0 12px 34px rgba(16,43,58,.07) !important;
}

.main-content .card-header {
    border-bottom-color: #e7ebe8 !important;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content .card-title,
.main-content .stat-value {
    color: var(--rom-ink) !important;
}

.main-content p,
.main-content .text-muted,
.main-content .stat-label,
.main-content td {
    color: var(--rom-muted);
}

.main-content .btn-primary,
.modal .btn-primary {
    background: var(--rom-green) !important;
    border-color: var(--rom-green) !important;
    box-shadow: none !important;
}

.main-content .btn-primary:hover,
.modal .btn-primary:hover {
    background: var(--rom-green-hover) !important;
    border-color: var(--rom-green-hover) !important;
}

.main-content .form-control,
.main-content select,
.main-content textarea,
.modal .form-control,
.modal select,
.modal textarea {
    color: var(--rom-ink) !important;
    background-color: white !important;
    border-color: #ccd5d0 !important;
}

.main-content table thead,
.main-content th {
    color: #52666f !important;
    background: #f2f5f2 !important;
}

.main-content table td,
.main-content table th {
    border-color: #e3e8e5 !important;
}

.modal-content,
.modal .modal-content {
    color: var(--rom-ink) !important;
    background: var(--rom-white) !important;
    border-color: var(--rom-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 70px rgba(16,43,58,.18) !important;
}

/* ───────────────────────────────
   Rol bazlı ana ekranlar
   ─────────────────────────────── */
.theme-picker-wrapper {
    display: none !important;
}

.sidebar-new .nav-label {
    margin-top: 20px;
    color: rgba(255,255,255,.32) !important;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .15em;
}

#section-dashboard .page-content {
    padding: 30px 32px 52px;
}

.dashboard-intro,
.welcome-bar.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 24px !important;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--rom-line);
    background: transparent;
}

.dashboard-intro-copy {
    max-width: 720px;
}

.dashboard-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--rom-green);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dashboard-intro h1,
.dashboard-intro h2 {
    margin: 0;
    color: var(--rom-ink) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.dashboard-intro p {
    max-width: 650px;
    margin: 10px 0 0;
    color: var(--rom-muted) !important;
    font-size: .9rem;
    line-height: 1.6;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard-actions button {
    min-height: 40px;
    padding: 9px 14px;
    color: var(--rom-ink);
    background: var(--rom-white);
    border: 1px solid #c9d3ce;
    border-radius: 9px;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.dashboard-actions button:first-child {
    color: white;
    background: var(--rom-green);
    border-color: var(--rom-green);
}

.dashboard-actions button:hover {
    color: white;
    background: var(--rom-green-hover);
    border-color: var(--rom-green-hover);
}

#section-dashboard .ai-summary-card,
#section-dashboard .card.ai-summary-card {
    margin-bottom: 18px !important;
    color: var(--rom-ink) !important;
    background: #e9f1ec !important;
    border: 1px solid #ccddd4 !important;
    border-left: 4px solid var(--rom-green) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

#section-dashboard .ai-summary-card > div[style*="position: absolute"] {
    display: none !important;
}

#section-dashboard .ai-summary-card .card-body {
    min-height: 102px;
    padding: 20px 22px !important;
    gap: 16px !important;
}

#section-dashboard .ai-summary-card .ai-icon-pulse {
    width: 46px !important;
    height: 46px !important;
    color: var(--rom-green) !important;
    background: rgba(23,107,87,.1) !important;
    border: 1px solid rgba(23,107,87,.14);
    border-radius: 10px !important;
    box-shadow: none !important;
}

#section-dashboard .ai-summary-card .ai-icon-pulse span {
    font-size: 1.15rem !important;
    filter: grayscale(1) !important;
}

#section-dashboard .ai-summary-card h3 {
    margin-bottom: 7px !important;
    color: var(--rom-green) !important;
    font-size: .9rem !important;
    font-weight: 800;
    letter-spacing: .02em;
}

#section-dashboard .ai-summary-card h3 span {
    padding: 3px 7px !important;
    color: var(--rom-green) !important;
    background: rgba(23,107,87,.08) !important;
    border-color: rgba(23,107,87,.16) !important;
    border-radius: 5px !important;
    font-size: .6rem !important;
    letter-spacing: .08em;
}

#section-dashboard .ai-summary-card p,
#section-dashboard .ai-summary-card p strong {
    color: #3f555d !important;
    font-size: .92rem !important;
    font-weight: 450 !important;
    line-height: 1.55 !important;
}

#section-dashboard .dashboard-kpi-grid,
#section-dashboard .ai-summary-card + div[style*="display: grid"] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
}

#section-dashboard .kpi-card {
    min-height: 176px;
    padding: 20px !important;
    color: var(--rom-ink) !important;
    background: var(--rom-white) !important;
    border: 1px solid var(--rom-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 18px rgba(16,43,58,.04) !important;
}

#section-dashboard .kpi-card:hover {
    transform: translateY(-2px);
    border-color: #bdcbc4 !important;
    box-shadow: 0 10px 25px rgba(16,43,58,.07) !important;
}

#section-dashboard .kpi-card > div:first-child[style*="position: absolute"] {
    display: none !important;
}

#section-dashboard .kpi-card > div[style*="justify-content:space-between"] {
    margin-bottom: 12px !important;
}

#section-dashboard .kpi-card div[style*="font-size: 2.8rem"],
#section-dashboard .kpi-card div[style*="font-size: 2rem"][id],
#section-dashboard .kpi-card .stat-tahsilat-group {
    color: var(--rom-ink) !important;
    font-size: 2rem !important;
    font-weight: 720 !important;
    letter-spacing: -.04em !important;
}

#section-dashboard .kpi-card div[style*="text-transform:uppercase"] {
    margin-bottom: 8px !important;
    color: var(--rom-muted) !important;
    font-size: .67rem !important;
    letter-spacing: .1em !important;
}

#section-dashboard .kpi-card div[style*="width: 64px"] {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    font-size: 1.15rem !important;
    filter: grayscale(.7);
}

#section-dashboard .kpi-card > div[style*="border-top: 1px dashed"] {
    margin-top: 18px !important;
    padding-top: 13px !important;
    gap: 7px !important;
}

#section-dashboard .kpi-card > div[style*="border-top: 1px dashed"] span {
    font-size: .7rem !important;
}

#section-dashboard .dashboard-charts-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr) !important;
    gap: 16px !important;
}

#section-dashboard .dashboard-charts-grid > div {
    gap: 16px !important;
}

#section-dashboard .dashboard-charts-grid .card[style*="border: 2px"] {
    border: 1px solid #e5c9c5 !important;
    box-shadow: none !important;
}

#section-dashboard .dashboard-charts-grid .card-header[style*="background: rgba(239"] {
    background: #fbefed !important;
}

.role-parent-dashboard .page-content > .card,
.role-student-dashboard .page-content > .card,
.role-teacher-dashboard .page-content > .card {
    margin-top: 14px !important;
}

/* ───────────────────────────────
   Modül içi bilgi mimarisi
   ─────────────────────────────── */
.page-section:not(#section-dashboard) .page-content {
    width: 100%;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 30px 32px 52px;
}

.module-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rom-line);
}

.module-heading > div {
    max-width: 760px;
}

.module-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--rom-green);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.module-heading h1 {
    margin: 0;
    color: var(--rom-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -.035em;
}

.module-heading p {
    margin: 8px 0 0;
    color: var(--rom-muted);
    font-size: .87rem;
    line-height: 1.55;
}

.page-section:not(#section-dashboard) .card {
    overflow: hidden;
}

.page-section:not(#section-dashboard) .card-header {
    min-height: 64px;
    padding: 15px 18px !important;
    gap: 14px;
    background: #fbfcfa !important;
}

.page-section:not(#section-dashboard) .card-title {
    margin: 0;
    color: var(--rom-ink) !important;
    font-size: .98rem !important;
    font-weight: 760 !important;
    letter-spacing: -.01em;
}

.page-section:not(#section-dashboard) .card-body {
    padding: 18px !important;
}

.filter-toolbar,
.attendance-toolbar {
    display: flex;
    align-items: flex-end !important;
    flex-wrap: wrap;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding: 12px;
    background: #f4f6f3;
    border: 1px solid #e0e6e2;
    border-radius: 10px;
}

.filter-toolbar label,
.attendance-toolbar label {
    margin: 0 0 5px !important;
    color: #5f7279 !important;
    font-size: .68rem !important;
    font-weight: 800 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.filter-toolbar .form-control,
.attendance-toolbar .form-control,
.page-section:not(#section-dashboard) .form-control {
    min-height: 40px;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-size: .84rem !important;
}

.filter-toolbar input[type="text"] {
    flex: 1;
    width: auto;
    min-width: 220px;
    max-width: 420px !important;
}

.filter-toolbar select {
    width: auto;
    min-width: 180px;
    max-width: 260px;
}

.table-wrapper {
    position: relative;
    width: 100%;
    overflow: auto;
    border: 1px solid #e0e6e2;
    border-radius: 10px;
    background: white;
}

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

.data-table thead,
.attendance-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.data-table th,
.attendance-table th {
    height: 42px;
    padding: 10px 14px !important;
    color: #5f7279 !important;
    background: #f1f4f1 !important;
    border-bottom: 1px solid #dce3df !important;
    font-size: .66rem !important;
    font-weight: 800 !important;
    letter-spacing: .075em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td,
.attendance-table td {
    min-height: 52px;
    padding: 12px 14px !important;
    color: #344b55 !important;
    background: white;
    border-bottom: 1px solid #edf0ee !important;
    font-size: .82rem;
    vertical-align: middle;
}

.data-table tbody tr:last-child td,
.attendance-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.data-table tbody tr:hover td,
.attendance-table tbody tr:hover td {
    background: #f7faf8;
}

.hw-filter-bar,
.exam-detail-tab,
.t-exam-tab {
    border-color: var(--rom-line) !important;
}

.hw-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
    padding: 4px;
    border: 1px solid var(--rom-line);
    border-radius: 10px;
    background: #f4f6f3;
}

.hw-filter-btn,
.exam-detail-tab,
.t-exam-tab,
.schedule-view-btn,
.t-att-mode-btn,
.t-att-day-pill {
    min-height: 36px;
    padding: 7px 11px !important;
    color: var(--rom-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    font-size: .76rem !important;
    font-weight: 700 !important;
}

.hw-filter-btn:hover,
.exam-detail-tab:hover,
.t-exam-tab:hover,
.schedule-view-btn:hover,
.t-att-mode-btn:hover,
.t-att-day-pill:hover {
    color: var(--rom-ink) !important;
    background: rgba(255,255,255,.7) !important;
}

.hw-filter-btn.active,
.exam-detail-tab.active,
.t-exam-tab.active,
.schedule-view-btn.active,
.t-att-mode-btn.active,
.t-att-day-pill.active {
    color: var(--rom-green) !important;
    background: white !important;
    border-color: #cbd8d1 !important;
    box-shadow: 0 2px 7px rgba(16,43,58,.06) !important;
}

.stat-card,
.att-stats-grid > *,
.hw-stats-grid > *,
.schedule-stats-grid > * {
    color: var(--rom-ink) !important;
    background: white !important;
    border: 1px solid var(--rom-line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.empty-state {
    padding: 52px 24px !important;
}

.empty-state .empty-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    color: var(--rom-green);
    background: #eaf2ed;
    border-radius: 50%;
    filter: grayscale(.6);
    font-size: .85rem !important;
    font-weight: 800;
}

.empty-state p {
    color: var(--rom-muted) !important;
    font-size: .83rem !important;
}

.modal-overlay {
    background: rgba(10,31,41,.68) !important;
    backdrop-filter: blur(7px);
}

.modal,
.modal-content {
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 15px !important;
    box-shadow: 0 30px 90px rgba(10,31,41,.28) !important;
}

.modal-header {
    min-height: 64px;
    padding: 16px 20px !important;
    background: #f7f9f6 !important;
    border-bottom: 1px solid var(--rom-line) !important;
}

.modal-title {
    color: var(--rom-ink) !important;
    font-size: 1.02rem !important;
}

.modal-body {
    padding: 20px !important;
}

.modal-actions,
.modal-footer {
    padding-top: 15px !important;
    border-top: 1px solid var(--rom-line) !important;
}

.alert-info {
    color: #3c5952 !important;
    background: #edf4f0 !important;
    border: 1px solid #d2e1d9 !important;
    border-radius: 10px !important;
}

.date-nav,
.att-calendar-nav {
    color: var(--rom-ink) !important;
    background: white !important;
    border-color: var(--rom-line) !important;
    border-radius: 8px !important;
}

.date-nav button,
.att-calendar-nav button {
    color: var(--rom-ink) !important;
    background: transparent !important;
    border-color: transparent !important;
}

.hw-list > *,
.att-record-list > * {
    border-color: var(--rom-line) !important;
    box-shadow: none !important;
}

/* ───────────────────────────────
   Son modül yüzeyleri: profil, form ve seçim kartları
   ─────────────────────────────── */
.main-content > .page-section > .page-header,
.page-section > .page-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: calc(100% - 64px);
    max-width: 1336px;
    min-height: 68px;
    margin: 28px auto 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--rom-line);
}

.page-section > .page-header .page-title {
    color: var(--rom-ink) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    font-weight: 500;
    letter-spacing: -.03em;
}

.info-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px !important;
}

.info-grid .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 15px !important;
    background: #f8faf7 !important;
    border: 1px solid #e1e7e3 !important;
    border-radius: 10px !important;
}

.info-grid .info-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--rom-green) !important;
    background: #e8f1eb !important;
    border-radius: 9px !important;
    font-size: .74rem !important;
    font-weight: 800;
    filter: grayscale(.65);
}

.info-grid .info-label {
    margin-bottom: 3px;
    color: var(--rom-muted) !important;
    font-size: .68rem !important;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.info-grid .info-value {
    color: var(--rom-ink) !important;
    font-size: .88rem !important;
    font-weight: 700;
}

.target-options-grid .target-card-btn {
    min-height: 50px;
    color: var(--rom-ink) !important;
    background: #f8faf7 !important;
    border-color: #dce4df !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.target-options-grid .target-card-btn:hover {
    background: #eef4f0 !important;
    border-color: #b7c9bf !important;
}

#section-finance .stats-grid,
#section-profile .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

#section-finance .stat-card,
#section-profile .stat-card {
    min-height: 132px;
    padding: 18px !important;
}

#section-classes .card-body > div[style*="display: flex"],
#section-seasons form[style*="display: flex"] {
    padding: 14px;
    background: #f5f7f4;
    border: 1px solid #e0e6e2;
    border-radius: 10px;
}

#section-accountants form[style*="display: grid"],
#section-questions form[style*="display: grid"] {
    padding: 16px;
    background: #f7f9f6;
    border: 1px solid #e0e6e2;
    border-radius: 10px;
}

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

    #section-finance .stats-grid,
    #section-profile .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .main-content > .page-section > .page-header,
    .page-section > .page-header {
        width: calc(100% - 24px);
        margin-top: 18px;
        padding-bottom: 14px;
    }

    .info-grid,
    #section-finance .stats-grid,
    #section-profile .stats-grid {
        grid-template-columns: 1fr;
    }

    .target-options-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ───────────────────────────────
   Finans, rapor, rehberlik ve canlı dersler
   ─────────────────────────────── */
.role-finance-dashboard .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.role-finance-dashboard .dashboard-grid .kpi-card {
    min-height: 148px;
    padding: 20px !important;
    background: var(--rom-white) !important;
    border: 1px solid var(--rom-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 18px rgba(16,43,58,.04) !important;
}

.role-finance-dashboard .dashboard-grid .kpi-card > div:first-child[style*="position: absolute"] {
    display: none !important;
}

.role-finance-dashboard .dashboard-grid .kpi-card h3 {
    color: var(--rom-muted) !important;
    font-size: .67rem !important;
    letter-spacing: .1em !important;
}

.role-finance-dashboard .dashboard-grid .kpi-card .amount {
    color: var(--rom-ink) !important;
    font-size: 1.75rem !important;
    letter-spacing: -.035em;
}

.finance-app .page-section:not(#section-dashboard) .page-content > div[style*="grid-template-columns: repeat"] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.finance-app .page-section:not(#section-dashboard) .page-content > div[style*="grid-template-columns: repeat"] > div {
    padding: 17px !important;
    background: white !important;
    border: 1px solid var(--rom-line) !important;
    border-top: 1px solid var(--rom-line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.finance-app .page-section:not(#section-dashboard) .page-content > div[style*="grid-template-columns: repeat"] > div > div:first-child {
    color: var(--rom-muted) !important;
    font-size: .65rem !important;
    letter-spacing: .085em !important;
}

.finance-app .search-container {
    position: relative;
    flex: 1;
    max-width: 430px;
}

.finance-app .search-box {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px 10px 40px;
    color: var(--rom-ink);
    background: white;
    border: 1px solid #ccd5d0;
    border-radius: 9px;
    outline: none;
}

.finance-app .search-box:focus {
    border-color: var(--rom-green);
    box-shadow: 0 0 0 3px rgba(23,107,87,.1);
}

.finance-app .search-container svg,
.finance-app .search-container i {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 17px;
    transform: translateY(-50%);
    color: #7b8d87;
}

.guidance-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 32px 52px;
}

.guidance-tabs {
    display: flex !important;
    gap: 4px !important;
    margin-bottom: 20px !important;
    padding: 4px !important;
    overflow-x: auto;
    background: #f1f4f1;
    border: 1px solid var(--rom-line) !important;
    border-radius: 10px;
}

.guidance-tabs .tab-btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 13px !important;
    color: var(--rom-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    font-size: .76rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.guidance-tabs .tab-btn.active {
    color: var(--rom-green) !important;
    background: white !important;
    border-color: #cbd8d1 !important;
    box-shadow: 0 2px 7px rgba(16,43,58,.06);
}

.guidance-tab-content > div[style*="justify-content: space-between"] {
    display: flex;
    align-items: center !important;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px !important;
}

.guidance-tab-content h3 {
    margin: 0 !important;
    color: var(--rom-ink) !important;
    font-size: 1rem !important;
}

.guidance-card,
#teacherLiveLessonsContainer > *,
#studentLiveLessonsContainer > * {
    color: var(--rom-ink) !important;
    background: white !important;
    border: 1px solid var(--rom-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 18px rgba(16,43,58,.04) !important;
}

.guidance-card:hover,
#teacherLiveLessonsContainer > *:hover,
#studentLiveLessonsContainer > *:hover {
    transform: translateY(-2px);
    border-color: #bdcbc4 !important;
    box-shadow: 0 10px 25px rgba(16,43,58,.07) !important;
}

.guidance-card-title,
.guidance-card-student {
    color: var(--rom-ink) !important;
}

.guidance-card-notes {
    color: #50646d !important;
    background: #f5f7f4 !important;
    border-color: #e5eae7 !important;
}

#section-live-lessons .stats-grid,
#section-reports .stats-grid,
.finance-app #section-reports .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

#section-live-lessons .stat-card,
#section-reports .stat-card,
.finance-app #section-reports .kpi-card {
    min-height: 124px;
    padding: 18px !important;
    background: white !important;
    border: 1px solid var(--rom-line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

#section-reports canvas {
    max-height: 320px;
}

.goal-progress-bar-bg {
    background: #e4e9e6 !important;
}

.goal-progress-bar-fill {
    background: var(--rom-green) !important;
}

@media (max-width: 1100px) {
    .role-finance-dashboard .dashboard-grid,
    .finance-app .page-section:not(#section-dashboard) .page-content > div[style*="grid-template-columns: repeat"],
    #section-live-lessons .stats-grid,
    #section-reports .stats-grid,
    .finance-app #section-reports .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1180px) {
    #section-dashboard .dashboard-kpi-grid,
    #section-dashboard .ai-summary-card + div[style*="display: grid"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .guidance-page {
        padding: 22px 16px 40px;
    }

    .guidance-tab-content > div[style*="justify-content: space-between"] {
        align-items: stretch !important;
        flex-direction: column;
    }

    .guidance-tab-content > div[style*="justify-content: space-between"] .btn {
        width: 100%;
    }

    .finance-app .search-container {
        width: 100%;
        max-width: none;
    }

    .page-section:not(#section-dashboard) .page-content {
        padding: 22px 16px 40px;
    }

    .module-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 16px;
    }

    .page-section:not(#section-dashboard) .card-header {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .page-section:not(#section-dashboard) .card-header > div,
    .page-section:not(#section-dashboard) .card-header > button {
        width: 100%;
    }

    .filter-toolbar,
    .attendance-toolbar {
        align-items: stretch !important;
        flex-direction: column;
    }

    .filter-toolbar input,
    .filter-toolbar select,
    .attendance-toolbar input,
    .attendance-toolbar select {
        width: 100% !important;
        max-width: none !important;
    }

    .hw-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .hw-filter-btn {
        flex: 0 0 auto;
    }

    #section-dashboard .page-content {
        padding: 22px 16px 40px;
    }

    .dashboard-intro,
    .welcome-bar.dashboard-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding-bottom: 20px;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-actions button {
        flex: 1;
        min-width: 100px;
    }

    #section-dashboard .ai-summary-card .card-body {
        align-items: flex-start !important;
        padding: 18px !important;
    }

    #section-dashboard .ai-summary-card .ai-icon-pulse {
        display: none !important;
    }

    #section-dashboard .dashboard-charts-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 540px) {
    .role-finance-dashboard .dashboard-grid,
    .finance-app .page-section:not(#section-dashboard) .page-content > div[style*="grid-template-columns: repeat"],
    #section-live-lessons .stats-grid,
    #section-reports .stats-grid,
    .finance-app #section-reports .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    #section-dashboard .dashboard-kpi-grid,
    #section-dashboard .ai-summary-card + div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }

    #section-dashboard .kpi-card {
        min-height: 150px;
    }
}

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

    .login-intro {
        position: relative;
        min-height: auto;
        padding: 30px 24px 34px;
    }

    .login-intro-copy {
        margin: 64px 0 8px;
    }

    .login-intro h2 {
        font-size: clamp(2.45rem, 12vw, 4.2rem);
    }

    .login-intro-copy > p:last-of-type,
    .login-benefits,
    .login-intro-footer {
        display: none;
    }

    .login-container,
    .glass-panel.login-container {
        min-height: auto;
        padding: 36px 22px 52px;
    }
}

@media (max-width: 560px) {
    .login-intro {
        padding: 24px 18px 26px;
    }

    .login-intro-copy {
        margin-top: 45px;
    }

    .login-intro h2 {
        font-size: 2.7rem;
    }

    .login-container,
    .glass-panel.login-container {
        padding: 32px 18px 46px;
    }

    .login-header h1 {
        font-size: 2rem;
    }

    .institution-register-modal {
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
