/* ==========================================
   TARAZ | سامانه هوشمند پرونده انضباطی مدارس
   Responsive Mobile-First UI
   Primary: #1001A5
   Accent:  #F7E300
========================================== */

:root {
    --primary: #1001A5;
    --primary-light: #3427CF;
    --primary-dark: #0B0870;

    --yellow: #F7E300;
    --yellow-light: #FFF68A;

    --white: #FFFFFF;
    --background: #F6F7FB;

    --text: #172044;
    --muted: #7D849B;

    --border: #E9EBF4;

    --success: #148A59;
    --success-bg: #E4F8EE;

    --danger: #D54557;
    --danger-bg: #FFF0F2;

    --radius: 18px;
    --radius-lg: 24px;

    --shadow:
        0 10px 32px rgba(16, 1, 165, .07);

    --shadow-hover:
        0 15px 36px rgba(16, 1, 165, .12);

    --gradient:
        linear-gradient(135deg, #1001A5 0%, #3427CF 100%);

    --yellow-gradient:
        linear-gradient(135deg, #F7E300 0%, #FFF68A 100%);
}

/* ==========================================
   Reset
========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;

    color: var(--text);
    background: var(--background);

    overflow-x: clip;

    line-height: 1.8;
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

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

input,
select,
textarea {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

/* ==========================================
   Background
========================================== */

.ambient {
    position: fixed;

    border-radius: 50%;

    pointer-events: none;
    filter: blur(70px);

    opacity: .35;
    z-index: -1;
}

.ambient-one {
    width: 300px;
    height: 300px;

    top: -130px;
    right: -110px;

    background: #DDD8FF;
}

.ambient-two {
    width: 250px;
    height: 250px;

    bottom: -110px;
    left: -100px;

    background: #FFF5A0;
}

/* ==========================================
   Main Container
========================================== */

.app-container {
    position: relative;

    width: 100%;
    max-width: 520px;

    min-height: 100vh;

    margin: 0 auto;
    padding: 24px 18px 28px;
}

.app-container > * {
    min-width: 0;
}

/* ==========================================
   Brand
========================================== */

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    text-align: center;
}

.brand-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;
}

.brand-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;
    height: 76px;

    border-radius: 24px;

    background: var(--gradient);
    color: var(--yellow);

    font-size: 30px;

    box-shadow:
        0 12px 28px rgba(16, 1, 165, .18);

    transform: rotate(-4deg);
}

.brand-symbol i {
    transform: rotate(4deg);
}

.brand-name {
    margin: 0;

    color: var(--primary);

    font-size: 40px;
    font-weight: 900;

    letter-spacing: -1px;
    line-height: 1.5;
}

.brand-description {
    max-width: 300px;

    margin: 0;

    color: var(--muted);

    font-size: 12px;
    font-weight: 500;

    line-height: 2;
}

.brand-image {
    display: block;

    width: auto;
    max-width: 100%;

    object-fit: contain;
    object-position: center;
}

.brand-horizontal {
    width: min(280px, 100%);
    max-height: 110px;
}

.brand-vertical {
    width: min(145px, 100%);
    max-height: 185px;
}

.brand-compact .brand-symbol {
    width: 58px;
    height: 58px;

    border-radius: 18px;
    font-size: 23px;
}

.brand-compact .brand-name {
    font-size: 31px;
}

.brand-compact .brand-description {
    font-size: 11px;
}

/* ==========================================
   School Badge
========================================== */

.school-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    max-width: 100%;

    padding: 8px 14px;

    background: var(--white);
    color: var(--primary);

    border: 1px solid #E7E5FF;
    border-radius: 100px;

    font-size: 11px;
    font-weight: 800;

    text-align: center;

    box-shadow:
        0 5px 18px rgba(16, 1, 165, .04);
}

.school-badge i {
    flex-shrink: 0;
    color: var(--primary);
}

/* ==========================================
   Landing Page
========================================== */

.landing-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 22px;

    padding-top: 24px;
}

.landing-intro {
    margin: 30px 0 22px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 7px 12px;

    border-radius: 100px;

    color: var(--primary);
    background: #EAE8FF;

    font-size: 10px;
    font-weight: 800;
}

.landing-intro h1 {
    margin: 13px 0 7px;

    font-size: clamp(20px, 5vw, 24px);
    font-weight: 900;

    line-height: 1.8;
}

.landing-intro p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 2;
}

.role-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 13px;
}

.role-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 13px;

    min-width: 0;
    padding: 16px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.role-card:hover {
    transform: translateY(-3px);

    border-color: #C5BFFF;
    box-shadow: var(--shadow-hover);
}

.role-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 58px;
    height: 58px;

    border-radius: 17px;

    font-size: 23px;
}

.role-icon.staff {
    color: var(--yellow);
    background: var(--gradient);
}

.role-icon.student {
    color: var(--primary);
    background: var(--yellow-gradient);
}

.role-content {
    flex: 1;
    min-width: 0;
}

.role-content h3 {
    margin: 0 0 4px;

    font-size: 14px;
    font-weight: 900;
}

.role-content p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.9;
}

.role-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #F3F2FF;
    color: var(--primary);

    font-size: 11px;
}

.highlight-card {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 18px;
    padding: 16px;

    border-radius: var(--radius);

    background:
        linear-gradient(
            120deg,
            rgba(247, 227, 0, .19),
            rgba(247, 227, 0, .04)
        );

    border: 1px solid rgba(247, 227, 0, .5);
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    background: var(--yellow);
    color: var(--primary);

    font-size: 17px;
}

.highlight-card strong {
    display: block;

    font-size: 11px;
}

.highlight-card p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.9;
}

/* ==========================================
   Login
========================================== */

.login-header {
    padding-top: 12px;
    text-align: center;
}

.back-link {
    position: absolute;

    top: 20px;
    right: 18px;

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

    width: 38px;
    height: 38px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--white);
    color: var(--primary);

    font-size: 13px;

    transition: .2s;
}

.back-link:hover {
    background: #F0EEFF;
}

.login-school {
    margin-top: 17px;
}

.login-card {
    margin-top: 25px;
    padding: 23px 19px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 24px;

    box-shadow: var(--shadow);
}

.login-title {
    margin-bottom: 23px;
    text-align: center;
}

.login-title .login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 49px;
    height: 49px;

    margin-bottom: 10px;

    border-radius: 15px;

    background: #EFEDFF;
    color: var(--primary);

    font-size: 20px;
}

.login-title h1 {
    margin: 0 0 6px;

    font-size: 19px;
    font-weight: 900;
}

.login-title p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 2;
}

/* ==========================================
   Forms
========================================== */

.form-group {
    min-width: 0;
    margin-bottom: 17px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 800;
}

.input-wrap {
    position: relative;
    min-width: 0;
}

.input-wrap > i:first-child {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #9698B1;
    font-size: 14px;

    pointer-events: none;
}

.form-control {
    display: block;

    width: 100%;
    min-width: 0;
    height: 50px;

    padding: 0 43px 0 42px;

    border: 1px solid #E6E8F1;
    border-radius: 14px;

    background: #FAFBFE;
    color: var(--text);

    font-size: 12px;

    outline: none;

    transition:
        border-color .2s,
        background .2s,
        box-shadow .2s;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--white);

    box-shadow:
        0 0 0 3px rgba(16, 1, 165, .07);
}

.form-control::placeholder {
    color: #A8ADBD;
}

.form-control:disabled {
    cursor: not-allowed;
    opacity: .7;
}

.password-toggle {
    position: absolute;

    left: 8px;
    top: 50%;

    transform: translateY(-50%);

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

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 9px;

    background: transparent;
    color: #8C90A7;
}

.password-toggle:hover {
    background: #F0EFFD;
    color: var(--primary);
}

/* ==========================================
   Buttons
========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 47px;
    max-width: 100%;

    padding: 11px 17px;

    border: 1px solid transparent;
    border-radius: 13px;

    font-size: 12px;
    font-weight: 800;

    line-height: 1.6;
    text-align: center;

    transition:
        transform .2s,
        box-shadow .2s,
        background .2s;
}

.btn-primary {
    color: var(--white);
    background: var(--gradient);

    box-shadow:
        0 7px 19px rgba(16, 1, 165, .17);
}

.btn-primary:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(16, 1, 165, .23);
}

.btn-yellow {
    color: var(--primary);
    background: var(--yellow);
}

.btn-yellow:hover {
    background: #EBDD00;
}

.btn-outline {
    color: var(--primary);
    background: #F0EFFD;
    border-color: #E1DEFF;
}

.btn-outline:hover {
    background: #E6E3FF;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn i {
    flex-shrink: 0;
    font-size: 13px;
}

/* ==========================================
   Alerts
========================================== */

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;

    border-radius: 13px;

    font-size: 11px;
    line-height: 2;

    overflow-wrap: anywhere;
}

.alert-error {
    color: #C42B43;
    background: #FFF0F0;
    border: 1px solid #FFD4D9;
}

.alert-info {
    color: var(--primary);
    background: #F0EFFF;
    border: 1px solid #DCD9FF;
}

/* ==========================================
   Dashboard
========================================== */

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 20px;
}

.dashboard-top > div {
    min-width: 0;
}

.dashboard-top h2 {
    margin: 0 0 4px;

    font-size: 18px;
    font-weight: 900;
}

.dashboard-top p {
    margin: 0;

    color: var(--muted);
    font-size: 10px;
}

.dashboard-hero {
    position: relative;

    margin-bottom: 18px;
    padding: 22px;

    border-radius: 23px;

    color: var(--white);
    background: var(--gradient);

    box-shadow:
        0 12px 30px rgba(16, 1, 165, .18);

    overflow: hidden;
}

.dashboard-hero::after {
    content: "";

    position: absolute;

    top: -70px;
    left: -40px;

    width: 160px;
    height: 160px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .08);

    pointer-events: none;
}

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

.dashboard-hero .hero-tag {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 5px 10px;

    border-radius: 100px;

    background: rgba(247, 227, 0, .16);
    color: var(--yellow);

    font-size: 10px;
    font-weight: 800;
}

.dashboard-hero h1 {
    margin: 13px 0 7px;

    font-size: 21px;
    font-weight: 900;
    line-height: 1.8;
}

.dashboard-hero p {
    margin: 0;

    color: rgba(255, 255, 255, .85);

    font-size: 11px;
    line-height: 2;
}

.section-title {
    margin: 25px 0 13px;

    font-size: 14px;
    font-weight: 900;
}

.section-title i {
    margin-left: 5px;
    color: var(--primary);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.quick-card {
    position: relative;

    min-width: 0;
    padding: 15px 12px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: 0 6px 20px rgba(16, 1, 165, .04);

    overflow: hidden;

    transition:
        transform .2s,
        border-color .2s,
        box-shadow .2s;
}

.quick-card:hover {
    transform: translateY(-2px);

    border-color: #C9C3FF;
    box-shadow: var(--shadow);
}

.quick-card:active {
    transform: scale(.985);
}

.quick-card > i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin-bottom: 10px;

    border-radius: 12px;

    background: #EFEDFF;
    color: var(--primary);

    font-size: 17px;
}

.quick-card strong {
    display: block;

    margin-bottom: 4px;

    font-size: 11px;
    font-weight: 900;

    overflow-wrap: anywhere;
}

.quick-card span {
    display: block;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.8;
}

/* ==========================================
   Footer
========================================== */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 30px;
    padding: 8px 0;

    color: #9298AC;
    font-size: 10px;

    text-align: center;
}

.footer-dot {
    width: 4px;
    height: 4px;

    border-radius: 50%;
    background: var(--yellow);
}

/* ==========================================
   School Management
========================================== */

.school-hero {
    margin-bottom: 16px;
}

.school-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 11px;
    margin-bottom: 20px;
}

.school-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 16px 10px;

    background: linear-gradient(145deg, #FFFFFF, #F8F7FF);

    border: 1px solid #E9E7FF;
    border-radius: 18px;

    box-shadow: 0 7px 22px rgba(16, 1, 165, .05);
}

.school-stat i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin-bottom: 7px;

    border-radius: 12px;

    background: #EFEDFF;
    color: var(--primary);

    font-size: 17px;
}

.school-stat strong {
    color: var(--primary);

    font-size: 23px;
    font-weight: 900;

    overflow-wrap: anywhere;
}

.school-stat span {
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

/* School Navigation */

.school-tabs {
    display: flex;
    gap: 5px;

    margin-bottom: 20px;
    padding: 5px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 15px;

    box-shadow: 0 5px 18px rgba(16, 1, 165, .04);
}

.school-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;
    min-width: 0;

    gap: 5px;
    padding: 10px 4px;

    border-radius: 11px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    text-align: center;

    transition: .2s;
}

.school-tabs a.active {
    color: var(--white);
    background: var(--gradient);

    box-shadow: 0 5px 14px rgba(16, 1, 165, .15);
}

.school-tabs a:not(.active):hover {
    background: #F2F0FF;
    color: var(--primary);
}

/* School Section Header */

.school-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin: 20px 0 14px;
}

.school-section-head > div {
    min-width: 0;
}

.school-section-head h3 {
    margin: 0 0 4px;

    font-size: 14px;
    font-weight: 900;
}

.school-section-head p {
    margin: 0;

    color: var(--muted);
    font-size: 10px;
}

/* Filters */

.school-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 10px;

    margin-bottom: 16px;
    padding: 14px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 17px;

    box-shadow: 0 6px 20px rgba(16, 1, 165, .04);
}

.school-select {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 46px;

    padding: 9px 12px;

    border: 1px solid #E6E8F1;
    border-radius: 12px;

    outline: none;

    background: #FAFBFE;
    color: var(--text);

    font-family: inherit;
    font-size: 12px;
}

.school-select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(16, 1, 165, .06);
}

.school-full {
    width: 100%;
}

/* Students List */

.school-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.student-row {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;
    padding: 12px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow: 0 4px 17px rgba(16, 1, 165, .035);

    transition: .2s;
}

.student-row:hover {
    border-color: #D7D3FF;
    box-shadow: 0 8px 22px rgba(16, 1, 165, .07);
}

.student-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 43px;
    height: 43px;

    border-radius: 13px;

    background: var(--yellow-gradient);
    color: var(--primary);

    font-size: 17px;
}

.student-info {
    flex: 1;
    min-width: 0;
}

.student-info strong {
    display: block;

    margin-bottom: 4px;

    font-size: 11px;
    font-weight: 900;

    overflow-wrap: anywhere;
}

.student-info span {
    display: block;

    color: var(--muted);
    font-size: 10px;

    overflow-wrap: anywhere;
}

.student-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 34px;
    height: 34px;

    border-radius: 11px;

    background: #F0EEFF;
    color: var(--primary);

    font-size: 12px;

    transition: .2s;
}

.student-edit-btn:hover {
    color: var(--white);
    background: var(--primary);
}

/* School Panels */

.school-panel {
    min-width: 0;

    margin-bottom: 17px;
    padding: 18px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(16, 1, 165, .045);
}

.school-panel-title {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 20px;
}

.school-panel-title > i {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 43px;
    height: 43px;

    border-radius: 13px;

    background: var(--gradient);
    color: var(--yellow);

    font-size: 17px;
}

.school-panel-title > div {
    min-width: 0;
}

.school-panel-title h3 {
    margin: 0 0 4px;

    font-size: 13px;
    font-weight: 900;
}

.school-panel-title p {
    margin: 0;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
}

.school-plain-input {
    padding-right: 13px;
    padding-left: 13px;
}

.school-textarea {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 170px;

    padding: 13px;

    border: 1px solid #E6E8F1;
    border-radius: 13px;

    outline: none;

    background: #FAFBFE;
    color: var(--text);

    font-family: inherit;
    font-size: 12px;
    line-height: 2;

    resize: vertical;
}

.school-textarea:focus {
    border-color: var(--primary);
    background: var(--white);

    box-shadow:
        0 0 0 3px rgba(16, 1, 165, .06);
}

/* School Help */

.school-help {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 16px;
    padding: 13px;

    border: 1px solid #E3DFFF;
    border-radius: 13px;

    background: linear-gradient(135deg, #F0EEFF, #FAF9FF);
    color: var(--primary);
}

.school-help > i {
    flex-shrink: 0;
    margin-top: 3px;

    font-size: 14px;
}

.school-help span {
    font-size: 10px;
    line-height: 2;
}

/* Import Preview */

.school-preview {
    display: flex;
    flex-direction: column;

    gap: 8px;

    max-height: 370px;

    margin-bottom: 17px;

    overflow-y: auto;
    overscroll-behavior: contain;
}

.preview-row {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;
    padding: 11px;

    background: #FAFBFE;

    border: 1px solid #EFF0F5;
    border-radius: 12px;
}

.preview-status {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 30px;
    height: 30px;

    border-radius: 9px;

    font-size: 12px;
}

.preview-status.valid {
    color: #16945A;
    background: #E5F9EF;
}

.preview-status.invalid {
    color: #D33A4B;
    background: #FFF0F0;
}

.preview-row > div {
    min-width: 0;
}

.preview-row strong {
    display: block;

    margin-bottom: 3px;

    font-size: 10px;
    overflow-wrap: anywhere;
}

.preview-row span {
    display: block;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.8;

    overflow-wrap: anywhere;
}

/* Empty State */

.school-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 32px 18px;

    background: var(--white);

    border: 1px dashed #D8D4F7;
    border-radius: 19px;

    text-align: center;
}

.school-empty > i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 59px;
    height: 59px;

    margin-bottom: 13px;

    border-radius: 18px;

    background: #F0EEFF;
    color: var(--primary);

    font-size: 23px;
}

.school-empty strong {
    font-size: 12px;
    font-weight: 900;
}

.school-empty p {
    margin: 7px 0 0;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
}

/* ==========================================
   Dashboard Improvements
========================================== */

.dashboard-page .school-stats {
    margin-top: 17px;
}

.dashboard-page .quick-card {
    position: relative;
    text-decoration: none;
}

.dashboard-page .quick-card::after {
    content: "";

    position: absolute;

    top: -35px;
    left: -35px;

    width: 75px;
    height: 75px;

    border-radius: 50%;

    background: rgba(247, 227, 0, .09);

    pointer-events: none;
}

.dashboard-page .school-stat:nth-child(2) i,
.dashboard-page .school-stat:nth-child(4) i {
    color: var(--primary);
    background: var(--yellow);
}

/* ==========================================
   Discipline Management
========================================== */

.discipline-page .app-container {
    padding-bottom: 42px;
}

.discipline-page .app-container,
.discipline-page .app-container * {
    min-width: 0;
}

.discipline-hero {
    position: relative;
    margin-bottom: 17px;
}

.discipline-hero-decoration {
    position: absolute;

    left: 18px;
    bottom: 17px;

    color: rgba(247, 227, 0, .2);

    font-size: 48px;

    transform: rotate(-18deg);

    pointer-events: none;
}

/* Discipline Statistics */

.discipline-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 11px;
    margin-bottom: 19px;
}

.discipline-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 16px 9px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 19px;

    box-shadow: 0 7px 23px rgba(16, 1, 165, .045);
}

.discipline-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin-bottom: 8px;

    border-radius: 13px;

    font-size: 17px;
}

.discipline-stat-icon.positive {
    color: var(--success);
    background: var(--success-bg);
}

.discipline-stat-icon.negative {
    color: var(--danger);
    background: var(--danger-bg);
}

.discipline-stat strong {
    color: var(--primary);

    font-size: 24px;
    font-weight: 900;

    line-height: 1.5;
    overflow-wrap: anywhere;
}

.discipline-stat span {
    margin-top: 4px;

    color: var(--muted);
    font-size: 10px;

    text-align: center;
}

/* Discipline Tabs */

.discipline-tabs {
    display: flex;
    gap: 5px;

    margin-bottom: 19px;
    padding: 5px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--white);

    box-shadow: 0 5px 18px rgba(16, 1, 165, .04);
}

.discipline-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;
    min-width: 0;

    gap: 5px;
    padding: 10px 4px;

    border-radius: 11px;

    color: #858AA3;

    font-size: 10px;
    font-weight: 800;

    text-align: center;

    transition: .2s;
}

.discipline-tabs a.active {
    color: var(--white);
    background: var(--gradient);

    box-shadow: 0 5px 14px rgba(16, 1, 165, .15);
}

.discipline-tabs a:not(.active):hover {
    color: var(--primary);
    background: #F1F0FF;
}

/* Discipline Panels */

.discipline-panel {
    min-width: 0;

    margin-bottom: 18px;
    padding: 18px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 21px;

    box-shadow: 0 8px 25px rgba(16, 1, 165, .05);
}

.discipline-panel-head {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 21px;
}

.discipline-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 44px;
    height: 44px;

    border-radius: 14px;

    color: var(--yellow);
    background: var(--gradient);

    font-size: 18px;
}

.discipline-panel-icon.yellow {
    color: var(--primary);
    background: var(--yellow-gradient);
}

.discipline-panel-head > div {
    min-width: 0;
}

.discipline-panel-head h3 {
    margin: 0 0 4px;

    font-size: 13px;
    font-weight: 900;
}

.discipline-panel-head p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.9;
}

.discipline-input-hint {
    margin-top: 6px;

    color: #9298AC;
    font-size: 10px;
    line-height: 1.9;
}

/* Discipline Notice */

.discipline-notice {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 18px;
    padding: 13px;

    border: 1px solid #E1DDFF;
    border-radius: 14px;

    background: linear-gradient(135deg, #F1EFFF, #FBFAFF);
}

.discipline-notice > i {
    flex-shrink: 0;

    margin-top: 3px;

    color: var(--primary);
    font-size: 17px;
}

.discipline-notice > div {
    min-width: 0;
}

.discipline-notice strong {
    display: block;

    margin-bottom: 4px;

    font-size: 11px;
}

.discipline-notice p {
    margin: 0;

    color: #666D8A;

    font-size: 10px;
    line-height: 2;
}

.discipline-notice.compact {
    padding: 12px;
}

/* Select All */

.discipline-select-all {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-bottom: 12px;
    padding: 12px;

    border: 1px solid #F4EB94;
    border-radius: 13px;

    background: linear-gradient(135deg, #FFFCE4, #FFFFFF);
}

.discipline-select-all label {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 11px;
    font-weight: 800;
}

.discipline-select-all input,
.discipline-student-check input {
    flex-shrink: 0;

    width: 17px;
    height: 17px;

    accent-color: var(--primary);

    cursor: pointer;
}

.discipline-select-all span {
    color: var(--primary);

    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

/* Bulk Students */

.discipline-bulk-list {
    display: flex;
    flex-direction: column;

    gap: 9px;

    max-height: 520px;
    padding: 2px;

    overflow-y: auto;
    overscroll-behavior: contain;
}

.discipline-bulk-row {
    padding: 12px;

    background: #FAFBFE;

    border: 1px solid #ECEEF5;
    border-radius: 15px;

    transition: background .2s, border-color .2s;
}

.discipline-bulk-row:has(input[data-student-check]:checked) {
    background: #F6F4FF;
    border-color: #CFC9FF;
}

.discipline-student-check {
    display: flex;
    align-items: center;

    gap: 9px;

    cursor: pointer;
}

.discipline-mini-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 35px;
    height: 35px;

    border-radius: 11px;

    color: var(--primary);
    background: var(--yellow);

    font-size: 13px;
}

.discipline-student-check > span:last-child {
    flex: 1;
    min-width: 0;
}

.discipline-student-check strong {
    display: block;

    font-size: 10px;
    font-weight: 900;

    overflow-wrap: anywhere;
}

.discipline-student-check small {
    display: block;

    margin-top: 3px;

    color: #8B90A6;
    font-size: 9px;

    overflow-wrap: anywhere;
}

.discipline-row-fields {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);

    gap: 8px;
    margin-top: 12px;
}

.discipline-row-fields > div {
    min-width: 0;
}

.discipline-row-fields label {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;
}

.discipline-small-input {
    display: block;

    width: 100%;
    min-width: 0;
    height: 39px;

    padding: 7px 9px;

    border: 1px solid #E4E6F0;
    border-radius: 10px;

    outline: none;

    background: var(--white);
    color: var(--text);

    font-family: inherit;
    font-size: 11px;
}

.discipline-small-input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(16, 1, 165, .06);
}

.discipline-submit {
    margin-top: 17px;
}

/* Discipline Preview */

.discipline-preview {
    border-color: #DCD7FF;
}

.discipline-preview-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 14px;
    padding: 12px;

    border-radius: 12px;

    background: #F4F2FF;
    color: #666D8A;

    font-size: 10px;
}

.discipline-preview-summary strong {
    color: var(--primary);
}

.discipline-preview-list {
    display: flex;
    flex-direction: column;

    gap: 8px;

    max-height: 370px;

    margin-bottom: 17px;

    overflow-y: auto;
    overscroll-behavior: contain;
}

.discipline-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 11px;

    border: 1px solid #EDEEF5;
    border-radius: 12px;

    background: #FCFCFE;
}

.discipline-preview-row > div {
    flex: 1;
    min-width: 0;
}

.discipline-preview-row strong {
    display: block;

    font-size: 10px;
    overflow-wrap: anywhere;
}

.discipline-preview-row small {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 9px;

    overflow-wrap: anywhere;
}

.discipline-score-pill {
    flex-shrink: 0;

    padding: 5px 9px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 900;

    direction: ltr;
    white-space: nowrap;
}

.discipline-score-pill.positive {
    color: #168B56;
    background: #E5F8ED;
}

.discipline-score-pill.negative {
    color: #D64556;
    background: #FFF0F2;
}

/* Discipline Types */

.discipline-types-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.discipline-type-row {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;
    padding: 12px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 15px;

    box-shadow: 0 4px 15px rgba(16, 1, 165, .035);
}

.discipline-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 39px;
    height: 39px;

    border-radius: 12px;

    font-size: 15px;
}

.discipline-type-icon.positive {
    color: var(--success);
    background: var(--success-bg);
}

.discipline-type-icon.negative {
    color: var(--danger);
    background: var(--danger-bg);
}

.discipline-type-info {
    flex: 1;
    min-width: 0;
}

.discipline-type-info strong {
    display: block;

    margin-bottom: 4px;

    font-size: 11px;
    font-weight: 900;

    overflow-wrap: anywhere;
}

.discipline-type-info span {
    color: var(--muted);
    font-size: 10px;
}

.discipline-status {
    flex-shrink: 0;

    padding: 7px 9px;

    border: none;
    border-radius: 9px;

    font-size: 9px;
    font-weight: 800;
}

.discipline-status.enabled {
    color: var(--success);
    background: var(--success-bg);
}

.discipline-status.disabled {
    color: #85899B;
    background: #F0F1F5;
}

/* ==========================================
   Animation
========================================== */

.fade-up {
    animation: fadeUp .45s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive
========================================== */

@media (min-width: 600px) {
    .app-container {
        padding-top: 30px;
        padding-bottom: 35px;
    }
}

@media (max-width: 380px) {
    .app-container {
        padding: 19px 13px 24px;
    }

    .brand-name {
        font-size: 35px;
    }

    .role-card {
        gap: 10px;
        padding: 13px;
    }

    .role-icon {
        width: 51px;
        height: 51px;
        border-radius: 15px;
        font-size: 21px;
    }

    .role-content h3 {
        font-size: 12px;
    }

    .role-content p {
        font-size: 9px;
    }

    .login-card {
        padding: 20px 15px;
    }

    .school-tabs a,
    .discipline-tabs a {
        gap: 4px;
        font-size: 9px;
    }

    .school-panel,
    .discipline-panel {
        padding: 14px;
    }

    .school-section-head .btn {
        padding: 9px 10px;
        font-size: 10px;
    }

    .discipline-row-fields {
        grid-template-columns: 75px minmax(0, 1fr);
    }

    .discipline-preview-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .discipline-type-row {
        gap: 8px;
        padding: 10px;
    }
}

@media (max-width: 330px) {
    .app-container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .quick-grid {
        gap: 8px;
    }

    .quick-card {
        padding: 12px 9px;
    }

    .discipline-row-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .discipline-tabs a i,
    .school-tabs a i {
        display: none;
    }
}

/* ==========================================
   Accessibility & Reduced Motion
========================================== */

:focus-visible {
    outline: 3px solid rgba(247, 227, 0, .9);
    outline-offset: 3px;
}

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


/* ======================================
   TARAZ - Student Search Results
====================================== */

.discipline-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;

    max-height: 310px;
    overflow-y: auto;

    margin-top: 12px;
    padding: 5px;

    border-radius: 14px;
}

.discipline-search-item {
    display: flex;
    align-items: center;
    gap: 11px;

    width: 100%;
    padding: 12px;

    border: 1px solid #E6E7F1;
    border-radius: 13px;

    background: #FFFFFF;
    color: #202035;

    text-align: right;
    font-family: inherit;

    cursor: pointer;
    transition: .2s;
}

.discipline-search-item:hover {
    border-color: #1001A5;
    background: #F8F7FF;
}

.discipline-search-item.selected {
    background: #F2F0FF;
    border-color: #1001A5;
}

.discipline-search-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;
    min-width: 39px;

    border-radius: 12px;

    background: #F1EFFF;
    color: #1001A5;

    font-size: 13px;
    font-weight: 900;
}

.discipline-search-info {
    display: flex;
    flex-direction: column;
    gap: 4px;

    flex: 1;
    min-width: 0;
}

.discipline-search-info strong {
    font-size: 12px;
    font-weight: 800;
}

.discipline-search-info small {
    font-size: 10px;
    color: #77798F;
}

.discipline-search-item > i {
    color: #1001A5;
    opacity: 0;
}

.discipline-search-item.selected > i {
    opacity: 1;
}

.discipline-search-empty {
    padding: 20px;
    text-align: center;

    color: #77798F;
    font-size: 12px;
}

#disciplineEditPanel[hidden],
.discipline-bulk-row[hidden] {
    display: none !important;
}



/* =========================================================
   TARAZ - STUDENT DISCIPLINE RECORDS
   ========================================================= */

.tr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(16, 1, 165, .05);
}

.tr-header-top {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.tr-header-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: rgba(16, 1, 165, .08);
    border-radius: 16px;
    font-size: 21px;
}

.tr-header-text h1 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 19px;
    font-weight: 900;
}

.tr-header-text p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.tr-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: #f3f3ff;
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: .2s ease;
}

.tr-back-button:hover {
    background: var(--primary);
    color: #fff;
}

/* Student profile */

.tr-profile {
    padding: 22px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(16, 1, 165, .04);
}

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

.tr-avatar {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--primary);
    background: linear-gradient(145deg, #f4f3ff, #e6e4ff);
    border: 1px solid #e3e0ff;
    border-radius: 21px;
    font-size: 29px;
}

.tr-profile-info {
    min-width: 0;
}

.tr-profile-info h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.tr-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.tr-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.tr-profile-meta i {
    color: var(--primary);
}

.tr-profile-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.tr-profile-detail span {
    color: var(--muted);
}

.tr-profile-detail strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

/* Score */

.tr-score-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    overflow: hidden;
    padding: 23px;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(125deg, #1001A5, #3427CF);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(16, 1, 165, .17);
}

.tr-score-icon {
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--primary);
    background: var(--yellow);
    border-radius: 19px;
    font-size: 26px;
}

.tr-score-info {
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tr-score-info > span {
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
}

.tr-score-info strong {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 900;
}

.tr-score-info small {
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.tr-score-decoration {
    position: absolute;
    left: 18px;
    bottom: -22px;
    color: rgba(255, 255, 255, .08);
    font-size: 100px;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* Statistics */

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

.tr-stat {
    min-width: 0;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 19px;
    box-shadow: 0 5px 18px rgba(16, 1, 165, .035);
}

.tr-stat-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 12px;
    font-size: 16px;
}

.tr-stat-total .tr-stat-icon {
    color: var(--primary);
    background: #efeeff;
}

.tr-stat-positive .tr-stat-icon {
    color: #13834c;
    background: #e6f8ed;
}

.tr-stat-negative .tr-stat-icon {
    color: #d13c43;
    background: #fff0f0;
}

.tr-stat > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tr-stat span {
    color: var(--muted);
    font-size: 11px;
}

.tr-stat strong {
    color: var(--text);
    font-size: 23px;
    font-weight: 900;
}

.tr-stat small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

/* History section */

.tr-history {
    margin-bottom: 25px;
}

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

.tr-section-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 7px;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.tr-section-heading h2 i {
    color: var(--primary);
}

.tr-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.tr-record-count {
    flex-shrink: 0;
    padding: 8px 11px;
    color: var(--primary);
    background: #f0efff;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
}

/* Filters */

.tr-filters {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 17px;
    margin-bottom: 17px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.tr-search-field {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 0 14px;
    color: var(--muted);
    background: #f8f8fc;
    border: 1px solid #e9e9f2;
    border-radius: 13px;
}

.tr-search-field:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(16, 1, 165, .07);
}

.tr-search-field input {
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 13px;
}

.tr-search-field input::placeholder {
    color: #a2a2b3;
}

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

.tr-filter-field,
.tr-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.tr-filter-field > span,
.tr-form-field > span {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.tr-filter-field select,
.tr-form-field input,
.tr-form-field select,
.tr-form-field textarea {
    width: 100%;
    min-width: 0;
    padding: 12px;
    color: var(--text);
    background: #fafaff;
    border: 1px solid #e4e4ef;
    border-radius: 12px;
    outline: 0;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

.tr-filter-field select:focus,
.tr-form-field input:focus,
.tr-form-field select:focus,
.tr-form-field textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(16, 1, 165, .07);
}

.tr-form-field textarea {
    resize: vertical;
    line-height: 1.9;
}

.tr-filter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    padding: 12px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.tr-filter-submit:hover {
    background: var(--primary-light);
}

.tr-clear-filters {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

.tr-clear-filters:hover {
    color: var(--primary);
}

/* Record cards */

.tr-record-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tr-record {
    min-width: 0;
    padding: 19px;
    background: #fff;
    border: 1px solid var(--border);
    border-right: 4px solid #d13c43;
    border-radius: 19px;
    box-shadow: 0 5px 20px rgba(16, 1, 165, .035);
    transition: box-shadow .2s ease, transform .2s ease;
}

.tr-record:hover {
    box-shadow: 0 9px 25px rgba(16, 1, 165, .07);
}

.tr-record-positive {
    border-right-color: #20a464;
}

.tr-record-negative {
    border-right-color: #e05259;
}

.tr-record-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tr-record-symbol {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #d13c43;
    background: #fff0f0;
    border-radius: 14px;
    font-size: 19px;
}

.tr-record-positive .tr-record-symbol {
    color: #13834c;
    background: #e6f8ed;
}

.tr-record-heading {
    flex: 1;
    min-width: 0;
}

.tr-record-heading h3 {
    margin: 2px 0 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.tr-record-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.tr-record-amount {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-shrink: 0;
    color: #d13c43;
    font-size: 13px;
    font-weight: 900;
}

.tr-record-positive .tr-record-amount {
    color: #13834c;
}

.tr-record-amount strong {
    font-size: 19px;
    font-weight: 900;
}

.tr-record-description {
    margin-top: 16px;
    padding: 13px;
    color: #626276;
    background: #f9f9fd;
    border: 1px solid #f0f0f7;
    border-radius: 12px;
    font-size: 12px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.tr-record-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 9px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #f0f0f5;
}

.tr-record-creator,
.tr-record-tracking {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.tr-record-creator i {
    color: var(--primary);
}

.tr-record-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #f0f0f5;
}

.tr-record-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    padding: 9px 13px;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.tr-action-edit {
    color: var(--primary);
    background: #f0efff;
}

.tr-action-edit:hover {
    background: #e4e1ff;
}

.tr-delete-form {
    margin: 0;
}

.tr-action-delete {
    color: #d13c43;
    background: #fff0f0;
}

.tr-action-delete:hover {
    background: #ffe2e2;
}

/* Empty state */

.tr-empty {
    padding: 38px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #dcdcec;
    border-radius: 22px;
}

.tr-empty-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    color: var(--primary);
    background: #f0efff;
    border-radius: 22px;
    font-size: 29px;
}

.tr-empty h3 {
    margin: 0 0 9px;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.tr-empty p {
    max-width: 300px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

/* Pagination */

.tr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
}

.tr-pagination a {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: .2s ease;
}

.tr-pagination a:hover {
    color: #fff;
    background: var(--primary);
}

/* Edit modal */

.tr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.tr-modal.is-open {
    display: flex;
}

.tr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 10, 40, .62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tr-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    background: #fff;
    border-radius: 23px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .2);
    animation: trModalEnter .22s ease-out;
}

@keyframes trModalEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tr-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 21px;
    border-bottom: 1px solid var(--border);
}

.tr-modal-header h2 {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
}

.tr-modal-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.tr-modal-close {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--muted);
    background: #f4f4f9;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}

.tr-modal-close:hover {
    color: #d13c43;
    background: #fff0f0;
}

.tr-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 21px;
}

.tr-modal-actions {
    display: flex;
    gap: 10px;
    padding: 17px 21px 21px;
    border-top: 1px solid var(--border);
}

.tr-modal-actions button {
    flex: 1;
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.tr-modal-cancel {
    color: var(--muted);
    background: #f2f2f8;
}

.tr-modal-cancel:hover {
    background: #e8e8f2;
}

.tr-modal-save {
    color: #fff;
    background: var(--primary);
}

.tr-modal-save:hover {
    background: var(--primary-light);
}

/* Responsive */

@media (max-width: 420px) {
    .tr-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .tr-back-button {
        width: 100%;
    }

    .tr-profile {
        padding: 17px;
    }

    .tr-avatar {
        width: 55px;
        height: 55px;
        border-radius: 17px;
        font-size: 24px;
    }

    .tr-profile-info h2 {
        font-size: 16px;
    }

    .tr-score-box {
        padding: 19px;
        gap: 13px;
    }

    .tr-score-icon {
        width: 49px;
        height: 49px;
        border-radius: 15px;
        font-size: 22px;
    }

    .tr-score-info strong {
        font-size: 28px;
    }

    .tr-stats {
        gap: 7px;
    }

    .tr-stat {
        padding: 12px 9px;
        border-radius: 15px;
    }

    .tr-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .tr-stat strong {
        font-size: 20px;
    }

    .tr-stat span {
        font-size: 10px;
    }

    .tr-stat small {
        font-size: 9px;
    }

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

    .tr-record {
        padding: 15px;
    }

    .tr-record-symbol {
        width: 37px;
        height: 37px;
        font-size: 16px;
    }

    .tr-record-heading h3 {
        font-size: 13px;
    }

    .tr-record-amount strong {
        font-size: 17px;
    }

    .tr-record-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .tr-modal {
        padding: 10px;
    }

    .tr-modal-dialog {
        max-height: calc(100dvh - 20px);
        border-radius: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-header *,
    .tr-record *,
    .tr-modal *,
    .tr-back-button,
    .tr-filter-submit {
        animation: none !important;
        transition: none !important;
    }
}

/* Student records list */

.trl-student-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.trl-student-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--white, #fff);
    border: 1px solid var(--border, #e8eaf0);
    border-radius: 18px;
    transition: border-color .2s ease, transform .2s ease;
}

.trl-student-card:hover {
    border-color: var(--primary, #1001A5);
    transform: translateY(-2px);
}

.trl-student-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(247, 227, 0, .22);
    color: var(--primary, #1001A5);
    font-size: 20px;
    font-weight: 800;
}

.trl-student-info {
    flex: 1;
    min-width: 0;
}

.trl-student-info h3 {
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text, #202438);
    overflow-wrap: anywhere;
}

.trl-student-info p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    color: var(--muted, #74798b);
    font-size: 12px;
}

.trl-student-info > span {
    display: block;
    color: var(--muted, #74798b);
    font-size: 11px;
}

.trl-student-action {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(16, 1, 165, .07);
    color: var(--primary, #1001A5);
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.trl-student-action:hover {
    background: var(--primary, #1001A5);
    color: #fff;
}

.tr-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 7px 11px;
    border-radius: 12px;
    background: rgba(247, 227, 0, .2);
    color: var(--primary, #1001A5);
    font-size: 12px;
    font-weight: 800;
}

.tr-clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--danger, #d9364f);
    font-size: 12px;
    text-decoration: none;
}

@media (max-width: 380px) {
    .trl-student-card {
        gap: 9px;
        padding: 12px;
    }

    .trl-student-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .trl-student-action {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trl-student-card,
    .trl-student-action {
        transition: none;
    }
}


/* =====================================================
   TARAZ | Records UI - Final Fix
   ===================================================== */

/* Page */

.student-records-page .app-container,
.student-records-list-page .app-container {
    max-width: 520px;
    padding-bottom: 35px;
}

/* Header */

.student-records-page .tr-header,
.student-records-list-page .tr-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;

    padding: 17px;
    margin-bottom: 16px;

    border-radius: 19px;
    background: #fff;

    border: 1px solid var(--border);

    box-shadow:
        0 5px 20px rgba(16, 1, 165, .035);
}

.student-records-page .tr-header-top,
.student-records-list-page .tr-header-top {
    width: 100%;
    min-width: 0;
}

.student-records-page .tr-header-text,
.student-records-list-page .tr-header-text {
    flex: 1;
    min-width: 0;
}

.student-records-page .tr-header-text h1,
.student-records-list-page .tr-header-text h1 {
    font-size: 17px;
}

.student-records-page .tr-header-text p,
.student-records-list-page .tr-header-text p {
    font-size: 11px;
}

.student-records-page .tr-back-button,
.student-records-list-page .tr-back-button {
    align-self: flex-start;

    width: auto;
    min-height: 35px;

    padding: 7px 12px;

    border-radius: 10px;
    font-size: 11px;
}

/* Profile */

.student-records-page .tr-profile {
    padding: 17px;
    margin-bottom: 12px;
    border-radius: 19px;
}

.student-records-page .tr-profile-main {
    gap: 12px;
}

.student-records-page .tr-avatar {
    width: 52px;
    height: 52px;

    border-radius: 15px;
    font-size: 22px;
}

.student-records-page .tr-profile-info {
    flex: 1;
    min-width: 0;
}

.student-records-page .tr-profile-info h2 {
    margin-bottom: 6px;
    font-size: 15px;
}

.student-records-page .tr-profile-meta {
    gap: 5px 12px;
}

.student-records-page .tr-profile-meta span {
    font-size: 10px;
}

/* Score */

.student-records-page .tr-score-box {
    min-height: 112px;

    padding: 18px;
    margin-bottom: 13px;

    border-radius: 20px;
}

.student-records-page .tr-score-icon {
    width: 49px;
    height: 49px;

    border-radius: 15px;
    font-size: 21px;
}

.student-records-page .tr-score-info {
    flex: 1;
    min-width: 0;
}

.student-records-page .tr-score-info > span {
    font-size: 11px;
}

.student-records-page .tr-score-info strong {
    font-size: 30px;
    line-height: 1.4;
}

.student-records-page .tr-score-info small {
    font-size: 10px;
}

/* Statistics */

.student-records-page .tr-stats {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
    margin-bottom: 24px;
}

.student-records-page .tr-stat {
    padding: 14px;
    border-radius: 17px;
}

.student-records-page .tr-stat-total {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 13px;

    background: #F6F5FF;
    border-color: #E4E0FF;
}

.student-records-page .tr-stat-total .tr-stat-icon {
    margin: 0;
}

.student-records-page .tr-stat strong {
    font-size: 21px;
}

.student-records-page .tr-stat span {
    font-size: 11px;
}

.student-records-page .tr-stat small {
    font-size: 10px;
}

/* Headings */

.student-records-page .tr-section-heading,
.student-records-list-page .tr-section-heading {
    gap: 10px;
    margin-bottom: 13px;
}

.student-records-page .tr-section-heading > div,
.student-records-list-page .tr-section-heading > div {
    flex: 1;
    min-width: 0;
}

.student-records-page .tr-section-heading h2,
.student-records-list-page .tr-section-heading h2 {
    font-size: 15px;
}

.student-records-page .tr-section-heading p,
.student-records-list-page .tr-section-heading p {
    font-size: 10px;
}

/* Records filters */

.student-records-page .tr-filters {
    padding: 14px;
    gap: 11px;
    border-radius: 17px;
}

.student-records-page .tr-filter-row {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;
}

/* Student list filters */

.student-records-list-page .tr-history-section {
    margin-bottom: 25px;
}

.student-records-list-page .tr-filter-form {
    display: flex;
    flex-direction: column;
    gap: 11px;

    padding: 14px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(16, 1, 165, .035);
}

.student-records-list-page .tr-search-box {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-height: 47px;

    padding: 0 13px;

    color: var(--muted);
    background: #FAFBFE;

    border: 1px solid #E6E8F1;
    border-radius: 12px;
}

.student-records-list-page .tr-search-box:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(16, 1, 165, .06);
}

.student-records-list-page .tr-search-box input {
    width: 100%;
    min-width: 0;
    min-height: 45px;

    padding: 10px 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-family: inherit;
    font-size: 12px;
}

.student-records-list-page .tr-filter-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    gap: 9px;
}

.student-records-list-page .tr-filter-row select {
    width: 100%;
    min-width: 0;
    min-height: 45px;

    padding: 9px 11px;

    border: 1px solid #E6E8F1;
    border-radius: 12px;

    background: #FAFBFE;
    color: var(--text);

    font-family: inherit;
    font-size: 12px;
}

.student-records-list-page .tr-filter-row .btn {
    min-height: 45px;
    padding: 9px 14px;
    white-space: nowrap;
}

/* Student list */

.student-records-list-page .trl-student-list {
    gap: 9px;
    margin-top: 15px;
}

.student-records-list-page .trl-student-card {
    display: flex;
    align-items: center;

    padding: 12px;
    gap: 11px;

    background: #fff;
    border-radius: 16px;

    box-shadow:
        0 4px 16px rgba(16, 1, 165, .03);
}

.student-records-list-page .trl-student-avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;

    border-radius: 13px;
    font-size: 18px;
}

.student-records-list-page .trl-student-info h3 {
    margin-bottom: 4px;
    font-size: 12px;
}

.student-records-list-page .trl-student-info p {
    margin-bottom: 3px;
    font-size: 10px;
}

.student-records-list-page .trl-student-info > span {
    font-size: 10px;
}

.student-records-list-page .trl-student-action {
    width: 35px;
    height: 35px;
    flex-basis: 35px;

    border-radius: 11px;
}

/* Empty list */

.student-records-list-page .tr-empty-state {
    margin-top: 15px;
    padding: 30px 17px;

    text-align: center;

    background: #fff;
    border: 1px dashed #DCDCEC;
    border-radius: 18px;
}

.student-records-list-page .tr-empty-state .tr-empty-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 13px;

    font-size: 24px;
    border-radius: 18px;
}

.student-records-list-page .tr-empty-state h3 {
    margin: 0 0 7px;
    font-size: 14px;
}

.student-records-list-page .tr-empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

/* Record cards */

.student-records-page .tr-record-list {
    gap: 11px;
}

.student-records-page .tr-record {
    padding: 15px;
    border-radius: 17px;
}

.student-records-page .tr-record-top {
    gap: 10px;
}

.student-records-page .tr-record-symbol {
    width: 38px;
    height: 38px;

    border-radius: 12px;
    font-size: 16px;
}

.student-records-page .tr-record-heading h3 {
    font-size: 13px;
}

.student-records-page .tr-record-amount {
    white-space: nowrap;
}

.student-records-page .tr-record-amount strong {
    font-size: 17px;
}

.student-records-page .tr-record-description {
    margin-top: 12px;
    padding: 11px;
    font-size: 11px;
}

/* Unknown records */

.student-records-page .tr-record-unknown {
    border-right-color: #A0A5B8;
}

.student-records-page .tr-record-unknown .tr-record-symbol {
    color: #72798F;
    background: #F0F1F5;
}

.student-records-page .tr-record-unknown .tr-record-amount {
    color: #72798F;
}

/* Pagination */

.student-records-page .tr-pagination,
.student-records-list-page .tr-pagination {
    gap: 12px;
    flex-wrap: wrap;
}

/* Small screens */

@media (max-width: 380px) {

    .student-records-page .tr-filter-row,
    .student-records-list-page .tr-filter-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .student-records-list-page .tr-filter-row .btn {
        width: 100%;
    }

    .student-records-page .tr-stat {
        padding: 11px;
    }

    .student-records-page .tr-stat strong {
        font-size: 19px;
    }

    .student-records-page .tr-record {
        padding: 12px;
    }

    .student-records-page .tr-record-top {
        gap: 7px;
    }
}


/* ==========================================
   TARAZ - SETTINGS
========================================== */

.settings-intro {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 24px 0;
    padding: 22px;
    background: linear-gradient(135deg, #1001A5, #3930D9);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 10px 28px rgba(16, 1, 165, 0.13);
}

.settings-intro-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-size: 24px;
}

.settings-intro h1 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.settings-intro p {
    margin: 0;
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
}

.settings-card {
    padding: 22px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(20, 20, 70, 0.035);
}

.settings-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
}

.settings-card-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    background: #eeedff;
    color: #1001A5;
    border-radius: 14px;
    font-size: 20px;
}

.settings-card-icon-sms {
    background: #fff9cf;
    color: #776600;
}

.settings-card-heading h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
}

.settings-card-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.settings-field {
    margin-bottom: 20px;
}

.settings-field:last-child {
    margin-bottom: 0;
}

.settings-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
}

.settings-field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-field input:focus {
    border-color: #1001A5;
    box-shadow: 0 0 0 3px rgba(16, 1, 165, 0.08);
}

.settings-field small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.settings-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    margin-bottom: 20px;
    background: #fff9df;
    border: 1px solid #f4e8a7;
    border-radius: 13px;
    color: #675600;
}

.settings-notice > i {
    margin-top: 3px;
    flex: 0 0 auto;
}

.settings-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 2;
}

.settings-notice-info {
    margin: 18px 0 0;
    background: #f1f5ff;
    border-color: #dce5ff;
    color: #263d7a;
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 0;
    cursor: pointer;
}

.settings-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-toggle-text strong {
    font-size: 13px;
}

.settings-toggle-text span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.settings-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 48px;
    width: 48px;
    height: 27px;
}

.settings-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.settings-switch-slider {
    position: absolute;
    inset: 0;
    background: #d6d8e2;
    border-radius: 30px;
    transition: background 0.2s;
}

.settings-switch-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.settings-switch input:checked + .settings-switch-slider {
    background: #1001A5;
}

.settings-switch input:checked + .settings-switch-slider::before {
    transform: translateX(-21px);
}

.settings-switch input:focus-visible + .settings-switch-slider {
    outline: 3px solid rgba(16, 1, 165, 0.2);
    outline-offset: 3px;
}

.settings-sms-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.settings-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.settings-status-dot.is-enabled {
    background: #16a34a;
}

.settings-status-dot.is-disabled {
    background: #9ca3af;
}

.settings-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.9;
}

.settings-alert-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.settings-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.settings-submit {
    margin: 24px 0;
}

.settings-submit .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
}

@media (max-width: 380px) {
    .settings-card {
        padding: 17px;
    }

    .settings-intro {
        padding: 17px;
    }

    .settings-toggle-row {
        gap: 10px;
    }
}



/* ==========================================
   TARAZ - STAFF MANAGEMENT
========================================== */

.staff-hero {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 24px 0;
    padding: 23px;
    color: #fff;
    background: linear-gradient(135deg, #1001A5, #3930D9);
    border-radius: 21px;
    box-shadow: 0 10px 28px rgba(16, 1, 165, .12);
}

.staff-hero-icon {
    width: 57px;
    height: 57px;
    flex: 0 0 57px;
    display: grid;
    place-items: center;
    font-size: 25px;
    background: rgba(255, 255, 255, .15);
    border-radius: 17px;
}

.staff-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    color: #F7E300;
}

.staff-hero h1 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.staff-hero p {
    margin: 0;
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .85);
}

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

.staff-stat {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 14px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.staff-stat-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    color: #1001A5;
    background: #eeedff;
    border-radius: 11px;
}

.staff-stat-green {
    color: #15803d;
    background: #dcfce7;
}

.staff-stat-gray {
    color: #64748b;
    background: #f1f5f9;
}

.staff-stat > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.staff-stat strong {
    font-size: 17px;
    font-weight: 800;
}

.staff-stat > div > span {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

.staff-panel {
    margin-bottom: 20px;
    padding: 21px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(20, 20, 70, .03);
}

.staff-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.staff-panel-heading h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 7px;
    font-size: 15px;
    font-weight: 800;
}

.staff-panel-heading h3 i {
    color: #1001A5;
}

.staff-panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.staff-total {
    flex-shrink: 0;
    padding: 7px 10px;
    color: #1001A5;
    background: #eeedff;
    border-radius: 10px;
    font-size: 11px;
}

.staff-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.staff-field {
    min-width: 0;
}

.staff-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 700;
}

.staff-field input {
    width: 100%;
    min-height: 47px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.staff-field input:focus {
    border-color: #1001A5;
    box-shadow: 0 0 0 3px rgba(16, 1, 165, .08);
}

.staff-field small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
}

.staff-field-full {
    grid-column: 1 / -1;
}

.staff-password-wrap {
    position: relative;
}

.staff-password-wrap input {
    padding-left: 48px;
}

.staff-password-wrap .password-toggle {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.staff-submit {
    width: 100%;
    min-height: 49px;
    justify-content: center;
    margin-top: 22px;
}

.staff-cancel {
    flex-shrink: 0;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
}

.staff-list {
    display: flex;
    flex-direction: column;
}

.staff-person {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f1f6;
}

.staff-person:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.staff-person-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    color: #1001A5;
    background: #eeedff;
    border-radius: 14px;
    font-size: 18px;
}

.staff-person-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.staff-person-info > strong {
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.staff-username {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 10px;
}

.staff-badge > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.staff-badge-active {
    color: #15803d;
    background: #f0fdf4;
}

.staff-badge-active > span {
    background: #16a34a;
}

.staff-badge-inactive {
    color: #64748b;
    background: #f1f5f9;
}

.staff-badge-inactive > span {
    background: #94a3b8;
}

.staff-person-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.staff-person-actions form {
    margin: 0;
}

.staff-action {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
}

.staff-action-edit {
    color: #1001A5;
    background: #eeedff;
}

.staff-action-disable {
    color: #a16207;
    background: #fef9c3;
}

.staff-action-enable {
    color: #15803d;
    background: #dcfce7;
}

.staff-action-delete {
    color: #b91c1c;
    background: #fee2e2;
}

.staff-action:focus-visible {
    outline: 2px solid #1001A5;
    outline-offset: 2px;
}

.staff-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 25px 12px;
    text-align: center;
}

.staff-empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    color: #1001A5;
    background: #eeedff;
    border-radius: 18px;
    font-size: 24px;
}

.staff-empty strong {
    font-size: 13px;
}

.staff-empty p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.staff-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.9;
}

.staff-alert-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.staff-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.staff-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    color: #334155;
    background: #f1f5ff;
    border: 1px solid #dce5ff;
    border-radius: 13px;
}

.staff-security-note i {
    margin-top: 3px;
    color: #1001A5;
}

.staff-security-note p {
    margin: 0;
    font-size: 11px;
    line-height: 2;
}

@media (min-width: 430px) {
    .staff-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .staff-panel {
        padding: 15px;
    }

    .staff-stats {
        gap: 6px;
    }

    .staff-stat {
        gap: 6px;
        padding: 10px 6px;
    }

    .staff-stat-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 11px;
    }

    .staff-stat > div > span {
        font-size: 9px;
    }

    .staff-person {
        gap: 7px;
    }

    .staff-person-avatar {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .staff-person-actions {
        gap: 3px;
    }

    .staff-action {
        width: 28px;
        height: 30px;
    }
}


/* =========================================
   TARAZ - STUDIO PANEL
========================================= */

.studio-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin: 18px 0;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.9;
}

.studio-alert.is-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.studio-alert.is-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.studio-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 6px 24px rgba(16, 1, 165, 0.045);
}

.studio-panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.studio-panel-heading h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.studio-panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.studio-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #1001A5;
    background: #f0efff;
    font-size: 20px;
}

.studio-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #f8f9ff;
    font-size: 13px;
}

.studio-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.studio-badge.is-on {
    color: #166534;
    background: #dcfce7;
}

.studio-badge.is-off {
    color: #991b1b;
    background: #fee2e2;
}

.studio-form-group {
    margin-bottom: 17px;
}

.studio-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.studio-form-group input,
.studio-form-group select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
}

.studio-form-group small,
.studio-toggle-row small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.studio-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fafaff;
    cursor: pointer;
}

.studio-toggle-row strong {
    font-size: 13px;
}

.studio-toggle-row input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    accent-color: #1001A5;
}

.studio-submit {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    margin-top: 5px;
}

.studio-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.studio-divider {
    height: 1px;
    background: var(--border);
    margin: 25px 0;
}

.studio-panel > h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.studio-help {
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

.studio-test-result {
    margin-top: 16px;
    padding: 14px;
    border-radius: 13px;
    background: #f8f9ff;
    font-size: 12px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.studio-test-result p {
    margin: 5px 0 0;
}

@media (max-width: 380px) {
    .studio-panel {
        padding: 13px;
    }

    .studio-toggle-row {
        padding: 12px;
    }
}