﻿@font-face{font-family:Vazirmatn;src:url('Vazirmatn-Regular.ttf') format('truetype');font-display:swap}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.teacher-panel-page,body.teacher-login-page,body.teacher-login-luxury-page{font-family:Vazirmatn,Tahoma,sans-serif;background:#07111f;color:#f8fafc;margin:0}
.teacher-wrapper,.teacher-dashboard-shell{width:min(1440px,94vw);margin:0 auto;padding:28px 0 56px}
.teacher-header,.teacher-card,.teacher-login-card,.teacher-stats-grid article{background:linear-gradient(135deg,rgba(15,23,42,.95),rgba(30,41,59,.9));border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 42px rgba(0,0,0,.22)}
.teacher-header{border-radius:30px;padding:22px;display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}
.teacher-profile,.teacher-brand{display:flex;align-items:center;gap:15px}
.teacher-profile img,.teacher-brand img{width:62px;height:62px;object-fit:contain;border-radius:18px;background:#fff;padding:6px}
.teacher-header h1,.teacher-login-card h1{margin:0 0 6px;font-size:26px;font-weight:950}
.teacher-header p,.teacher-login-card p,.teacher-help,.teacher-section-title p{margin:0;color:rgba(226,232,240,.74);line-height:1.9}
.teacher-actions{display:flex;gap:10px;flex-wrap:wrap}
.teacher-actions a,.teacher-actions button,.teacher-section-title button,.teacher-form button,.teacher-filter-actions button,.teacher-account-form button,.teacher-row-actions button,.teacher-request-admin-form button{border:0;border-radius:16px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;padding:12px 18px;font-weight:900;text-decoration:none;cursor:pointer;font-family:Vazirmatn,Tahoma,sans-serif}
.teacher-actions a{background:rgba(255,255,255,.1)}
.teacher-stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:18px 0}
.teacher-stats-grid article{border-radius:24px;padding:18px;text-align:right;position:relative;overflow:hidden}
.teacher-stats-grid strong{display:block;font-size:30px;color:#fff;margin:7px 0 3px;font-weight:1000}
.teacher-stats-grid small,.teacher-stats-grid span{color:#cbd5e1;font-weight:850}
.stat-icon{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1)}
.teacher-card{border-radius:28px;padding:22px;margin-bottom:18px}
.teacher-card h2{margin:0 0 10px;font-size:22px}
.teacher-section-title{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:15px}
.teacher-section-title.compact{align-items:flex-start}
.section-eyebrow{display:inline-flex;margin-bottom:8px;padding:6px 11px;border-radius:999px;background:rgba(37,99,235,.14);border:1px solid rgba(147,197,253,.20);color:#93c5fd;font-size:12px;font-weight:950}
.teacher-filter-grid{display:grid;grid-template-columns:1.2fr 1.2fr 1fr 1.2fr auto;gap:12px;align-items:end;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);padding:16px;border-radius:22px;margin-bottom:15px}
.teacher-date-row{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:8px}
.teacher-form label,.teacher-filter-grid label,.teacher-account-form label{display:block;color:#dbeafe;font-weight:900;font-size:13px;margin:10px 0 7px}
.teacher-form input,.teacher-form textarea,.teacher-form select,.teacher-filter-grid input,.teacher-filter-grid select,.teacher-account-form input,.teacher-request-admin-form input,.teacher-request-admin-form select{width:100%;border:1px solid rgba(148,163,184,.24);border-radius:16px;background:rgba(15,23,42,.78);color:#fff;padding:12px 13px;outline:none;font-family:Vazirmatn,Tahoma,sans-serif}
.teacher-form input:focus,.teacher-form textarea:focus,.teacher-form select:focus,.teacher-filter-grid input:focus,.teacher-filter-grid select:focus{border-color:rgba(96,165,250,.72);box-shadow:0 0 0 4px rgba(37,99,235,.13)}
.teacher-filter-actions{display:flex;gap:8px}
.teacher-filter-actions .secondary{background:rgba(148,163,184,.2)}
.teacher-grid-2,.teacher-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.teacher-table-wrap{overflow:auto;border-radius:20px;border:1px solid rgba(255,255,255,.08)}
.teacher-table-wrap table{width:100%;border-collapse:collapse;min-width:760px}
.teacher-table-wrap th,.teacher-table-wrap td{padding:13px;border-bottom:1px solid rgba(255,255,255,.08);text-align:right}
.teacher-table-wrap th{background:rgba(255,255,255,.06);color:#bae6fd;font-weight:950}
.teacher-status{display:inline-flex;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:950;background:rgba(14,165,233,.15);color:#bae6fd}
.teacher-status.cancelled,.teacher-status.rejected{background:rgba(239,68,68,.14);color:#fecaca}
.teacher-status.done,.teacher-status.approved{background:rgba(34,197,94,.14);color:#bbf7d0}
.teacher-status.pending{background:rgba(245,158,11,.14);color:#fde68a}

.teacher-dashboard-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(37,99,235,.20), transparent 30%),
    radial-gradient(circle at 88% 6%, rgba(124,58,237,.20), transparent 34%),
    radial-gradient(circle at 70% 92%, rgba(20,184,166,.10), transparent 34%),
    #050b16;
}

.teacher-dashboard-bg{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.teacher-grid-lines{position:absolute;inset:-2px;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:56px 56px;mask-image:radial-gradient(circle at 50% 50%,rgba(0,0,0,.86),transparent 72%);opacity:.36}
.teacher-orb{position:absolute;width:360px;height:360px;border-radius:999px;filter:blur(34px);opacity:.5;animation:teacherFloat 9s ease-in-out infinite}
.orb-1{right:-110px;top:90px;background:rgba(37,99,235,.36)}
.orb-2{left:-130px;top:160px;background:rgba(124,58,237,.34);animation-delay:-3s}
.orb-3{left:28%;bottom:-190px;background:rgba(20,184,166,.20);animation-delay:-6s}
@keyframes teacherFloat{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(18px,-26px,0) scale(1.06)}}

.teacher-dashboard-shell{position:relative;z-index:1}
.teacher-top-nav{position:sticky;top:12px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;padding:12px 14px;border-radius:24px;background:rgba(15,23,42,.70);border:1px solid rgba(255,255,255,.10);backdrop-filter:blur(18px);box-shadow:0 18px 40px rgba(0,0,0,.24)}
.teacher-nav-brand{display:flex;align-items:center;gap:12px}
.teacher-nav-brand img{width:46px;height:46px;object-fit:contain;border-radius:15px;background:#fff;padding:5px}
.teacher-nav-brand strong{display:block;color:#fff;font-weight:1000}
.teacher-nav-brand span{display:block;color:#94a3b8;font-size:12px;font-weight:800;margin-top:3px}
.teacher-nav-links{display:flex;align-items:center;gap:8px}
.teacher-nav-links a{color:#dbeafe;text-decoration:none;font-weight:900;font-size:13px;padding:10px 13px;border-radius:999px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08)}
.teacher-nav-actions{display:flex;gap:8px}
.teacher-nav-actions a,.teacher-nav-actions button{height:42px;border:0;border-radius:15px;padding:0 15px;color:#fff;text-decoration:none;font-family:Vazirmatn,Tahoma,sans-serif;font-weight:950;cursor:pointer;background:rgba(255,255,255,.10);display:inline-flex;align-items:center}
.teacher-nav-actions a{background:linear-gradient(135deg,#ef4444,#f97316)}

.teacher-hero-panel{display:flex;justify-content:space-between;align-items:stretch;gap:20px;margin-bottom:18px;padding:28px;border-radius:34px;background:linear-gradient(135deg,rgba(15,23,42,.82),rgba(30,41,59,.62));border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 80px rgba(0,0,0,.34);backdrop-filter:blur(18px);overflow:hidden;position:relative}
.teacher-hero-panel:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 0%,rgba(255,255,255,.12),transparent 24%),linear-gradient(135deg,rgba(37,99,235,.13),transparent 44%);pointer-events:none}
.teacher-hero-content{position:relative;z-index:1;display:flex;align-items:center;gap:20px;min-width:0}
.teacher-avatar-card{width:96px;height:96px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(226,232,240,.92));box-shadow:0 22px 46px rgba(0,0,0,.28)}
.teacher-avatar-card img{width:78px;height:78px;object-fit:contain}
.teacher-kicker{display:inline-flex;margin-bottom:12px;color:#93c5fd;background:rgba(37,99,235,.14);border:1px solid rgba(147,197,253,.22);padding:8px 13px;border-radius:999px;font-weight:950;font-size:13px}
.teacher-hero-text h1{margin:0;font-size:clamp(28px,4vw,48px);line-height:1.45;font-weight:1000;color:#fff}
.teacher-hero-text p{margin:10px 0 0;color:#cbd5e1;font-weight:850;line-height:2}
.teacher-quick-actions{position:relative;z-index:1;display:grid;grid-template-columns:1fr;gap:10px;min-width:210px;align-content:center}
.teacher-quick-actions a{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:17px;text-decoration:none;color:#fff;font-weight:950;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12)}
.teacher-quick-actions a:first-child{background:linear-gradient(135deg,#2563eb,#7c3aed);box-shadow:0 18px 34px rgba(37,99,235,.24)}

.teacher-dashboard-card{background:linear-gradient(135deg,rgba(15,23,42,.80),rgba(30,41,59,.62));border:1px solid rgba(255,255,255,.10);backdrop-filter:blur(16px);box-shadow:0 22px 55px rgba(0,0,0,.28)}
.teacher-dashboard-card .teacher-table-wrap{background:rgba(2,6,23,.22)}

.teacher-login-luxury-page{min-height:100vh;overflow-x:hidden;background:radial-gradient(circle at 12% 18%,rgba(37,99,235,.24),transparent 30%),radial-gradient(circle at 88% 12%,rgba(124,58,237,.22),transparent 34%),#050b16}
.teacher-login-bg{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.teacher-login-luxury-shell{position:relative;z-index:1;min-height:100vh;display:grid;place-items:center;padding:32px 18px}
.teacher-login-hero{width:min(1160px,96vw)}
.teacher-login-topbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-bottom:14px}
.teacher-mini-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#e0f2fe;text-decoration:none;font-weight:900;font-size:13px;backdrop-filter:blur(12px)}
.teacher-mini-link.muted{color:#cbd5e1;background:rgba(15,23,42,.45)}
.teacher-login-layout{display:grid;grid-template-columns:1.08fr .82fr;gap:22px;align-items:stretch}
.teacher-login-intro,.teacher-login-card-luxury{position:relative;min-height:620px;border-radius:34px;background:linear-gradient(135deg,rgba(15,23,42,.76),rgba(30,41,59,.58));border:1px solid rgba(255,255,255,.13);box-shadow:0 30px 80px rgba(0,0,0,.36);backdrop-filter:blur(22px);overflow:hidden}
.teacher-login-intro{padding:38px;display:flex;flex-direction:column;justify-content:space-between}
.teacher-logo-frame{position:relative;z-index:1;width:92px;height:92px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(226,232,240,.92));box-shadow:0 22px 46px rgba(0,0,0,.28)}
.teacher-logo-frame img{width:78px;height:78px;object-fit:contain}
.teacher-intro-copy{position:relative;z-index:1;max-width:650px;margin-top:70px}
.teacher-intro-copy h1{margin:0;font-size:clamp(31px,4vw,54px);line-height:1.45;letter-spacing:-.8px;font-weight:1000;color:#fff}
.teacher-intro-copy p{margin:18px 0 0;color:#cbd5e1;line-height:2.1;font-size:16px}
.teacher-feature-list{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.teacher-feature-list div{padding:16px;border-radius:22px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.11)}
.teacher-feature-list b{display:block;color:#fff;font-weight:1000;margin-bottom:6px}
.teacher-feature-list span{color:#bfdbfe;font-size:13px;font-weight:800}
.teacher-login-card-luxury{padding:34px;display:flex;flex-direction:column;justify-content:center}
.teacher-card-shine{position:absolute;inset:-1px;background:radial-gradient(circle at 20% 0%,rgba(255,255,255,.16),transparent 26%),linear-gradient(145deg,rgba(255,255,255,.08),transparent 36%);pointer-events:none}
.teacher-card-header{position:relative;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
.teacher-card-header span{color:#93c5fd;font-weight:950;font-size:13px}
.teacher-card-header h2{margin:5px 0 0;font-size:31px;font-weight:1000;color:#fff}
.teacher-lock-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(135deg,rgba(37,99,235,.20),rgba(124,58,237,.18));border:1px solid rgba(147,197,253,.24);color:#bfdbfe}
.teacher-login-error{position:relative;display:flex;gap:10px;align-items:flex-start;padding:13px 14px;border-radius:18px;background:rgba(239,68,68,.12);border:1px solid rgba(248,113,113,.30);color:#fecaca;margin-bottom:18px}
.teacher-login-error span{flex:0 0 auto;width:24px;height:24px;display:grid;place-items:center;border-radius:999px;background:rgba(239,68,68,.22);font-weight:1000}
.teacher-login-error p{margin:0;line-height:1.9;font-weight:850}
.teacher-login-form-luxury{position:relative;display:grid;gap:10px}
.teacher-login-form-luxury label{color:#dbeafe;font-weight:950;font-size:13px;margin-top:8px}
.teacher-input-wrap{position:relative}
.teacher-input-icon{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:#93c5fd;z-index:1}
.teacher-input-wrap input{width:100%;height:58px;border:1px solid rgba(148,163,184,.25);border-radius:20px;background:rgba(2,6,23,.45);color:#fff;outline:none;padding:0 50px 0 18px;font-family:Vazirmatn,Tahoma,sans-serif;font-size:15px;font-weight:850;transition:.22s ease}
.teacher-input-wrap input:focus{border-color:rgba(96,165,250,.72);box-shadow:0 0 0 5px rgba(37,99,235,.16),0 18px 36px rgba(0,0,0,.18);background:rgba(15,23,42,.68)}
.teacher-password-toggle{position:absolute;left:10px;top:50%;transform:translateY(-50%);border:0;height:38px;padding:0 13px;border-radius:14px;background:rgba(255,255,255,.09);color:#dbeafe;font-family:Vazirmatn,Tahoma,sans-serif;font-weight:900;cursor:pointer}
.teacher-login-submit{margin-top:14px;height:60px;border:0;border-radius:20px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-family:Vazirmatn,Tahoma,sans-serif;font-weight:1000;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 20px 42px rgba(37,99,235,.34);transition:.22s ease}
.teacher-login-note{position:relative;margin-top:20px;display:flex;gap:10px;align-items:flex-start;color:#cbd5e1;line-height:1.9;font-size:13px;font-weight:800;padding:13px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08)}
.teacher-login-note span{margin-top:8px;width:8px;height:8px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.14);flex:0 0 auto}

@media(max-width:1180px){.teacher-filter-grid{grid-template-columns:1fr 1fr}.teacher-filter-actions{grid-column:1/-1}.teacher-hero-panel{flex-direction:column}.teacher-quick-actions{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){.teacher-dashboard-grid,.teacher-grid-2,.teacher-login-layout{grid-template-columns:1fr}.teacher-login-intro,.teacher-login-card-luxury{min-height:auto}.teacher-login-intro{padding:26px}.teacher-intro-copy{margin-top:34px}.teacher-feature-list{grid-template-columns:1fr}.teacher-stats-grid{grid-template-columns:repeat(2,1fr)}.teacher-top-nav{position:relative;top:auto;flex-direction:column;align-items:stretch}.teacher-nav-links,.teacher-nav-actions{justify-content:center;flex-wrap:wrap}}
@media(max-width:620px){.teacher-dashboard-shell{width:94vw}.teacher-hero-content{flex-direction:column;align-items:flex-start}.teacher-quick-actions{grid-template-columns:1fr}.teacher-filter-grid,.teacher-date-row{grid-template-columns:1fr}.teacher-section-title{flex-direction:column;align-items:stretch}.teacher-login-luxury-shell{padding:18px 12px}.teacher-login-topbar{justify-content:center;flex-wrap:wrap}.teacher-login-card-luxury{padding:24px 18px}.teacher-card-header h2{font-size:26px}.teacher-logo-frame{width:76px;height:76px}.teacher-logo-frame img{width:62px;height:62px}}
@media print{.teacher-top-nav,.teacher-quick-actions,.teacher-filter-grid,.teacher-dashboard-grid{display:none}.teacher-dashboard-shell{width:100%;padding:0}.teacher-card,.teacher-hero-panel{box-shadow:none;border:1px solid #ddd;color:#111;background:#fff}body.teacher-panel-page{background:#fff;color:#111}}


/* v10 family matching report */
.teacher-match-info {
  margin: 0 0 14px;
}

.teacher-match-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(14, 165, 233, .10);
  border: 1px solid rgba(125, 211, 252, .20);
  color: #dbeafe;
  line-height: 1.9;
  font-size: 13px;
  font-weight: 850;
}

.teacher-match-chip b {
  color: #fff;
  font-weight: 1000;
}

.teacher-match-chip span {
  color: #bae6fd;
}

.teacher-match-chip em {
  font-style: normal;
  color: #bbf7d0;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .20);
  border-radius: 999px;
  padding: 4px 9px;
}

/* v11: fixed JS HTML entity encoding for teacher name */

/* v12 database/API loader */
.teacher-load-errors {
  margin-top: 12px;
  text-align: right;
}

.teacher-load-errors summary {
  cursor: pointer;
  color: #93c5fd;
  font-weight: 950;
}

.teacher-load-errors pre {
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  background: rgba(2, 6, 23, .72);
  color: #bfdbfe;
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
}

/* v14: all teacher classes + better edit labels */

/* v15: fixed filters and explicit room extraction */

/* v16: strict real schedule rows only */

/* v17: teacher_schedule_api bridge */

/* v20: jalali display + strict schedule source */

/* v26: client-side load.asp parser */

/* v27: strict clean schedule parser */

/* v28: filter button/date filter fix */

/* =========================================================
   v33 - Teacher Login Logo Visual Upgrade
   لوگوی صفحه ورود اساتید: بزرگ، مرکزی، هماهنگ با تم تیره/آبی
   ========================================================= */

.teacher-login-intro{
  padding:42px 38px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:28px;
  background:
    radial-gradient(circle at 50% 28%, rgba(37,99,235,.24), transparent 34%),
    radial-gradient(circle at 50% 56%, rgba(124,58,237,.18), transparent 38%),
    linear-gradient(145deg, rgba(8,18,34,.86), rgba(16,25,46,.64));
}

.teacher-login-intro:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.10), transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,.06), transparent 38%);
  pointer-events:none;
}

.teacher-login-intro:after{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  top:50%;
  left:50%;
  transform:translate(-50%,-58%);
  background:
    radial-gradient(circle, rgba(96,165,250,.16), rgba(37,99,235,.08) 36%, transparent 68%);
  filter:blur(2px);
  opacity:.95;
  pointer-events:none;
}

.teacher-logo-showcase{
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  width:270px;
  height:270px;
  margin:2px auto 4px;
}

.teacher-logo-showcase:before,
.teacher-logo-showcase:after{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:50%;
  border:1px solid rgba(147,197,253,.20);
  background:
    conic-gradient(from 130deg,
      rgba(96,165,250,.0),
      rgba(96,165,250,.28),
      rgba(124,58,237,.22),
      rgba(20,184,166,.18),
      rgba(96,165,250,.0));
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  padding:1px;
  opacity:.85;
  animation:teacherLogoSpin 14s linear infinite;
}

.teacher-logo-showcase:after{
  inset:0;
  opacity:.40;
  animation-duration:22s;
  animation-direction:reverse;
}

.teacher-logo-frame{
  position:relative;
  z-index:3;
  width:188px;
  height:188px;
  border-radius:46px;
  display:grid;
  place-items:center;
  background:
    linear-gradient(145deg, rgba(15,23,42,.76), rgba(30,41,59,.54)),
    radial-gradient(circle at 35% 22%, rgba(255,255,255,.16), transparent 32%);
  border:1px solid rgba(147,197,253,.26);
  box-shadow:
    0 36px 85px rgba(0,0,0,.42),
    0 0 0 12px rgba(37,99,235,.055),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -18px 38px rgba(2,6,23,.34);
  backdrop-filter:blur(18px);
  overflow:hidden;
}

.teacher-logo-frame:before{
  content:"";
  position:absolute;
  inset:-40%;
  background:linear-gradient(120deg, transparent 34%, rgba(255,255,255,.16), transparent 62%);
  transform:rotate(18deg) translateX(-46%);
  animation:teacherLogoShine 5.8s ease-in-out infinite;
}

.teacher-logo-frame img{
  position:relative;
  z-index:2;
  width:132px;
  height:132px;
  object-fit:contain;
  border-radius:0;
  background:transparent;
  padding:0;
  filter:
    drop-shadow(0 18px 26px rgba(0,0,0,.42))
    drop-shadow(0 0 16px rgba(96,165,250,.20));
}

.teacher-intro-copy{
  position:relative;
  z-index:2;
  max-width:620px;
  margin:0 auto;
}

.teacher-intro-copy .teacher-kicker{
  margin-bottom:14px;
}

.teacher-intro-copy h4,
.teacher-intro-copy h1{
  margin:0;
  color:#f8fafc;
  font-size:clamp(25px,2.9vw,40px);
  line-height:1.65;
  font-weight:1000;
  letter-spacing:-.4px;
  text-shadow:0 18px 38px rgba(0,0,0,.32);
}

.teacher-intro-copy p{
  max-width:560px;
  margin:18px auto 0;
  color:rgba(226,232,240,.82);
  line-height:2.15;
  font-size:15px;
}

.teacher-feature-list{
  z-index:2;
  width:100%;
  max-width:620px;
  grid-template-columns:repeat(3,1fr);
  margin-top:4px;
}

.teacher-feature-list div{
  text-align:center;
  background:rgba(15,23,42,.42);
  border:1px solid rgba(147,197,253,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}

@keyframes teacherLogoSpin{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}

@keyframes teacherLogoShine{
  0%,62%,100%{transform:rotate(18deg) translateX(-62%);opacity:0}
  18%,38%{opacity:1}
  40%{transform:rotate(18deg) translateX(62%);opacity:0}
}

@media(max-width:980px){
  .teacher-login-intro{padding:34px 24px}
  .teacher-logo-showcase{width:230px;height:230px}
  .teacher-logo-frame{width:162px;height:162px;border-radius:40px}
  .teacher-logo-frame img{width:116px;height:116px}
}

@media(max-width:620px){
  .teacher-logo-showcase{width:190px;height:190px}
  .teacher-logo-frame{width:136px;height:136px;border-radius:34px}
  .teacher-logo-frame img{width:96px;height:96px}
  .teacher-feature-list{grid-template-columns:1fr}
}


/* v50 - Teacher read-only finance report */
.teacher-finance-view-card{border-color:rgba(34,197,94,.20);box-shadow:0 22px 56px rgba(22,163,74,.08),0 18px 42px rgba(0,0,0,.22)}
.teacher-finance-note{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 14px;padding:14px 16px;border-radius:20px;background:rgba(16,185,129,.10);border:1px solid rgba(52,211,153,.18);color:#d1fae5;line-height:1.9}
.teacher-finance-note strong{color:#86efac}
.teacher-finance-filter-grid{grid-template-columns:1.2fr 1.2fr 1fr 1fr auto}
.teacher-finance-rates{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}
.teacher-finance-rate-chip{padding:14px 16px;border-radius:20px;background:rgba(15,23,42,.72);border:1px solid rgba(147,197,253,.14)}
.teacher-finance-rate-chip span{display:block;color:#94a3b8;font-size:12px;font-weight:900;margin-bottom:7px}
.teacher-finance-rate-chip strong{display:block;color:#e0f2fe;font-size:15px;font-weight:1000}
.teacher-finance-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0 16px}
.teacher-finance-summary-grid article{padding:16px;border-radius:22px;background:linear-gradient(135deg,rgba(15,23,42,.85),rgba(30,41,59,.72));border:1px solid rgba(255,255,255,.10)}
.teacher-finance-summary-grid span{display:block;color:#94a3b8;font-size:12px;font-weight:900;margin-bottom:8px}
.teacher-finance-summary-grid strong{display:block;color:#fff;font-size:18px;font-weight:1000;line-height:1.7}
.teacher-finance-table-wrap table{min-width:1100px}
.teacher-finance-table-wrap td strong{color:#bbf7d0}
@media(max-width:1100px){.teacher-finance-filter-grid{grid-template-columns:1fr 1fr}.teacher-finance-rates,.teacher-finance-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.teacher-finance-filter-grid,.teacher-finance-rates,.teacher-finance-summary-grid{grid-template-columns:1fr}.teacher-finance-note{align-items:flex-start}}

/* v51 - clearer teacher finance totals */
.teacher-finance-summary-grid article.teacher-finance-total-card{grid-column:span 2;background:linear-gradient(135deg,rgba(22,163,74,.26),rgba(37,99,235,.16));border-color:rgba(134,239,172,.28);box-shadow:0 18px 40px rgba(22,163,74,.10)}
.teacher-finance-summary-grid article.teacher-finance-total-card strong{font-size:24px;color:#bbf7d0}
.teacher-finance-summary-grid article em{display:block;margin-top:6px;color:#bae6fd;font-size:12px;font-style:normal;font-weight:800;line-height:1.8}
@media(max-width:700px){.teacher-finance-summary-grid article.teacher-finance-total-card{grid-column:span 1}}


/* v52 - لوگوی پنل اساتید بدون قاب سفید و هماهنگ با پس‌زمینه تیره */
.teacher-nav-brand img{
  width:52px !important;
  height:52px !important;
  padding:0 !important;
  border-radius:999px !important;
  background:transparent !important;
  border:1px solid rgba(147,197,253,.20) !important;
  box-shadow:
    0 12px 26px rgba(0,0,0,.34),
    0 0 0 6px rgba(37,99,235,.055),
    0 0 28px rgba(96,165,250,.12) !important;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.32));
}

.teacher-avatar-card{
  width:110px !important;
  height:110px !important;
  padding:0 !important;
  border-radius:34px !important;
  background:
    radial-gradient(circle at 38% 26%, rgba(96,165,250,.18), transparent 46%),
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,41,59,.34)) !important;
  border:1px solid rgba(147,197,253,.22) !important;
  box-shadow:
    0 24px 50px rgba(0,0,0,.34),
    0 0 0 8px rgba(37,99,235,.045),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
  overflow:hidden !important;
  backdrop-filter:blur(14px);
}

.teacher-avatar-card img{
  width:104px !important;
  height:104px !important;
  padding:0 !important;
  border-radius:30px !important;
  background:transparent !important;
  object-fit:contain !important;
  filter:
    drop-shadow(0 18px 24px rgba(0,0,0,.36))
    drop-shadow(0 0 16px rgba(96,165,250,.18));
}

.teacher-logo-frame{
  background:
    radial-gradient(circle at 35% 22%, rgba(96,165,250,.20), transparent 36%),
    linear-gradient(145deg, rgba(15,23,42,.70), rgba(30,41,59,.44)) !important;
  border:1px solid rgba(147,197,253,.24) !important;
  box-shadow:
    0 30px 70px rgba(0,0,0,.38),
    0 0 0 10px rgba(37,99,235,.045),
    inset 0 1px 0 rgba(255,255,255,.12) !important;
  overflow:hidden !important;
}

.teacher-logo-frame img{
  background:transparent !important;
  padding:0 !important;
  border-radius:0 !important;
}

/* v53 - Rental availability checker */
.rental-availability-box {
  margin: 12px 0 16px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: #e5e7eb;
  line-height: 1.9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.rental-availability-box strong {
  display: block;
  font-weight: 900;
  margin-bottom: 2px;
}

.rental-availability-box span {
  display: block;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.rental-availability-free {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.44), rgba(15, 23, 42, 0.72));
}

.rental-availability-free strong { color: #86efac; }

.rental-availability-busy {
  border-color: rgba(248, 113, 113, 0.58);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.43), rgba(15, 23, 42, 0.78));
}

.rental-availability-busy strong { color: #fca5a5; }

.rental-availability-idle strong { color: #bae6fd; }

.rental-conflict-list {
  margin-top: 9px;
  display: grid;
  gap: 6px;
}

.rental-conflict-list b {
  color: #f8fafc;
  font-size: 0.9rem;
}

.rental-conflict-list em {
  display: block;
  font-style: normal;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.32);
  color: #e2e8f0;
  font-size: 0.88rem;
}

.teacher-form button.is-disabled,
.teacher-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

/* v49 settlement history for teacher finance */
.teacher-settlement-history{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08)}
.teacher-settled-badge,.teacher-unsettled-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:950;white-space:nowrap}
.teacher-settled-badge{background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.25);color:#bbf7d0}
.teacher-unsettled-badge{background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.25);color:#fde68a}
.teacher-settlement-date{margin-top:5px;color:#94a3b8;font-size:12px;line-height:1.7}

/* =========================================================
   RESPONSIVE FINAL PATCH v60 - Teacher panel + teacher finance
   Data-safe: CSS only. No request/settlement data changes.
   ========================================================= */
.teacher-dashboard-shell,.teacher-wrapper,.teacher-card,.teacher-hero-panel,.teacher-dashboard-grid{min-width:0}
.teacher-table-wrap,.teacher-finance-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.teacher-table-wrap table{min-width:780px}.teacher-finance-table-wrap table{min-width:1120px}
.teacher-card,.teacher-rate-chip,.teacher-finance-rate-chip,.teacher-finance-summary-grid article{overflow-wrap:anywhere}
.teacher-actions a,.teacher-actions button,.teacher-filter-actions button,.teacher-form button,.teacher-nav-links a,.teacher-nav-actions a{white-space:normal;line-height:1.7}

@media(max-width:980px){
  .teacher-dashboard-shell,.teacher-wrapper{width:min(100%,94vw);padding-top:16px}
  .teacher-top-nav{position:relative!important;top:auto!important;flex-direction:column;align-items:stretch;text-align:center;border-radius:22px;padding:15px}
  .teacher-nav-brand{justify-content:center;flex-direction:column}.teacher-nav-links,.teacher-nav-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}.teacher-nav-links a,.teacher-nav-actions a{width:100%;justify-content:center;text-align:center}
  .teacher-dashboard-grid,.teacher-grid-2{grid-template-columns:1fr!important}
  .teacher-finance-filter-grid{grid-template-columns:1fr 1fr!important}.teacher-finance-rates,.teacher-finance-summary-grid{grid-template-columns:1fr 1fr!important}
  .teacher-table-wrap::before,.teacher-finance-table-wrap::before{content:"برای مشاهده کامل جدول، آن را به چپ و راست بکشید";display:block;margin:0 0 8px;padding:9px 11px;border-radius:13px;background:rgba(56,189,248,.12);border:1px solid rgba(56,189,248,.22);color:#bae6fd;font-size:12px;font-weight:900;text-align:right}
}
@media(max-width:700px){
  .teacher-header,.teacher-hero-panel,.teacher-section-title{flex-direction:column!important;align-items:stretch!important;text-align:right}
  .teacher-profile,.teacher-brand,.teacher-hero-content{flex-direction:column!important;align-items:flex-start!important}
  .teacher-actions,.teacher-filter-actions{display:grid!important;grid-template-columns:1fr;gap:8px}.teacher-actions a,.teacher-actions button,.teacher-filter-actions button{width:100%;text-align:center;justify-content:center;min-height:44px}
  .teacher-filter-grid,.teacher-date-row,.teacher-finance-filter-grid,.teacher-finance-rates,.teacher-finance-summary-grid{grid-template-columns:1fr!important}
  .teacher-stats-grid,.teacher-quick-actions{grid-template-columns:1fr!important}
  .teacher-card{padding:16px!important;border-radius:22px!important}.teacher-card-header h2{font-size:22px!important;line-height:1.6}
  .teacher-finance-summary-grid article.teacher-finance-total-card{grid-column:span 1!important}
  .teacher-finance-table-wrap table{min-width:980px}.teacher-table-wrap table{min-width:720px}
}
@media(max-width:420px){
  .teacher-dashboard-shell,.teacher-wrapper{width:100%;padding:12px 10px 34px}.teacher-top-nav{border-radius:18px}.teacher-nav-links,.teacher-nav-actions{grid-template-columns:1fr!important}
  .teacher-finance-table-wrap table{min-width:920px}.teacher-table-wrap table{min-width:680px}
}


/* =========================================================
   RESPONSIVE HOTFIX v61 - Teacher finance mobile card view
   Fixes vertical/broken table text on phones. Data-safe CSS only.
   ========================================================= */
.teacher-finance-table-wrap table,
.teacher-finance-table-wrap thead,
.teacher-finance-table-wrap tbody,
.teacher-finance-table-wrap tr,
.teacher-finance-table-wrap th,
.teacher-finance-table-wrap td{
  overflow-wrap:normal!important;
  word-break:normal!important;
}
.teacher-finance-table-wrap th,
.teacher-finance-table-wrap td{
  white-space:nowrap!important;
  vertical-align:middle;
}
.teacher-finance-table-wrap td:nth-child(2),
.teacher-finance-table-wrap td:nth-child(8){
  white-space:normal!important;
  min-width:130px;
}
.teacher-finance-table-wrap td:nth-child(12){min-width:118px}

@media(max-width:700px){
  .teacher-finance-view-card .teacher-table-wrap.teacher-finance-table-wrap{
    overflow:visible!important;
    border:0!important;
    background:transparent!important;
  }
  .teacher-finance-view-card .teacher-table-wrap.teacher-finance-table-wrap::before{
    content:"گزارش مالی در موبایل به‌صورت کارت نمایش داده می‌شود."!important;
    margin:0 0 12px!important;
    padding:10px 12px!important;
    border-radius:14px!important;
    background:rgba(56,189,248,.12)!important;
    border:1px solid rgba(56,189,248,.22)!important;
    color:#bae6fd!important;
    font-size:12px!important;
    font-weight:900!important;
    text-align:right!important;
  }
  .teacher-finance-view-card .teacher-finance-table-wrap table,
  .teacher-finance-view-card .teacher-finance-table-wrap tbody,
  .teacher-finance-view-card .teacher-finance-table-wrap tr,
  .teacher-finance-view-card .teacher-finance-table-wrap td{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  .teacher-finance-view-card .teacher-finance-table-wrap thead{
    display:none!important;
  }
  .teacher-finance-view-card .teacher-finance-table-wrap tbody{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .teacher-finance-view-card .teacher-finance-table-wrap tr{
    padding:12px!important;
    border:1px solid rgba(148,163,184,.18)!important;
    border-radius:20px!important;
    background:linear-gradient(135deg,rgba(15,23,42,.92),rgba(30,41,59,.72))!important;
    box-shadow:0 16px 34px rgba(0,0,0,.18)!important;
  }
  .teacher-finance-view-card .teacher-finance-table-wrap td{
    position:relative!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:14px!important;
    padding:9px 0!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.07)!important;
    white-space:normal!important;
    text-align:left!important;
    line-height:1.9!important;
    color:#e5e7eb!important;
  }
  .teacher-finance-view-card .teacher-finance-table-wrap td:last-child{border-bottom:0!important}
  .teacher-finance-view-card .teacher-finance-table-wrap td::before{
    content:attr(data-label);
    flex:0 0 44%;
    max-width:44%;
    color:#bae6fd;
    font-weight:950;
    text-align:right;
    line-height:1.9;
  }
  .teacher-finance-view-card .teacher-finance-table-wrap td:empty::after{content:"-"}
  .teacher-finance-view-card .teacher-finance-table-wrap td strong{font-size:15px;color:#bbf7d0}
  .teacher-finance-view-card .teacher-settled-badge,
  .teacher-finance-view-card .teacher-unsettled-badge{white-space:nowrap!important}
  .teacher-finance-view-card .teacher-settlement-date{text-align:left}
}

@media(max-width:420px){
  .teacher-finance-view-card .teacher-finance-table-wrap td{gap:10px;font-size:13px}
  .teacher-finance-view-card .teacher-finance-table-wrap td::before{flex-basis:47%;max-width:47%;font-size:12px}
}

/* teacher student editor v127 */
.teacher-students-editor{width:100%;min-height:150px;border:1px solid rgba(148,163,184,.28);border-radius:18px;background:rgba(5,13,28,.72);color:#fff;padding:14px 16px;font-family:inherit;line-height:2;resize:vertical;outline:none;}
.teacher-students-editor:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.12);}
.teacher-form-help{color:#adc0d5;font-size:.86rem;line-height:1.9;margin:8px 0 0;}
.teacher-student-names{margin-top:5px;color:#cfe8ff;font-size:.82rem;line-height:1.8;max-width:260px;}
@media(max-width:720px){.teacher-students-editor{min-height:190px;font-size:.95rem;}}

/* v129 - نمایش بدهی و تسویه دانشجو در پنل استاد */
.teacher-payment-summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(236,253,245,.96),rgba(219,234,254,.9));
  border:1px solid rgba(34,197,94,.2);
  color:#14532d;
  font-size:.82rem;
  font-weight:800;
  line-height:1.8;
}
.teacher-student-debt-preview{margin:12px 0 14px;}
.teacher-student-debt-card{
  border:1px solid rgba(30,64,175,.14);
  border-radius:20px;
  background:rgba(255,255,255,.86);
  box-shadow:0 16px 36px rgba(15,23,42,.08);
  overflow:hidden;
}
.teacher-student-debt-title{
  padding:12px 16px;
  font-weight:900;
  color:#102a43;
  background:linear-gradient(135deg,rgba(239,246,255,.95),rgba(236,253,245,.9));
  border-bottom:1px solid rgba(30,64,175,.1);
}
.teacher-student-debt-card table{width:100%;border-collapse:collapse;}
.teacher-student-debt-card th,
.teacher-student-debt-card td{padding:10px 12px;border-bottom:1px solid rgba(15,23,42,.08);text-align:right;font-size:.88rem;}
.teacher-student-debt-card th{background:rgba(248,250,252,.9);font-weight:900;color:#334155;}
.student-debt-settled strong{color:#047857;}
.student-debt-partial strong{color:#b45309;}
.student-debt-debt strong{color:#b91c1c;}
@media (max-width: 720px){
  .teacher-student-debt-card{overflow-x:auto;}
  .teacher-student-debt-card table{min-width:680px;}
}


/* v130 - نمایش بستانکاری دانشجو */
.teacher-student-debt-card tr.student-debt-credit td{
  background:rgba(59,130,246,.08);
}
.teacher-student-debt-card tr.student-debt-credit strong{
  color:#1d4ed8;
}

/* v137 teacher finance and student debt table */
.teacher-payment-summary{color:#dff7ff;font-weight:900;line-height:1.9;}
.teacher-payment-detail-mini{margin-top:8px;}
.teacher-payment-detail-mini .teacher-student-debt-card{padding:8px;border-radius:14px;background:rgba(15,23,42,.45);border:1px solid rgba(56,189,248,.16);}
.teacher-payment-detail-mini .teacher-student-debt-title{font-size:12px;color:#7dd3fc;font-weight:900;margin-bottom:6px;}
.teacher-payment-detail-mini table{width:100%;font-size:12px;border-collapse:separate;border-spacing:0 4px;}
.teacher-payment-detail-mini th,.teacher-payment-detail-mini td{padding:5px 6px;}
.student-debt-settled strong{color:#86efac;}
.student-debt-credit strong{color:#fde68a;}
.student-debt-partial strong{color:#fdba74;}
.student-debt-debt strong{color:#fca5a5;}

/* ================= v138 - teacher schedule readable table ================= */
.teacher-table-wrap{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch;}
#teacherScheduleTable{width:100%!important;min-width:1180px!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;}
#teacherScheduleTable th,#teacherScheduleTable td{vertical-align:top!important;line-height:1.9!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;padding:14px 12px!important;}
#teacherScheduleTable th{font-size:.9rem!important;color:#dff7ff!important;text-align:center!important;}
#teacherScheduleTable td{font-size:.88rem!important;text-align:center!important;}
#teacherScheduleTable th:nth-child(1),#teacherScheduleTable td:nth-child(1){width:92px!important;}
#teacherScheduleTable th:nth-child(2),#teacherScheduleTable td:nth-child(2){width:128px!important;}
#teacherScheduleTable th:nth-child(3),#teacherScheduleTable td:nth-child(3){width:94px!important;}
#teacherScheduleTable th:nth-child(4),#teacherScheduleTable td:nth-child(4){width:110px!important;}
#teacherScheduleTable th:nth-child(5),#teacherScheduleTable td:nth-child(5){width:92px!important;direction:ltr!important;}
#teacherScheduleTable th:nth-child(6),#teacherScheduleTable td:nth-child(6){width:150px!important;}
#teacherScheduleTable th:nth-child(7),#teacherScheduleTable td:nth-child(7){width:350px!important;text-align:right!important;}
#teacherScheduleTable th:nth-child(8),#teacherScheduleTable td:nth-child(8){width:105px!important;}
#teacherScheduleTable th:nth-child(9),#teacherScheduleTable td:nth-child(9){width:110px!important;}
#teacherScheduleTable .teacher-payment-summary{display:block!important;width:100%!important;padding:9px 12px!important;border-radius:16px!important;background:rgba(14,165,233,.10)!important;border:1px solid rgba(125,211,252,.22)!important;color:#e0f2fe!important;text-align:center!important;font-size:.83rem!important;}
#teacherScheduleTable .teacher-payment-detail-mini{display:block!important;max-width:100%!important;overflow:auto!important;margin-top:10px!important;border-radius:16px!important;}
#teacherScheduleTable .teacher-payment-detail-mini .teacher-student-debt-card{min-width:320px!important;background:rgba(2,6,23,.30)!important;}
#teacherScheduleTable .teacher-payment-detail-mini table{min-width:300px!important;}
#teacherScheduleTable .teacher-payment-detail-mini th,#teacherScheduleTable .teacher-payment-detail-mini td{padding:6px 8px!important;font-size:12px!important;white-space:nowrap!important;}
#teacherScheduleTable .teacher-student-names{max-width:none!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:5px!important;margin-top:8px!important;color:#bfdbfe!important;}
@media(max-width:760px){#teacherScheduleTable{min-width:1040px!important;}#teacherScheduleTable th,#teacherScheduleTable td{font-size:.82rem!important;padding:11px 9px!important;}}

/* ================= v139 - readable teacher schedule table/payment column ================= */
.teacher-table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch!important;
  border-radius:22px!important;
}
#teacherScheduleTable{
  min-width:1180px!important;
  width:max-content!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:auto!important;
}
#teacherScheduleTable th,
#teacherScheduleTable td{
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  vertical-align:middle!important;
  line-height:1.9!important;
}
#teacherScheduleTable th:nth-child(5),
#teacherScheduleTable td:nth-child(5){
  min-width:360px!important;
  max-width:430px!important;
}
#teacherScheduleTable th:nth-child(6),
#teacherScheduleTable td:nth-child(6){
  min-width:150px!important;
}
#teacherScheduleTable .teacher-payment-summary{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0 auto 8px!important;
  padding:8px 12px!important;
  border-radius:16px!important;
  background:rgba(14,165,233,.12)!important;
  border:1px solid rgba(125,211,252,.26)!important;
  color:#e0f2fe!important;
  text-align:center!important;
  font-size:13px!important;
  line-height:1.8!important;
}
#teacherScheduleTable .teacher-payment-detail-mini{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding-bottom:4px!important;
}
#teacherScheduleTable .teacher-payment-detail-mini .teacher-student-debt-card{
  min-width:340px!important;
  max-width:100%!important;
  padding:8px!important;
  border-radius:16px!important;
  background:rgba(2,6,23,.34)!important;
  border:1px solid rgba(56,189,248,.20)!important;
}
#teacherScheduleTable .teacher-payment-detail-mini table{
  width:100%!important;
  min-width:330px!important;
  table-layout:auto!important;
}
#teacherScheduleTable .teacher-payment-detail-mini th,
#teacherScheduleTable .teacher-payment-detail-mini td{
  padding:6px 8px!important;
  white-space:nowrap!important;
  font-size:12px!important;
  text-align:right!important;
}
@media(max-width:760px){
  #teacherScheduleTable{min-width:1050px!important;}
  #teacherScheduleTable th:nth-child(5),
  #teacherScheduleTable td:nth-child(5){min-width:320px!important;}
}

/* ================= v140 - teacher schedule payment column scroll/readability ================= */
.teacher-panel .table-wrap,
.teacher-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;}
.teacher-panel table{min-width:1180px!important;}
.teacher-payment-detail-mini{max-width:460px!important;overflow-x:auto!important;}
.teacher-payment-detail-mini .teacher-student-debt-card{min-width:420px!important;}
.teacher-payment-detail-mini table{min-width:390px!important;}
.teacher-payment-detail-mini th,.teacher-payment-detail-mini td{white-space:nowrap!important;line-height:1.8!important;}


/* ================= v142 - readable student payment status in teacher finance ================= */
.teacher-payment-summary-dark,
.teacher-finance-view-card .teacher-payment-summary{
  display:block!important;
  width:100%!important;
  padding:9px 12px!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,rgba(14,116,144,.28),rgba(30,64,175,.22))!important;
  border:1px solid rgba(125,211,252,.28)!important;
  color:#e0f2fe!important;
  text-align:center!important;
  font-weight:950!important;
  line-height:1.9!important;
  white-space:normal!important;
}
.teacher-finance-students-mini{
  margin-top:10px!important;
  width:100%!important;
  max-width:520px!important;
  overflow-x:auto!important;
  padding-bottom:4px!important;
  -webkit-overflow-scrolling:touch!important;
}
.teacher-finance-students-mini .teacher-match-chip{
  background:rgba(14,165,233,.10)!important;
  border:1px solid rgba(125,211,252,.22)!important;
  color:#e0f2fe!important;
  border-radius:14px!important;
  padding:10px 12px!important;
}
.teacher-finance-students-mini .teacher-student-debt-card{
  min-width:500px!important;
  background:linear-gradient(135deg,rgba(2,6,23,.72),rgba(15,23,42,.86))!important;
  border:1px solid rgba(56,189,248,.24)!important;
  box-shadow:0 12px 24px rgba(0,0,0,.20)!important;
}
.teacher-finance-students-mini .teacher-student-debt-title{
  color:#bae6fd!important;
  background:rgba(14,165,233,.13)!important;
  border-bottom:1px solid rgba(125,211,252,.18)!important;
}
.teacher-finance-students-mini .teacher-student-debt-card th{
  background:rgba(30,41,59,.92)!important;
  color:#e0f2fe!important;
  white-space:nowrap!important;
  text-align:right!important;
}
.teacher-finance-students-mini .teacher-student-debt-card td{
  background:rgba(15,23,42,.64)!important;
  color:#f8fafc!important;
  border-bottom:1px solid rgba(148,163,184,.14)!important;
  white-space:nowrap!important;
  text-align:right!important;
}
.teacher-finance-students-mini .student-debt-settled td{background:rgba(5,150,105,.14)!important;}
.teacher-finance-students-mini .student-debt-settled strong{color:#86efac!important;}
.teacher-finance-students-mini .student-debt-credit td{background:rgba(37,99,235,.16)!important;}
.teacher-finance-students-mini .student-debt-credit strong{color:#93c5fd!important;}
.teacher-finance-students-mini .student-debt-partial td{background:rgba(217,119,6,.16)!important;}
.teacher-finance-students-mini .student-debt-partial strong{color:#fdba74!important;}
.teacher-finance-students-mini .student-debt-debt td{background:rgba(185,28,28,.15)!important;}
.teacher-finance-students-mini .student-debt-debt strong{color:#fca5a5!important;}
#teacherFinanceDetailsTable th:nth-child(12),
#teacherFinanceDetailsTable td:nth-child(12){min-width:540px!important;max-width:620px!important;}

/* ================= v143 - final readable student balance cards in teacher panel ================= */
#teacherFinanceDetailsTable td[data-label="وضعیت پرداخت دانشجویان"],
#teacherScheduleTable td:nth-child(7){
  min-width:520px!important;
  vertical-align:top!important;
}
.teacher-finance-students-mini,
.teacher-payment-detail-mini{
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  padding:0!important;
}
.teacher-student-empty-status{
  background:rgba(15,23,42,.74)!important;
  border:1px solid rgba(125,211,252,.24)!important;
  color:#dbeafe!important;
  border-radius:16px!important;
  padding:12px 14px!important;
  text-align:center!important;
  font-weight:900!important;
}
.teacher-student-status-card{
  width:100%!important;
  min-width:0!important;
  background:linear-gradient(135deg,rgba(2,6,23,.84),rgba(15,23,42,.92))!important;
  border:1px solid rgba(56,189,248,.24)!important;
  box-shadow:0 16px 34px rgba(0,0,0,.24)!important;
  border-radius:18px!important;
  padding:0!important;
  overflow:hidden!important;
}
.teacher-student-status-card .teacher-student-debt-title{
  display:block!important;
  padding:10px 14px!important;
  color:#e0f2fe!important;
  background:linear-gradient(90deg,rgba(14,165,233,.20),rgba(30,64,175,.14))!important;
  border-bottom:1px solid rgba(125,211,252,.20)!important;
  font-size:.86rem!important;
  font-weight:950!important;
  text-align:center!important;
}
.teacher-student-status-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
  padding:10px!important;
}
.teacher-student-status-item{
  border-radius:16px!important;
  padding:11px 12px!important;
  border:1px solid rgba(148,163,184,.18)!important;
  background:rgba(15,23,42,.72)!important;
  color:#f8fafc!important;
  text-align:right!important;
}
.teacher-student-status-item .student-status-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:9px!important;
}
.teacher-student-status-item .student-status-head strong{
  color:#ffffff!important;
  font-size:.95rem!important;
  font-weight:950!important;
  line-height:1.7!important;
}
.teacher-student-status-item .student-status-head span{
  flex:0 0 auto!important;
  border-radius:999px!important;
  padding:5px 10px!important;
  font-size:.76rem!important;
  font-weight:950!important;
  line-height:1.5!important;
  border:1px solid transparent!important;
}
.teacher-student-status-item .student-status-money{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
}
.teacher-student-status-item .student-status-money em{
  background:rgba(2,6,23,.34)!important;
  border:1px solid rgba(148,163,184,.12)!important;
  border-radius:12px!important;
  padding:7px 8px!important;
  color:#cbd5e1!important;
  font-style:normal!important;
  font-size:.77rem!important;
  line-height:1.7!important;
  white-space:normal!important;
}
.teacher-student-status-item .student-status-money b{
  display:block!important;
  margin-top:2px!important;
  color:#fff!important;
  font-size:.82rem!important;
  font-weight:950!important;
}
.teacher-student-status-item .student-status-note{
  margin-top:7px!important;
  color:#cbd5e1!important;
  font-size:.78rem!important;
  line-height:1.8!important;
}
.teacher-student-status-item.student-debt-settled{
  background:linear-gradient(135deg,rgba(5,150,105,.24),rgba(6,78,59,.34))!important;
  border-color:rgba(134,239,172,.36)!important;
}
.teacher-student-status-item.student-debt-settled .student-status-head span{
  color:#dcfce7!important;
  background:rgba(22,101,52,.78)!important;
  border-color:rgba(134,239,172,.45)!important;
}
.teacher-student-status-item.student-debt-partial{
  background:linear-gradient(135deg,rgba(217,119,6,.24),rgba(120,53,15,.34))!important;
  border-color:rgba(253,186,116,.38)!important;
}
.teacher-student-status-item.student-debt-partial .student-status-head span{
  color:#fff7ed!important;
  background:rgba(194,65,12,.78)!important;
  border-color:rgba(253,186,116,.45)!important;
}
.teacher-student-status-item.student-debt-debt{
  background:linear-gradient(135deg,rgba(185,28,28,.24),rgba(127,29,29,.34))!important;
  border-color:rgba(252,165,165,.38)!important;
}
.teacher-student-status-item.student-debt-debt .student-status-head span{
  color:#fff1f2!important;
  background:rgba(153,27,27,.82)!important;
  border-color:rgba(252,165,165,.48)!important;
}
.teacher-student-status-item.student-debt-credit{
  background:linear-gradient(135deg,rgba(37,99,235,.24),rgba(30,64,175,.34))!important;
  border-color:rgba(147,197,253,.38)!important;
}
.teacher-student-status-item.student-debt-credit .student-status-head span{
  color:#eff6ff!important;
  background:rgba(29,78,216,.82)!important;
  border-color:rgba(147,197,253,.48)!important;
}
.teacher-student-status-item.student-debt-debt .student-status-balance b{color:#fecaca!important;}
.teacher-student-status-item.student-debt-partial .student-status-balance b{color:#fed7aa!important;}
.teacher-student-status-item.student-debt-credit .student-status-balance b{color:#bfdbfe!important;}
.teacher-student-status-item.student-debt-settled .student-status-balance b{color:#bbf7d0!important;}

@media(max-width:900px){
  #teacherFinanceDetailsTable td[data-label="وضعیت پرداخت دانشجویان"],
  #teacherScheduleTable td:nth-child(7){min-width:420px!important;}
  .teacher-student-status-item .student-status-money{grid-template-columns:1fr!important;}
}


/* ================= v147 - teacher panel responsive/PWA polish ================= */
html,body{overflow-x:hidden!important;-webkit-text-size-adjust:100%;}
.teacher-panel-page *{box-sizing:border-box;}
.teacher-dashboard-wrapper,.teacher-panel-wrapper,.teacher-main,.teacher-card{max-width:100%!important;min-width:0!important;}
.teacher-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;border-radius:18px!important;}
.teacher-table-wrap table{width:max-content!important;min-width:980px!important;border-collapse:separate!important;}
.teacher-table-wrap th,.teacher-table-wrap td{white-space:normal!important;vertical-align:middle!important;line-height:1.85!important;overflow-wrap:break-word!important;}
.teacher-table-wrap th{white-space:nowrap!important;}
#teacherScheduleTable td:nth-child(7),#teacherFinanceDetailsTable td[data-label="وضعیت پرداخت دانشجویان"]{min-width:420px!important;max-width:560px!important;}
.teacher-student-status-card{min-width:360px!important;}
.teacher-student-status-list{max-height:none!important;overflow:visible!important;}
.teacher-student-status-item .student-status-head{align-items:flex-start!important;}
.teacher-student-status-item .student-status-money{grid-template-columns:repeat(3,minmax(0,1fr))!important;}

@media(max-width:900px){
  .teacher-dashboard-header,.teacher-header,.teacher-card-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;}
  .teacher-actions,.teacher-header-actions,.teacher-card-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;width:100%!important;}
  .teacher-actions a,.teacher-actions button,.teacher-header-actions a,.teacher-header-actions button,.teacher-card-actions button{width:100%!important;justify-content:center!important;text-align:center!important;min-height:44px!important;}
  .teacher-table-wrap::before{content:"برای مشاهده کامل جدول، به چپ و راست بکشید";display:block;margin:0 0 8px;padding:8px 10px;border-radius:12px;background:rgba(14,165,233,.12);border:1px solid rgba(56,189,248,.23);color:#bae6fd;font-size:12px;font-weight:900;text-align:right;}
  .teacher-table-wrap table{min-width:860px!important;font-size:13px!important;}
  #teacherScheduleTable td:nth-child(7),#teacherFinanceDetailsTable td[data-label="وضعیت پرداخت دانشجویان"]{min-width:390px!important;}
  .teacher-student-status-card{min-width:340px!important;}
  .teacher-student-status-item .student-status-money{grid-template-columns:1fr!important;}
}
@media(max-width:560px){
  .teacher-panel-page{font-size:13px!important;}
  .teacher-dashboard-wrapper,.teacher-panel-wrapper{padding:8px!important;}
  .teacher-card{border-radius:16px!important;padding:12px!important;}
  .teacher-table-wrap table{min-width:760px!important;font-size:12.5px!important;}
  .teacher-table-wrap th,.teacher-table-wrap td{padding:8px!important;}
  #teacherScheduleTable td:nth-child(7),#teacherFinanceDetailsTable td[data-label="وضعیت پرداخت دانشجویان"]{min-width:340px!important;}
  .teacher-student-status-card{min-width:310px!important;}
  .teacher-student-status-item{padding:10px!important;}
  .teacher-student-status-item .student-status-head{flex-direction:column!important;gap:6px!important;}
  .teacher-student-status-item .student-status-head span{width:100%!important;text-align:center!important;}
}
@media(display-mode:standalone){.teacher-dashboard-wrapper,.teacher-panel-wrapper{padding-top:max(10px,env(safe-area-inset-top))!important;padding-bottom:max(10px,env(safe-area-inset-bottom))!important;}}

/* v155 - clearer final finance status after teacher/student payments */
.teacher-finance-transfer-mini{
  display:block; min-width:150px; line-height:1.9; color:#dbeafe;
  background:rgba(30,64,175,.22); border:1px solid rgba(147,197,253,.28); border-radius:14px; padding:8px 10px;
}
#teacherFinanceSummaryCards article:nth-child(1){
  background:linear-gradient(135deg, rgba(34,197,94,.2), rgba(59,130,246,.16));
  border-color:rgba(125,211,252,.45);
}
#teacherFinanceSummaryCards article strong{line-height:1.9;}
.teacher-finance-students-mini .student-debt-card,
.teacher-payment-detail-mini .student-debt-card{
  color:#fff !important;
}
.teacher-finance-students-mini .student-debt-card em,
.teacher-payment-detail-mini .student-debt-card em{color:inherit !important; opacity:.95;}
@media (max-width: 760px){
  .teacher-finance-transfer-mini{min-width:0; width:100%; box-sizing:border-box;}
}

/* ================= v157 - final finance report readability/fix ================= */
.teacher-finance-view-card .teacher-finance-summary-grid article{
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}
.teacher-finance-view-card .teacher-finance-summary-grid article strong{
  line-height: 1.9;
  white-space: normal;
  word-break: normal;
}
.teacher-finance-view-card .teacher-finance-total-card{
  border-color: rgba(34,197,94,.45) !important;
  background: linear-gradient(135deg, rgba(22,101,52,.36), rgba(15,23,42,.92)) !important;
}
.teacher-finance-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#teacherFinanceDetailsTable,
#teacherSettlementsTable{
  min-width: 1180px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}
#teacherFinanceDetailsTable th,
#teacherFinanceDetailsTable td,
#teacherSettlementsTable th,
#teacherSettlementsTable td{
  vertical-align: middle;
  line-height: 1.9;
  white-space: normal;
  word-break: keep-all;
}
#teacherFinanceDetailsTable td[data-label="وضعیت پرداخت دانشجویان"]{
  min-width: 330px;
}
.teacher-finance-tx-type,
.tx-paid,
.tx-received{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  white-space: nowrap;
}
.teacher-finance-tx-type{
  background: rgba(59,130,246,.16);
  color: #bfdbfe;
  border: 1px solid rgba(96,165,250,.28);
}
.tx-paid{
  background: rgba(22,163,74,.18);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,.34);
}
.tx-received{
  background: rgba(245,158,11,.16);
  color: #fde68a;
  border: 1px solid rgba(245,158,11,.34);
}
.teacher-payment-summary-dark{
  color: #dff7ff !important;
  background: rgba(14,165,233,.16) !important;
  border-color: rgba(56,189,248,.32) !important;
}
.teacher-finance-students-mini .teacher-student-status-item,
.teacher-payment-detail-mini .teacher-student-status-item{
  background: rgba(15,23,42,.82) !important;
  border: 1px solid rgba(148,163,184,.24) !important;
}
.teacher-finance-students-mini .student-status-head strong,
.teacher-payment-detail-mini .student-status-head strong{
  color: #fff !important;
}
.teacher-finance-students-mini .student-status-money,
.teacher-payment-detail-mini .student-status-money{
  color: #dbeafe !important;
}
.teacher-finance-students-mini .student-debt-settled,
.teacher-payment-detail-mini .student-debt-settled{
  border-color: rgba(34,197,94,.45) !important;
  background: rgba(20,83,45,.36) !important;
}
.teacher-finance-students-mini .student-debt-debt,
.teacher-payment-detail-mini .student-debt-debt{
  border-color: rgba(248,113,113,.45) !important;
  background: rgba(127,29,29,.34) !important;
}
.teacher-finance-students-mini .student-debt-partial,
.teacher-payment-detail-mini .student-debt-partial{
  border-color: rgba(251,191,36,.48) !important;
  background: rgba(113,63,18,.34) !important;
}
.teacher-finance-students-mini .student-debt-credit,
.teacher-payment-detail-mini .student-debt-credit{
  border-color: rgba(56,189,248,.48) !important;
  background: rgba(12,74,110,.34) !important;
}
@media (max-width: 768px){
  #teacherFinanceDetailsTable,
  #teacherSettlementsTable{ min-width: 980px; }
  .teacher-finance-view-card .teacher-finance-summary-grid article{ min-height: 84px; }
}

/* v200 - Teacher profile + schedule filter responsive patch */
.teacher-profile-card-v200 {
  border-color: rgba(56,189,248,.32) !important;
  background: linear-gradient(145deg, rgba(15,23,42,.94), rgba(7,20,36,.94)) !important;
}
.teacher-profile-form-v200 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.teacher-profile-form-v200 .wide { grid-column: 1 / -1; }
.teacher-profile-form-v200 label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-weight: 800;
}
.teacher-profile-form-v200 input,
.teacher-profile-form-v200 textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(56,189,248,.24);
  border-radius: 18px;
  background: rgba(15,23,42,.86);
  color: #f8fafc;
  padding: 13px 15px;
  font: inherit;
  outline: none;
}
.teacher-profile-form-v200 input:focus,
.teacher-profile-form-v200 textarea:focus {
  border-color: rgba(56,189,248,.72);
  box-shadow: 0 0 0 3px rgba(56,189,248,.12);
}
.teacher-profile-actions-v200 {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.tp200-profile-msg {
  margin-top: 10px;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,.24);
  color: #e2e8f0;
  background: rgba(15,23,42,.72);
  font-weight: 800;
}
.tp200-profile-msg.ok { border-color: rgba(34,197,94,.45); color:#bbf7d0; background: rgba(20,83,45,.28); }
.tp200-profile-msg.warn { border-color: rgba(245,158,11,.45); color:#fde68a; background: rgba(120,53,15,.25); }
.tp200-profile-msg.error { border-color: rgba(248,113,113,.45); color:#fecaca; background: rgba(127,29,29,.25); }
.teacher-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#teacherScheduleTable .teacher-student-names {
  margin-top: 6px;
  color: #a7f3d0;
  font-size: .9em;
  line-height: 1.8;
  white-space: normal;
  overflow-wrap: anywhere;
}
#teacherScheduleTable td,
#teacherScheduleTable th {
  vertical-align: middle;
  white-space: normal;
}
@media (max-width: 760px) {
  .teacher-dashboard-shell { padding-left: 12px !important; padding-right: 12px !important; }
  .teacher-profile-form-v200 { grid-template-columns: 1fr; }
  .teacher-filter-grid,
  .teacher-finance-filter-grid { grid-template-columns: 1fr !important; }
  .teacher-date-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .teacher-filter-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .teacher-filter-actions button { width: 100%; }
  .teacher-table-wrap { overflow: visible; }
  #teacherScheduleTable,
  #teacherScheduleTable thead,
  #teacherScheduleTable tbody,
  #teacherScheduleTable tr,
  #teacherScheduleTable th,
  #teacherScheduleTable td { display: block; width: 100%; box-sizing: border-box; }
  #teacherScheduleTable thead { display: none; }
  #teacherScheduleTable tr {
    margin: 0 0 14px;
    border: 1px solid rgba(56,189,248,.22);
    border-radius: 20px;
    background: rgba(15,23,42,.72);
    padding: 10px;
  }
  #teacherScheduleTable td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 0 !important;
    padding: 10px 8px !important;
    text-align: right;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  #teacherScheduleTable td::before {
    content: attr(data-label);
    color: #7dd3fc;
    font-weight: 900;
    white-space: nowrap;
  }
  #teacherScheduleTable .teacher-student-names { font-size: .86rem; max-height: none; }
  .teacher-hero-panel, .teacher-card { border-radius: 22px !important; }
}

/* ================= v201 - Teacher profile collapse + clean layout ================= */
.teacher-profile-header-v201{
  align-items: center;
  gap: 16px;
}
.teacher-profile-header-actions-v201{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.teacher-profile-body-v201{
  overflow:hidden;
  max-height:1600px;
  opacity:1;
  transform:translateY(0);
  transition:max-height .28s ease, opacity .22s ease, transform .22s ease, margin .22s ease;
}
.teacher-profile-body-v201.is-collapsed{
  max-height:0;
  opacity:0;
  transform:translateY(-8px);
  margin:0!important;
  pointer-events:none;
}
#tp201ToggleProfile{
  background:linear-gradient(135deg,#2563eb,#7c3aed)!important;
  color:#fff!important;
  border-color:rgba(147,197,253,.45)!important;
}
@media (max-width: 700px){
  .teacher-profile-header-v201{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .teacher-profile-header-actions-v201{
    justify-content:stretch!important;
  }
  .teacher-profile-header-actions-v201 button{
    flex:1 1 140px;
    width:auto!important;
  }
}


/* ================= v202 - Teacher profile clean title + button styling ================= */
.teacher-profile-header-actions-v201 .tp-profile-btn,
.teacher-profile-actions-v200 .tp-profile-btn,
#tp200ReloadProfile,
#tp200ResetProfile,
#tp201ToggleProfile{
  appearance:none;
  border:1px solid rgba(125,211,252,.35)!important;
  border-radius:18px!important;
  min-height:48px;
  padding:12px 20px!important;
  font-family:inherit!important;
  font-weight:900!important;
  letter-spacing:0!important;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 14px 30px rgba(2,8,23,.25);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.teacher-profile-header-actions-v201 .tp-profile-btn:hover,
.teacher-profile-actions-v200 .tp-profile-btn:hover,
#tp200ReloadProfile:hover,
#tp200ResetProfile:hover,
#tp201ToggleProfile:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
  box-shadow:0 18px 38px rgba(2,8,23,.34);
}
.teacher-profile-actions-v200 .tp-profile-btn-primary{
  background:linear-gradient(135deg,#10b981,#22c55e)!important;
  color:#052e16!important;
  border-color:rgba(187,247,208,.52)!important;
}
.teacher-profile-btn-primary,
button.tp-profile-btn-primary{
  background:linear-gradient(135deg,#10b981,#22c55e)!important;
  color:#052e16!important;
  border-color:rgba(187,247,208,.52)!important;
}
.teacher-profile-btn-ghost,
button.tp-profile-btn-ghost,
#tp200ReloadProfile,
#tp200ResetProfile{
  background:linear-gradient(135deg,rgba(51,65,85,.96),rgba(30,41,59,.96))!important;
  color:#e0f2fe!important;
  border-color:rgba(148,163,184,.35)!important;
}
.teacher-profile-btn-toggle,
button.tp-profile-btn-toggle,
#tp201ToggleProfile{
  background:linear-gradient(135deg,#2563eb,#7c3aed)!important;
  color:#fff!important;
  border-color:rgba(147,197,253,.55)!important;
}
.teacher-profile-actions-v200{
  margin-top:4px;
  padding-top:6px;
}
.teacher-profile-actions-v200 button{
  min-width:170px;
}
@media (max-width:700px){
  .teacher-profile-header-actions-v201 .tp-profile-btn,
  .teacher-profile-actions-v200 .tp-profile-btn,
  #tp200ReloadProfile,
  #tp200ResetProfile,
  #tp201ToggleProfile{
    width:100%!important;
    min-width:0;
  }
  .teacher-profile-actions-v200{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
}

/* v203 - profile save visible feedback/buttons only */
#tp203SaveProfileBtn.tp-profile-btn-primary,
.teacher-profile-actions-v200 .tp-profile-btn-primary{
  cursor:pointer !important;
  position:relative;
}
#tp203SaveProfileBtn:disabled,
.teacher-profile-actions-v200 button:disabled,
.teacher-profile-form-v200 input:disabled,
.teacher-profile-form-v200 textarea:disabled{
  opacity:.72 !important;
  cursor:wait !important;
}
.tp200-profile-msg.info{border-color:rgba(59,130,246,.45);background:rgba(37,99,235,.14);color:#dbeafe;}
.tp200-profile-msg.ok{border-color:rgba(34,197,94,.45);background:rgba(22,163,74,.16);color:#dcfce7;}
.tp200-profile-msg.error{border-color:rgba(248,113,113,.55);background:rgba(220,38,38,.16);color:#fee2e2;}

/* ================= v210 - Teacher schedule filter redesign only ================= */
.teacher-filter-grid-v210{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap:16px !important;
  align-items:end;
  padding:18px !important;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,41,59,.78));
  border:1px solid rgba(96,165,250,.18);
  box-shadow:0 18px 42px rgba(2,8,23,.24);
}
.teacher-filter-grid-v210 .teacher-filter-field label,
.teacher-filter-grid-v210 label{
  display:block;
  margin:0 0 8px;
  font-weight:900;
  color:#eaf6ff;
  letter-spacing:-.02em;
}
.teacher-date-row-v210{
  display:grid !important;
  grid-template-columns: 1fr 1.15fr .9fr;
  gap:10px;
}
.teacher-date-row-v210 input,
.teacher-date-row-v210 select,
.teacher-filter-grid-v210 input,
.teacher-filter-grid-v210 select{
  width:100%;
  min-height:50px;
  border-radius:16px;
  border:1px solid rgba(56,189,248,.26);
  background:rgba(2,8,23,.38);
  color:#fff;
  padding:0 14px;
  font-weight:850;
  outline:none;
  box-sizing:border-box;
  font-family:inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.teacher-date-row-v210 input:focus,
.teacher-date-row-v210 select:focus,
.teacher-filter-grid-v210 input:focus,
.teacher-filter-grid-v210 select:focus{
  border-color:rgba(56,189,248,.72);
  box-shadow:0 0 0 4px rgba(56,189,248,.12), inset 0 1px 0 rgba(255,255,255,.04);
}
.teacher-filter-search-field{ grid-column: span 2; }
.teacher-filter-search-field small{
  display:block;
  margin-top:8px;
  color:#a8c7df;
  font-weight:700;
  line-height:1.8;
}
.teacher-filter-actions-v210{
  display:flex !important;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  grid-column: span 2;
}
.teacher-filter-actions-v210 button{
  min-height:50px;
  border-radius:16px;
  padding:0 22px;
  font-weight:950;
  border:0;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  box-shadow:0 14px 28px rgba(37,99,235,.2);
}
.teacher-filter-actions-v210 button.secondary{
  background:rgba(100,116,139,.45);
  box-shadow:none;
}
.teacher-table-wrap #teacherScheduleTable td,
.teacher-table-wrap #teacherScheduleTable th{
  white-space:normal;
  vertical-align:middle;
}
.tp210-student-names{
  max-width:260px;
  white-space:normal;
  overflow-wrap:anywhere;
  color:#bde7ff;
  font-size:.86rem;
  line-height:1.7;
  margin-top:4px;
}
.tp210-empty{
  padding:28px !important;
  text-align:center !important;
  color:#dbeafe !important;
  font-weight:900;
}
@media (max-width: 780px){
  .teacher-filter-grid-v210{
    grid-template-columns:1fr !important;
    gap:14px !important;
    padding:14px !important;
    border-radius:20px;
  }
  .teacher-filter-search-field,
  .teacher-filter-actions-v210{ grid-column:auto; }
  .teacher-date-row-v210{
    grid-template-columns:1fr;
    gap:8px;
  }
  .teacher-date-row-v210 input,
  .teacher-date-row-v210 select,
  .teacher-filter-grid-v210 input,
  .teacher-filter-grid-v210 select{
    min-height:48px;
    font-size:15px;
  }
  .teacher-filter-actions-v210{
    flex-direction:column;
    align-items:stretch;
  }
  .teacher-filter-actions-v210 button{ width:100%; }
  .teacher-table-wrap{ overflow:visible !important; }
  #teacherScheduleTable,
  #teacherScheduleTable thead,
  #teacherScheduleTable tbody,
  #teacherScheduleTable tr,
  #teacherScheduleTable th,
  #teacherScheduleTable td{
    display:block !important;
    width:100% !important;
    box-sizing:border-box;
  }
  #teacherScheduleTable thead{ display:none !important; }
  #teacherScheduleTable tr{
    margin:0 0 14px;
    border:1px solid rgba(56,189,248,.18);
    border-radius:20px;
    background:linear-gradient(145deg, rgba(15,23,42,.92), rgba(8,47,73,.5));
    overflow:hidden;
    box-shadow:0 14px 26px rgba(2,8,23,.18);
  }
  #teacherScheduleTable td{
    border:0 !important;
    padding:12px 14px !important;
    text-align:right !important;
    white-space:normal !important;
    overflow-wrap:anywhere;
  }
  #teacherScheduleTable td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:6px;
    color:#93c5fd;
    font-size:.82rem;
    font-weight:950;
  }
  .tp210-student-names{ max-width:none; }
}

/* ================= v211 - finance report filters redesign (teacher panel only) ================= */
.teacher-finance-filter-grid-v211{
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  align-items: end;
}
.teacher-finance-filter-grid-v211 .teacher-filter-field,
.teacher-finance-filter-grid-v211 > div{
  min-width: 0;
}
.teacher-finance-date-row-v211{
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(110px, 1fr) minmax(82px, .8fr);
  gap: 10px;
}
.teacher-finance-filter-grid-v211 select,
.teacher-finance-filter-grid-v211 input{
  width: 100%;
  min-height: 46px;
}
.teacher-finance-search-field-v211{
  grid-column: span 2;
}
.teacher-finance-actions-v211{
  grid-column: span 2;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.tp211-empty{
  text-align: center !important;
  padding: 22px !important;
  color: #dbeafe;
}
.tp211-student-names{
  margin-top: 6px;
  max-height: 72px;
  overflow: auto;
  white-space: normal;
  line-height: 1.9;
  color: #b9d6ea;
}
.teacher-finance-view-card #teacherFinanceDetailsTable td,
.teacher-finance-view-card #teacherFinanceDetailsTable th{
  white-space: normal;
  vertical-align: top;
}
.teacher-finance-view-card #teacherFinanceDetailsTable td[data-label="مانده نهایی کلاس"] strong{
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .35);
  border: 1px solid rgba(125, 211, 252, .18);
}
@media (max-width: 760px){
  .teacher-finance-filter-grid-v211{
    grid-template-columns: 1fr;
  }
  .teacher-finance-search-field-v211,
  .teacher-finance-actions-v211{
    grid-column: auto;
  }
  .teacher-finance-date-row-v211{
    grid-template-columns: 1fr;
  }
  .teacher-finance-actions-v211 button{
    width: 100%;
  }
  .teacher-finance-view-card .teacher-finance-summary-grid{
    grid-template-columns: 1fr;
  }
  .teacher-finance-view-card #teacherFinanceDetailsTable,
  .teacher-finance-view-card #teacherFinanceDetailsTable thead,
  .teacher-finance-view-card #teacherFinanceDetailsTable tbody,
  .teacher-finance-view-card #teacherFinanceDetailsTable tr,
  .teacher-finance-view-card #teacherFinanceDetailsTable th,
  .teacher-finance-view-card #teacherFinanceDetailsTable td{
    display: block;
    width: 100%;
  }
  .teacher-finance-view-card #teacherFinanceDetailsTable thead{
    display: none;
  }
  .teacher-finance-view-card #teacherFinanceDetailsTable tr{
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(56, 189, 248, .2);
  }
  .teacher-finance-view-card #teacherFinanceDetailsTable td{
    display: grid;
    grid-template-columns: minmax(115px, 38%) 1fr;
    gap: 10px;
    text-align: right;
    border: 0 !important;
    padding: 9px 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
  }
  .teacher-finance-view-card #teacherFinanceDetailsTable td::before{
    content: attr(data-label);
    color: #9fb4c9;
    font-weight: 800;
  }
}


/* ================= v212 - finance filter desktop layout fix only =================
   Scope: teacher panel > "گزارش مالی من" filter box only.
   Fixes the left/last filter label becoming vertical on desktop.
   Does not change financial logic, tables, live board, or admin pages.
================= */
.teacher-finance-filter-grid-v211{
  display:grid !important;
  grid-template-columns:minmax(300px,1.15fr) minmax(300px,1.15fr) minmax(185px,.75fr) minmax(230px,.85fr) !important;
  gap:16px !important;
  align-items:end !important;
  direction:rtl !important;
  overflow:visible !important;
}
.teacher-finance-filter-grid-v211 .teacher-filter-field,
.teacher-finance-filter-grid-v211 > div{
  min-width:0 !important;
  width:100% !important;
  writing-mode:horizontal-tb !important;
  overflow:visible !important;
}
.teacher-finance-filter-grid-v211 label,
.teacher-finance-filter-grid-v211 .teacher-filter-field label{
  display:block !important;
  white-space:nowrap !important;
  writing-mode:horizontal-tb !important;
  text-orientation:mixed !important;
  line-height:1.7 !important;
  min-width:max-content !important;
}
.teacher-finance-filter-grid-v211 select,
.teacher-finance-filter-grid-v211 input{
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
  writing-mode:horizontal-tb !important;
  white-space:nowrap !important;
}
.teacher-finance-filter-grid-v211 .teacher-date-row-v210,
.teacher-finance-filter-grid-v211 .teacher-finance-date-row-v211{
  display:grid !important;
  grid-template-columns:minmax(92px,1fr) minmax(116px,1.05fr) minmax(82px,.75fr) !important;
  gap:10px !important;
  min-width:0 !important;
  width:100% !important;
}
.teacher-finance-search-field-v211{
  grid-column:1 / span 2 !important;
}
.teacher-finance-actions-v211{
  grid-column:3 / span 2 !important;
  display:flex !important;
  gap:12px !important;
  justify-content:flex-start !important;
  align-items:end !important;
  flex-wrap:wrap !important;
}
.teacher-finance-actions-v211 button{
  min-width:150px !important;
  white-space:nowrap !important;
}

@media (max-width:1180px){
  .teacher-finance-filter-grid-v211{
    grid-template-columns:1fr 1fr !important;
  }
  .teacher-finance-search-field-v211,
  .teacher-finance-actions-v211{
    grid-column:1 / -1 !important;
  }
}
@media (max-width:760px){
  .teacher-finance-filter-grid-v211{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .teacher-finance-search-field-v211,
  .teacher-finance-actions-v211{
    grid-column:auto !important;
  }
  .teacher-finance-filter-grid-v211 .teacher-date-row-v210,
  .teacher-finance-filter-grid-v211 .teacher-finance-date-row-v211{
    grid-template-columns:1fr !important;
  }
  .teacher-finance-filter-grid-v211 label,
  .teacher-finance-filter-grid-v211 .teacher-filter-field label{
    white-space:normal !important;
    min-width:0 !important;
  }
  .teacher-finance-actions-v211{
    display:grid !important;
    grid-template-columns:1fr !important;
  }
  .teacher-finance-actions-v211 button{
    width:100% !important;
    min-width:0 !important;
  }
}

/* ================= v247 - student-style teacher finance report ================= */
.teacher-finance-view-card .teacher-section-title h2{letter-spacing:-.02em}
.teacher-finance-view-card .teacher-finance-note{background:linear-gradient(135deg,rgba(14,165,233,.12),rgba(16,185,129,.08));border-color:rgba(56,189,248,.20)}
.teacher-finance-view-card .teacher-finance-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.teacher-finance-view-card .teacher-finance-summary-grid article{position:relative;min-height:96px;overflow:hidden}
.teacher-finance-view-card .teacher-finance-summary-grid article::after{content:"";position:absolute;inset:auto -30px -45px auto;width:110px;height:110px;border-radius:999px;background:rgba(56,189,248,.08);pointer-events:none}
.teacher-finance-view-card .teacher-finance-summary-grid .tp247-main-balance{grid-column:span 2;border-width:1px;box-shadow:0 18px 46px rgba(0,0,0,.24)}
.teacher-finance-view-card .teacher-finance-summary-grid .tp247-main-balance strong{font-size:23px;line-height:1.9}
.teacher-finance-view-card .tp247-main-balance.is-settled{background:linear-gradient(135deg,rgba(6,78,59,.72),rgba(15,23,42,.82));border-color:rgba(52,211,153,.32)}
.teacher-finance-view-card .tp247-main-balance.is-credit{background:linear-gradient(135deg,rgba(30,64,175,.42),rgba(15,23,42,.86));border-color:rgba(96,165,250,.34)}
.teacher-finance-view-card .tp247-main-balance.is-debt{background:linear-gradient(135deg,rgba(127,29,29,.42),rgba(15,23,42,.86));border-color:rgba(248,113,113,.34)}
.teacher-finance-view-card .tp247-chip strong{font-size:17px;line-height:1.8}
.tp247-finance-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}
.tp247-finance-class-card{border-radius:26px;background:linear-gradient(135deg,rgba(15,23,42,.92),rgba(30,41,59,.74));border:1px solid rgba(148,163,184,.16);padding:16px;box-shadow:0 18px 44px rgba(0,0,0,.22);min-width:0;overflow:hidden}
.tp247-finance-class-card.is-settled{border-color:rgba(52,211,153,.24)}
.tp247-finance-class-card.is-credit{border-color:rgba(96,165,250,.24)}
.tp247-finance-class-card.is-debt{border-color:rgba(248,113,113,.25)}
.tp247-class-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08)}
.tp247-class-head strong{display:block;color:#e0f2fe;font-size:18px;font-weight:1000;line-height:1.7}
.tp247-class-head span:not(.teacher-status){display:block;color:#94a3b8;font-size:12px;font-weight:900;line-height:1.8}
.tp247-class-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0}
.tp247-class-meta span{display:block;padding:9px 10px;border-radius:16px;background:rgba(14,165,233,.10);border:1px solid rgba(56,189,248,.16);color:#cbd5e1;font-size:12px;font-weight:900;line-height:1.7;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp247-class-meta b{color:#f8fafc}
.tp247-student-list{margin:0 0 12px;padding:10px 12px;border-radius:17px;background:rgba(15,23,42,.64);border:1px solid rgba(255,255,255,.08);color:#cbd5e1;font-size:12px;font-weight:800;line-height:1.8;white-space:pre-wrap}
.tp247-money-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tp247-money-grid>div{padding:12px;border-radius:18px;background:rgba(2,6,23,.38);border:1px solid rgba(148,163,184,.12);min-width:0}
.tp247-money-grid span{display:block;color:#94a3b8;font-size:12px;font-weight:900;margin-bottom:7px}
.tp247-money-grid strong{display:block;color:#f8fafc;font-size:14px;font-weight:1000;line-height:1.8;overflow-wrap:anywhere}
.tp247-money-grid .tp247-final{grid-column:1/-1;background:rgba(14,165,233,.10);border-color:rgba(56,189,248,.20)}
.tp247-finance-class-card.is-settled .tp247-final strong{color:#bbf7d0}
.tp247-finance-class-card.is-credit .tp247-final strong{color:#bfdbfe}
.tp247-finance-class-card.is-debt .tp247-final strong{color:#fecaca}
.tp247-payment-details{margin-top:11px;border-radius:18px;background:rgba(2,6,23,.30);border:1px solid rgba(148,163,184,.12);overflow:hidden}
.tp247-payment-details summary{cursor:pointer;list-style:none;padding:11px 13px;color:#bae6fd;font-size:13px;font-weight:1000}
.tp247-payment-details summary::-webkit-details-marker{display:none}
.tp247-payment-details[open] summary{border-bottom:1px solid rgba(255,255,255,.08)}
.tp247-payment-details .teacher-payment-summary{margin:10px!important}
.tp247-finance-cards-empty{padding:18px;border-radius:22px;background:rgba(15,23,42,.74);border:1px dashed rgba(148,163,184,.25);color:#cbd5e1;font-weight:900;text-align:center;margin-top:14px}
@media(max-width:1180px){.tp247-finance-details-grid{grid-template-columns:1fr}.teacher-finance-view-card .teacher-finance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-finance-view-card .teacher-finance-summary-grid .tp247-main-balance{grid-column:span 2}}
@media(max-width:720px){.teacher-finance-view-card .teacher-finance-summary-grid{grid-template-columns:1fr!important}.teacher-finance-view-card .teacher-finance-summary-grid .tp247-main-balance{grid-column:span 1!important}.tp247-finance-details-grid{grid-template-columns:1fr;gap:12px}.tp247-finance-class-card{border-radius:22px;padding:13px}.tp247-class-head{display:grid;grid-template-columns:1fr;gap:8px}.tp247-class-meta,.tp247-money-grid{grid-template-columns:1fr}.tp247-class-meta span{white-space:normal}.teacher-finance-view-card .teacher-finance-summary-grid .tp247-main-balance strong{font-size:19px}.tp247-payment-details .teacher-finance-students-mini table{min-width:520px}}

/* v248 - final teacher finance cards: clear debt/credit display */
.tp248-class-note{
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(56,189,248,.08);
  border:1px solid rgba(56,189,248,.22);
  color:#c8f5ff;
  font-weight:800;
  line-height:1.9;
}
.tp248-money-grid .tp247-final strong{font-size:1.05rem;}
.tp248-finance-class-card.is-debt .tp248-class-note{background:rgba(244,63,94,.10);border-color:rgba(244,63,94,.28);color:#ffd3dc;}
.tp248-finance-class-card.is-credit .tp248-class-note{background:rgba(16,185,129,.10);border-color:rgba(16,185,129,.28);color:#bfffe4;}
@media (max-width: 720px){
  .tp248-money-grid{grid-template-columns:1fr!important;}
  .tp248-class-note{font-size:.92rem;}
}

/* v250 - Teacher finance report: student-style cards with correct teacher-collects accounting */
.tp250-total.is-debt,
.teacher-finance-total-card.tp250-total.is-debt {
  border-color: rgba(248, 113, 113, .55) !important;
  background: linear-gradient(135deg, rgba(127,29,29,.38), rgba(15,23,42,.72)) !important;
}
.tp250-total.is-credit,
.teacher-finance-total-card.tp250-total.is-credit {
  border-color: rgba(52, 211, 153, .55) !important;
  background: linear-gradient(135deg, rgba(6,95,70,.36), rgba(15,23,42,.72)) !important;
}
.tp250-total.is-settled,
.teacher-finance-total-card.tp250-total.is-settled {
  border-color: rgba(34,197,94,.55) !important;
  background: linear-gradient(135deg, rgba(20,83,45,.36), rgba(15,23,42,.72)) !important;
}
.tp250-balance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .9rem;
  white-space: nowrap;
}
.tp250-balance-badge.tp250-debt {
  color: #fecaca;
  border: 1px solid rgba(248,113,113,.55);
  background: rgba(127,29,29,.35);
}
.tp250-balance-badge.tp250-credit {
  color: #bbf7d0;
  border: 1px solid rgba(74,222,128,.55);
  background: rgba(22,101,52,.32);
}
.tp250-balance-badge.tp250-settled {
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,.5);
  background: rgba(20,83,45,.35);
}
.tp250-finance-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.tp250-finance-class-card {
  border: 1px solid rgba(56,189,248,.25);
  background: linear-gradient(145deg, rgba(15,23,42,.94), rgba(8,47,73,.52));
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  overflow: hidden;
}
.tp250-finance-class-card.is-debt { border-color: rgba(248,113,113,.42); }
.tp250-finance-class-card.is-credit { border-color: rgba(52,211,153,.42); }
.tp250-finance-class-card.is-settled { border-color: rgba(34,197,94,.34); }
.tp250-class-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.tp250-class-head strong {
  display: block;
  color: #38bdf8;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.tp250-class-head span:not(.teacher-status) { color: #cbd5e1; font-size: .92rem; }
.tp250-class-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
}
.tp250-class-meta span,
.tp250-money-grid > div,
.tp250-students,
.tp250-class-note,
.tp250-payment-details {
  border: 1px solid rgba(56,189,248,.18);
  background: rgba(2,6,23,.32);
  border-radius: 16px;
  padding: 10px 12px;
  color: #cbd5e1;
}
.tp250-class-meta b { color: #fff; }
.tp250-class-note {
  color: #bbf7d0;
  border-color: rgba(34,197,94,.28);
  background: rgba(20,83,45,.18);
  font-weight: 800;
  line-height: 1.9;
  margin-bottom: 14px;
}
.tp250-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.tp250-money-grid span { display: block; color: #94a3b8; font-size: .86rem; margin-bottom: 6px; }
.tp250-money-grid strong { display: block; color: #fff; font-size: 1.02rem; }
.tp250-money-grid .tp250-final {
  grid-column: 1 / -1;
  border-color: rgba(251,191,36,.3);
  background: rgba(120,53,15,.16);
}
.tp250-students { margin-top: 12px; line-height: 1.9; }
.tp250-payment-details { margin-top: 12px; }
.tp250-payment-details summary { cursor: pointer; font-weight: 900; color: #e0f2fe; }
.tp250-empty {
  border: 1px solid rgba(56,189,248,.22);
  background: rgba(15,23,42,.72);
  color: #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  font-weight: 900;
}
@media (max-width: 900px) {
  .tp250-finance-details-grid { grid-template-columns: 1fr; }
  .tp250-class-head { flex-direction: column; }
  .tp250-class-meta, .tp250-money-grid { grid-template-columns: 1fr; }
}

/* v251: cache-bump only for teacher finance report logic activation. */


/* v253 - teacher finance: student-style cards, final class-balance view */
.tp253-finance-summary{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(180px,1fr));
  gap:14px !important;
  align-items:stretch;
}
.tp253-main-balance{
  grid-column:span 2;
  min-height:120px;
}
.tp253-main-balance.danger,
.tp253-status-chip.danger{
  border-color:rgba(248,113,113,.55) !important;
  background:linear-gradient(135deg,rgba(127,29,29,.38),rgba(15,23,42,.92)) !important;
}
.tp253-main-balance.success,
.tp253-status-chip.success{
  border-color:rgba(34,197,94,.55) !important;
  background:linear-gradient(135deg,rgba(6,95,70,.42),rgba(15,23,42,.92)) !important;
}
.tp253-main-balance.warn,
.tp253-status-chip.warn{
  border-color:rgba(251,191,36,.50) !important;
  background:linear-gradient(135deg,rgba(120,53,15,.34),rgba(15,23,42,.92)) !important;
}
.tp253-main-balance strong{font-size:clamp(1.35rem,2.2vw,2.15rem) !important;line-height:1.8;}
.tp253-note-chip em{line-height:1.9;font-size:.82rem;opacity:.85;}
.tp253-finance-details-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr)) !important;
  gap:16px !important;
  margin-top:16px;
}
.tp253-finance-details-grid .tp247-finance-class-card{
  min-width:0 !important;
  overflow:hidden;
}
.tp253-finance-details-grid .tp248-class-explain{
  background:rgba(14,165,233,.08);
  border:1px solid rgba(56,189,248,.22);
  border-radius:16px;
  padding:10px 12px;
  margin:10px 0;
  line-height:1.9;
  color:#dbeafe;
}
@media (max-width: 900px){
  .tp253-finance-summary{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .tp253-main-balance{grid-column:span 2;}
}
@media (max-width: 640px){
  .tp253-finance-summary{grid-template-columns:1fr !important;}
  .tp253-main-balance{grid-column:auto;}
  .tp253-finance-details-grid{grid-template-columns:1fr !important;}
}


/* v254 - student-style teacher finance hard override */
.tp254-summary-grid{display:grid!important;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px;margin-top:18px;direction:rtl}.tp254-main{grid-column:span 2;border:1px solid rgba(56,189,248,.35)!important;background:linear-gradient(135deg,rgba(14,165,233,.18),rgba(15,23,42,.88))!important}.tp254-main.is-debt{border-color:rgba(248,113,113,.5)!important;background:linear-gradient(135deg,rgba(127,29,29,.42),rgba(15,23,42,.92))!important}.tp254-main.is-credit{border-color:rgba(34,197,94,.5)!important;background:linear-gradient(135deg,rgba(20,83,45,.42),rgba(15,23,42,.92))!important}.tp254-main.is-settled{border-color:rgba(34,197,94,.45)!important}.tp254-details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:16px;margin-top:18px;direction:rtl}.tp254-teacher-finance-card{border:1px solid rgba(56,189,248,.28);background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(8,47,73,.38));border-radius:22px;padding:18px;box-shadow:0 18px 45px rgba(0,0,0,.2)}.tp254-teacher-finance-card.is-debt{border-color:rgba(248,113,113,.45)}.tp254-teacher-finance-card.is-credit{border-color:rgba(34,197,94,.45)}.tp254-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid rgba(148,163,184,.18);padding-bottom:12px;margin-bottom:12px}.tp254-card-head strong{color:#38bdf8;font-size:1.1rem}.tp254-card-head span,.tp254-card-meta span,.tp254-card-note{color:#cbd5e1}.tp254-card-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.tp254-card-meta span{background:rgba(14,165,233,.12);border:1px solid rgba(56,189,248,.22);border-radius:999px;padding:7px 10px}.tp254-card-note{background:rgba(15,23,42,.55);border:1px dashed rgba(148,163,184,.22);border-radius:14px;padding:10px 12px;line-height:1.9}.tp254-money-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tp254-money-grid>div{background:rgba(2,6,23,.38);border:1px solid rgba(56,189,248,.18);border-radius:15px;padding:12px}.tp254-money-grid span{display:block;color:#94a3b8;font-size:.88rem;margin-bottom:6px}.tp254-money-grid strong{color:#f8fafc}.is-debt .tp254-money-grid strong:last-child{color:#fecaca}.is-credit .tp254-money-grid strong:last-child{color:#bbf7d0}@media(max-width:760px){.tp254-summary-grid{grid-template-columns:1fr!important}.tp254-main{grid-column:span 1}.tp254-details-grid{grid-template-columns:1fr}.tp254-card-head{display:block}.tp254-money-grid{grid-template-columns:1fr}.tp254-card-meta{display:grid;grid-template-columns:1fr}}

/* v256: apply management payment/receipt display to teacher finance detail cards */
.tp254-final-balance-cell{grid-column:1/-1;border-color:rgba(34,197,94,.24)!important;background:linear-gradient(135deg,rgba(14,165,233,.12),rgba(15,23,42,.55))!important}.tp254-final-balance-cell strong{font-size:1.05rem}.tp254-ledger-note{margin-top:10px;border:1px solid rgba(34,197,94,.24);background:rgba(20,83,45,.18);color:#bbf7d0;border-radius:14px;padding:9px 12px;line-height:1.8;font-weight:800;text-align:center}.tp254-teacher-finance-card.is-settled{border-color:rgba(34,197,94,.48);background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(20,83,45,.22))}.tp254-teacher-finance-card.is-settled .tp254-final-balance-cell strong{color:#bbf7d0}

/* =========================================================
   v281 - Teacher Login Cinematic Redesign
   فقط ظاهر صفحه ورود اساتید؛ منطق ورود، نام فیلدها و ارسال فرم تغییر نکرده است.
   ========================================================= */
body.teacher-login-luxury-page{
  min-height:100vh;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(37,99,235,.26), transparent 34%),
    radial-gradient(circle at 10% 80%, rgba(124,58,237,.20), transparent 36%),
    linear-gradient(135deg,#030814 0%,#071424 45%,#06111f 100%);
}
body.teacher-login-luxury-page:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(2,6,23,.10), rgba(14,165,233,.06), rgba(2,6,23,.16)),
    radial-gradient(circle at 55% 42%, rgba(59,130,246,.12), transparent 34%);
  z-index:0;
}
.teacher-login-luxury-shell{
  min-height:100vh;
  padding:28px 18px;
  place-items:center;
}
.teacher-login-hero{
  width:min(1380px,96vw);
}
.teacher-login-topbar{
  direction:rtl;
  justify-content:flex-start;
  margin-bottom:16px;
  padding-inline:4px;
}
.teacher-mini-link{
  min-height:42px;
  padding:0 18px;
  background:rgba(15,23,42,.55);
  border-color:rgba(147,197,253,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 16px 34px rgba(0,0,0,.18);
}
.teacher-login-layout{
  direction:ltr;
  grid-template-columns:minmax(440px, .96fr) minmax(430px, .86fr);
  gap:24px;
  align-items:stretch;
}
.teacher-login-intro,
.teacher-login-card-luxury{
  min-height:690px;
  border-radius:38px;
  overflow:hidden;
  border:1px solid rgba(96,165,250,.22);
  box-shadow:0 36px 110px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.07);
}
.teacher-login-intro{
  direction:rtl;
  padding:34px;
  align-items:stretch;
  justify-content:flex-end;
  text-align:right;
  gap:18px;
  background:
    linear-gradient(180deg, rgba(2,6,23,.06) 0%, rgba(2,6,23,.28) 42%, rgba(2,6,23,.92) 100%),
    linear-gradient(90deg, rgba(2,6,23,.50), rgba(2,6,23,.04) 48%, rgba(2,6,23,.18)),
    url('teacher_login_hero.webp') center center/cover no-repeat;
}
.teacher-login-intro:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 26% 26%, rgba(96,165,250,.16), transparent 32%),
    linear-gradient(180deg, transparent 40%, rgba(2,6,23,.86) 100%);
  pointer-events:none;
}
.teacher-login-intro:after{
  content:"";
  position:absolute;
  inset:auto 28px 28px 28px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(59,130,246,.86), transparent);
  box-shadow:0 0 24px rgba(37,99,235,.70);
  pointer-events:none;
}
.teacher-login-intro .teacher-logo-showcase{
  display:none;
}
.teacher-intro-copy{
  position:relative;
  z-index:2;
  max-width:620px;
  margin:0;
  padding:24px 24px 12px;
  border-radius:28px;
  background:linear-gradient(135deg, rgba(2,6,23,.40), rgba(15,23,42,.18));
  backdrop-filter:blur(8px);
}
.teacher-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#93c5fd;
  font-weight:1000;
  font-size:13px;
  margin-bottom:8px;
}
.teacher-kicker:before{
  content:"✦";
  color:#fbbf24;
}
.teacher-intro-copy h3{
  margin:0;
  color:#fff;
  font-size:clamp(24px,2.2vw,34px);
  line-height:1.7;
  font-weight:1000;
  letter-spacing:-.3px;
  text-shadow:0 12px 34px rgba(0,0,0,.55);
}
.teacher-intro-copy p{
  max-width:560px;
  margin:12px 0 0;
  color:rgba(226,232,240,.88);
  line-height:2.05;
  font-size:15px;
}
.teacher-feature-list{
  direction:rtl;
  position:relative;
  z-index:2;
  width:100%;
  max-width:none;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:0;
}
.teacher-feature-list div{
  min-height:82px;
  padding:16px 14px;
  border-radius:22px;
  text-align:center;
  background:linear-gradient(180deg,rgba(15,23,42,.58),rgba(2,6,23,.44));
  border:1px solid rgba(147,197,253,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 18px 38px rgba(0,0,0,.22);
  backdrop-filter:blur(10px);
}
.teacher-feature-list b{color:#fff;font-size:14px}
.teacher-feature-list span{color:#bfdbfe;font-size:12px;line-height:1.8}
.teacher-login-card-luxury{
  direction:rtl;
  padding:52px 44px;
  justify-content:center;
  background:
    radial-gradient(circle at 50% 16%, rgba(37,99,235,.24), transparent 28%),
    radial-gradient(circle at 12% 72%, rgba(124,58,237,.20), transparent 34%),
    linear-gradient(145deg, rgba(8,18,34,.88), rgba(3,8,20,.80));
}
.teacher-login-card-luxury:before{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:30px;
  border:1px solid rgba(59,130,246,.28);
  pointer-events:none;
  box-shadow:inset 0 0 32px rgba(37,99,235,.10);
}
.teacher-card-shine{
  background:
    radial-gradient(circle at 52% 18%, rgba(96,165,250,.22), transparent 22%),
    linear-gradient(145deg,rgba(255,255,255,.07),transparent 42%);
}
.teacher-card-header{
  flex-direction:row-reverse;
  align-items:flex-start;
  margin-bottom:30px;
}
.teacher-card-header span{
  display:inline-flex;
  color:#93c5fd;
  font-size:14px;
  margin-bottom:8px;
}
.teacher-card-header h2{
  font-size:clamp(32px,3vw,48px);
  line-height:1.35;
  letter-spacing:-.5px;
}
.teacher-lock-icon{
  width:82px;
  height:82px;
  border-radius:26px;
  font-size:30px;
  background:linear-gradient(135deg,rgba(37,99,235,.30),rgba(124,58,237,.22));
  border:1px solid rgba(96,165,250,.36);
  box-shadow:0 20px 48px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.11);
}
.teacher-login-form-luxury{gap:12px}
.teacher-login-form-luxury label{
  font-size:14px;
  color:#eef6ff;
  margin-top:10px;
}
.teacher-input-wrap input{
  height:66px;
  border-radius:22px;
  background:rgba(2,6,23,.54);
  border-color:rgba(96,165,250,.22);
  padding-right:56px;
  font-size:16px;
}
.teacher-input-wrap input:focus{
  border-color:rgba(59,130,246,.95);
  box-shadow:0 0 0 5px rgba(37,99,235,.18),0 0 34px rgba(37,99,235,.24);
}
.teacher-input-icon{right:18px;font-size:21px}
.teacher-password-toggle{
  left:12px;
  height:42px;
  border-radius:15px;
  background:rgba(255,255,255,.08);
}
.teacher-login-submit{
  height:68px;
  margin-top:20px;
  border-radius:24px;
  background:linear-gradient(135deg,#2563eb 0%,#4f46e5 48%,#7c3aed 100%);
  font-size:18px;
  box-shadow:0 24px 56px rgba(59,130,246,.32), inset 0 1px 0 rgba(255,255,255,.20);
}
.teacher-login-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 30px 64px rgba(59,130,246,.42), inset 0 1px 0 rgba(255,255,255,.20);
}
.teacher-login-note{
  margin-top:24px;
  border-radius:22px;
  background:rgba(255,255,255,.065);
  border-color:rgba(147,197,253,.14);
  padding:16px 18px;
}
@media(max-width:980px){
  .teacher-login-layout{direction:rtl;grid-template-columns:1fr}
  .teacher-login-intro{min-height:460px;padding:24px;order:2}
  .teacher-login-card-luxury{min-height:auto;padding:34px 24px;order:1}
  .teacher-feature-list{grid-template-columns:1fr}
}
@media(max-width:620px){
  .teacher-login-intro{display:none}
  .teacher-login-card-luxury{padding:28px 18px;border-radius:28px}
  .teacher-login-card-luxury:before{inset:10px;border-radius:22px}
  .teacher-card-header{gap:12px}
  .teacher-lock-icon{width:62px;height:62px;border-radius:21px;font-size:24px}
  .teacher-input-wrap input{height:60px}
  .teacher-login-submit{height:62px;font-size:16px}
}

/* =========================================================
   v282 - Teacher Login EXACT Cinematic Layout
   هدف: بازطراحی صفحه ورود اساتید نزدیک به طرح مرجع ارسالی کاربر.
   فقط ظاهر صفحه ورود تغییر کرده؛ منطق ورود، name فیلدها، action فرم و Sessionها دست‌نخورده‌اند.
   ========================================================= */
body.teacher-login-luxury-page{
  min-height:100vh;
  overflow:hidden;
  background:#020817;
  color:#fff;
}
body.teacher-login-luxury-page:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(circle at 8% 10%, rgba(37,99,235,.34), transparent 28%),
    radial-gradient(circle at 78% 75%, rgba(79,70,229,.20), transparent 30%),
    linear-gradient(90deg, rgba(2,6,23,.48), rgba(3,10,26,.86));
}
.teacher-login-bg,
.teacher-orb,
.teacher-grid-lines{
  display:none!important;
}
.teacher-login-luxury-shell{
  min-height:100vh;
  padding:0;
  display:grid;
  place-items:stretch;
}
.teacher-login-hero{
  width:100vw;
  min-height:100vh;
  display:flex;
  align-items:stretch;
  justify-content:center;
}
.teacher-login-topbar{
  display:none!important;
}
.teacher-login-layout{
  width:min(1536px,100vw);
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  direction:ltr;
  align-items:stretch;
}
.teacher-login-intro,
.teacher-login-card-luxury{
  min-height:100vh;
  border-radius:0;
  border:0;
  box-shadow:none;
  overflow:hidden;
}
.teacher-login-intro{
  position:relative;
  direction:rtl;
  padding:0 72px 58px 72px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  text-align:center;
  background:
    linear-gradient(180deg, rgba(2,6,23,.02) 0%, rgba(2,6,23,.18) 55%, rgba(2,6,23,.96) 100%),
    url('teacher_login_hero.webp') center center/cover no-repeat;
}
.teacher-login-intro:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(2,6,23,.08) 0%, rgba(2,6,23,.00) 48%, rgba(2,6,23,.20) 100%),
    radial-gradient(circle at 15% 10%, rgba(59,130,246,.20), transparent 32%);
}
.teacher-login-intro:after{
  content:"";
  position:absolute;
  left:38%;
  right:38%;
  bottom:188px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, transparent, #2563eb, #7c3aed, transparent);
  box-shadow:0 0 24px rgba(37,99,235,.95);
}
.teacher-login-intro .teacher-logo-showcase,
.teacher-kicker{
  display:none!important;
}
.teacher-intro-copy{
  position:relative;
  z-index:2;
  max-width:680px;
  margin:0 auto 34px auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  backdrop-filter:none;
}
.teacher-intro-copy h3{
  margin:0 0 8px;
  color:#f8fbff;
  font-size:clamp(26px,2.25vw,36px);
  line-height:1.65;
  font-weight:1000;
  letter-spacing:-.6px;
  text-shadow:0 18px 44px rgba(0,0,0,.92);
}
.teacher-intro-copy p{
  margin:0 auto;
  max-width:560px;
  color:rgba(239,246,255,.92);
  font-size:17px;
  line-height:2.05;
  font-weight:850;
  text-shadow:0 12px 28px rgba(0,0,0,.82);
}
.teacher-feature-list{
  position:relative;
  z-index:2;
  width:100%;
  max-width:600px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  direction:rtl;
}
.teacher-feature-list div{
  position:relative;
  min-height:118px;
  padding:70px 10px 0;
  border:0!important;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  text-align:center;
}
.teacher-feature-list div:not(:last-child):after{
  content:"";
  position:absolute;
  top:20px;
  bottom:10px;
  left:0;
  width:1px;
  background:linear-gradient(180deg, transparent, rgba(96,165,250,.55), transparent);
}
.teacher-feature-list div:before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:54px;
  height:54px;
  transform:translateX(-50%);
  border-radius:17px;
  background:linear-gradient(135deg, rgba(37,99,235,.46), rgba(30,64,175,.24));
  border:1px solid rgba(96,165,250,.35);
  box-shadow:0 18px 34px rgba(37,99,235,.30), inset 0 1px 0 rgba(255,255,255,.16);
}
.teacher-feature-list div:nth-child(1):before{content:"👥";display:grid;place-items:center;font-size:26px;background-color:rgba(37,99,235,.34)}
.teacher-feature-list div:nth-child(2):before{content:"📈";display:grid;place-items:center;font-size:25px;background-color:rgba(37,99,235,.34)}
.teacher-feature-list div:nth-child(3):before{content:"📅";display:grid;place-items:center;font-size:25px;background-color:rgba(37,99,235,.34)}
.teacher-feature-list b{
  display:block;
  color:#fff;
  font-size:14px;
  font-weight:1000;
  line-height:1.7;
  text-shadow:0 10px 24px rgba(0,0,0,.82);
}
.teacher-feature-list span{
  display:none;
}
.teacher-login-card-luxury{
  position:relative;
  direction:rtl;
  padding:64px 62px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 72% 18%, rgba(37,99,235,.20), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(124,58,237,.15), transparent 32%),
    linear-gradient(145deg,#031024 0%,#020817 58%,#030b1b 100%);
}
.teacher-login-card-luxury:before{
  content:"";
  position:absolute;
  inset:50px 46px 60px 46px;
  border-radius:38px;
  border:2px solid rgba(37,99,235,.76);
  box-shadow:
    0 0 0 1px rgba(96,165,250,.12),
    0 0 42px rgba(37,99,235,.34),
    inset 0 0 42px rgba(37,99,235,.10);
  pointer-events:none;
}
.teacher-login-card-luxury:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 52% 50%, rgba(37,99,235,.10), transparent 42%);
}
.teacher-card-shine{
  display:none;
}
.teacher-login-card-luxury > *{
  position:relative;
  z-index:2;
  width:min(620px,100%);
}
.teacher-card-header{
  display:grid;
  grid-template-columns:1fr 156px;
  align-items:start;
  gap:24px;
  margin:0 0 40px;
  direction:rtl;
}
.teacher-card-header > div:first-child{
  grid-column:1;
  padding-top:20px;
  text-align:right;
}
.teacher-card-header span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#7db7ff;
  font-size:16px;
  font-weight:1000;
  margin-bottom:24px;
}
.teacher-card-header span:after{
  content:"🛡️";
  font-size:21px;
  filter:drop-shadow(0 0 12px rgba(59,130,246,.55));
}
.teacher-card-header h2{
  margin:0;
  color:#fff;
  font-size:clamp(42px,4.2vw,64px);
  line-height:1.2;
  font-weight:1000;
  letter-spacing:-1px;
  text-shadow:0 18px 44px rgba(0,0,0,.80);
}
.teacher-lock-icon{
  grid-column:2;
  grid-row:1;
  justify-self:start;
  width:142px;
  height:142px;
  border-radius:32px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg, rgba(30,64,175,.58), rgba(30,27,75,.62));
  border:1px solid rgba(96,165,250,.45);
  box-shadow:
    0 0 0 1px rgba(59,130,246,.20),
    0 0 28px rgba(37,99,235,.62),
    inset 0 1px 0 rgba(255,255,255,.16);
}
.teacher-lock-icon img{
  width:88px;
  height:88px;
  object-fit:contain;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.36));
}
.teacher-login-error{
  width:min(620px,100%);
  margin:0 0 18px;
  border-radius:22px;
}
.teacher-login-form-luxury{
  width:min(620px,100%);
  display:grid;
  gap:13px;
}
.teacher-login-form-luxury label{
  color:#f8fbff;
  font-size:17px;
  font-weight:1000;
  margin:14px 0 2px;
}
.teacher-input-wrap{
  position:relative;
}
.teacher-input-wrap input{
  height:78px;
  border-radius:22px;
  background:rgba(2,8,23,.62);
  border:1.5px solid rgba(59,130,246,.68);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 22px rgba(37,99,235,.12);
  color:#f8fbff;
  font-size:20px;
  font-weight:900;
  padding:0 76px 0 76px;
  text-align:right;
}
.teacher-input-wrap input::placeholder{color:rgba(226,232,240,.66)}
.teacher-input-wrap input:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 5px rgba(37,99,235,.18),0 0 36px rgba(37,99,235,.42),inset 0 1px 0 rgba(255,255,255,.08);
}
.teacher-input-icon{
  right:auto;
  left:22px;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(37,99,235,.54), rgba(30,64,175,.28));
  color:#dbeafe;
  font-size:22px;
}
.teacher-password-toggle{
  left:auto;
  right:14px;
  height:48px;
  min-width:80px;
  border-radius:15px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(147,197,253,.16);
  color:#dbeafe;
}
.teacher-login-submit{
  width:100%;
  height:86px;
  margin-top:28px;
  border-radius:25px;
  border:0;
  background:linear-gradient(135deg,#2563eb 0%,#3b49ff 43%,#8b22f5 100%);
  color:#fff;
  font-size:28px;
  font-weight:1000;
  box-shadow:0 28px 70px rgba(37,99,235,.38), inset 0 1px 0 rgba(255,255,255,.22);
}
.teacher-login-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 34px 82px rgba(37,99,235,.48), inset 0 1px 0 rgba(255,255,255,.24);
}
.teacher-login-note{
  width:min(620px,100%);
  margin-top:32px;
  min-height:68px;
  align-items:center;
  border-radius:25px;
  padding:18px 26px;
  background:linear-gradient(135deg,rgba(30,64,175,.24),rgba(15,23,42,.50));
  border:1px solid rgba(96,165,250,.22);
  color:#f8fbff;
  font-size:16px;
  line-height:2;
  font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 20px 42px rgba(0,0,0,.22);
}
.teacher-login-note span{
  order:-1;
  margin:0 0 0 12px;
  width:42px;
  height:42px;
  border-radius:14px;
  background:#22c55e;
  box-shadow:0 14px 24px rgba(34,197,94,.22);
  display:grid;
  place-items:center;
  flex:0 0 42px;
}
.teacher-login-note span:before{
  content:"✓";
  color:#fff;
  font-size:26px;
  font-weight:1000;
}
@media(max-width:1080px){
  body.teacher-login-luxury-page{overflow:auto}
  .teacher-login-layout{grid-template-columns:1fr;min-height:auto}
  .teacher-login-intro{min-height:520px;padding:0 28px 48px;order:2}
  .teacher-login-card-luxury{min-height:auto;padding:70px 28px;order:1}
  .teacher-login-card-luxury:before{inset:28px;border-radius:34px}
}
@media(max-width:620px){
  .teacher-login-intro{display:none!important}
  .teacher-login-card-luxury{padding:44px 18px;min-height:100vh}
  .teacher-login-card-luxury:before{inset:14px;border-radius:28px}
  .teacher-card-header{grid-template-columns:1fr 82px;gap:12px;margin-bottom:24px}
  .teacher-lock-icon{width:78px;height:78px;border-radius:22px}
  .teacher-lock-icon img{width:56px;height:56px}
  .teacher-card-header h2{font-size:34px}
  .teacher-card-header span{font-size:14px;margin-bottom:12px}
  .teacher-login-form-luxury label{font-size:14px}
  .teacher-input-wrap input{height:62px;font-size:16px;padding:0 58px 0 58px}
  .teacher-input-icon{left:13px;width:40px;height:40px;font-size:18px}
  .teacher-password-toggle{right:10px;height:38px;min-width:64px;font-size:12px}
  .teacher-login-submit{height:68px;font-size:20px}
  .teacher-login-note{font-size:13px;padding:14px 16px}
}

/* =========================================================
   v283 - Teacher Login EXACT REFERENCE FIX
   اصلاح فوری: صفحه بر اساس عکس مرجع، بدون بهم‌ریختگی و بدون تغییر منطق ورود.
   فقط CSS و تصویر سمت چپ تغییر کرده‌اند؛ name/action/session دست‌نخورده است.
   ========================================================= */
body.teacher-login-luxury-page{
  min-height:100vh!important;
  overflow:hidden!important;
  background:#020817!important;
}
body.teacher-login-luxury-page:before{
  background:
    radial-gradient(circle at 82% 14%, rgba(37,99,235,.18), transparent 28%),
    radial-gradient(circle at 8% 80%, rgba(124,58,237,.14), transparent 32%),
    linear-gradient(90deg,#020817 0%,#031024 52%,#020817 100%)!important;
}
.teacher-login-luxury-shell{
  width:100vw!important;
  height:100vh!important;
  min-height:100vh!important;
  padding:0!important;
  display:block!important;
}
.teacher-login-hero{
  width:100vw!important;
  height:100vh!important;
  min-height:100vh!important;
  display:block!important;
}
.teacher-login-layout{
  width:100vw!important;
  height:100vh!important;
  min-height:100vh!important;
  display:grid!important;
  grid-template-columns:50vw 50vw!important;
  gap:0!important;
  direction:ltr!important;
  align-items:stretch!important;
}
.teacher-login-intro,
.teacher-login-card-luxury{
  height:100vh!important;
  min-height:100vh!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.teacher-login-intro{
  display:block!important;
  padding:0!important;
  background:url('teacher_login_hero.webp') center center/cover no-repeat!important;
}
.teacher-login-intro:before,
.teacher-login-intro:after,
.teacher-login-intro .teacher-logo-showcase,
.teacher-login-intro .teacher-intro-copy,
.teacher-login-intro .teacher-feature-list{
  display:none!important;
}
.teacher-login-card-luxury{
  direction:rtl!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:clamp(22px,3.2vw,50px)!important;
  background:
    radial-gradient(circle at 52% 20%, rgba(37,99,235,.20), transparent 28%),
    radial-gradient(circle at 88% 85%, rgba(124,58,237,.17), transparent 32%),
    linear-gradient(145deg,#031024 0%,#020817 58%,#030b1b 100%)!important;
}
.teacher-login-card-luxury:before{
  inset:clamp(28px,4vw,58px)!important;
  border-radius:clamp(28px,3vw,42px)!important;
  border:2px solid rgba(37,99,235,.72)!important;
  box-shadow:
    0 0 0 1px rgba(96,165,250,.10),
    0 0 36px rgba(37,99,235,.30),
    inset 0 0 36px rgba(37,99,235,.10)!important;
}
.teacher-login-card-luxury > *{
  position:relative!important;
  z-index:2!important;
  width:min(560px,76%)!important;
  max-width:560px!important;
}
.teacher-card-header{
  width:min(560px,76%)!important;
  max-width:560px!important;
  display:grid!important;
  grid-template-columns:1fr 118px!important;
  align-items:start!important;
  gap:22px!important;
  margin:0 0 clamp(18px,3vh,34px)!important;
  direction:rtl!important;
}
.teacher-card-header > div:first-child{
  grid-column:1!important;
  padding-top:10px!important;
  text-align:right!important;
}
.teacher-card-header span{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  color:#7db7ff!important;
  font-size:15px!important;
  font-weight:1000!important;
  margin-bottom:clamp(10px,2.2vh,20px)!important;
}
.teacher-card-header h2{
  font-size:clamp(38px,4.2vw,58px)!important;
  line-height:1.22!important;
  margin:0!important;
  color:#fff!important;
  text-shadow:0 18px 44px rgba(0,0,0,.78)!important;
}
.teacher-lock-icon{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:start!important;
  width:116px!important;
  height:116px!important;
  border-radius:30px!important;
  background:linear-gradient(145deg, rgba(30,64,175,.58), rgba(30,27,75,.62))!important;
  border:1px solid rgba(96,165,250,.45)!important;
  box-shadow:0 0 28px rgba(37,99,235,.58), inset 0 1px 0 rgba(255,255,255,.16)!important;
}
.teacher-lock-icon img{width:74px!important;height:74px!important;object-fit:contain!important}
.teacher-login-error,
.teacher-login-form-luxury,
.teacher-login-note{
  width:min(560px,76%)!important;
  max-width:560px!important;
}
.teacher-login-form-luxury{
  gap:10px!important;
}
.teacher-login-form-luxury label{
  font-size:16px!important;
  font-weight:1000!important;
  color:#f8fbff!important;
  margin:clamp(8px,1.7vh,14px) 0 1px!important;
}
.teacher-input-wrap input{
  height:clamp(60px,7.8vh,76px)!important;
  border-radius:22px!important;
  background:rgba(2,8,23,.64)!important;
  border:1.5px solid rgba(59,130,246,.68)!important;
  color:#f8fbff!important;
  font-size:clamp(17px,1.35vw,20px)!important;
  font-weight:900!important;
  padding:0 76px 0 76px!important;
  text-align:right!important;
}
.teacher-input-icon{
  right:auto!important;
  left:22px!important;
  width:46px!important;
  height:46px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:14px!important;
  background:linear-gradient(135deg, rgba(37,99,235,.54), rgba(30,64,175,.28))!important;
  font-size:21px!important;
}
.teacher-password-toggle{
  left:auto!important;
  right:14px!important;
  height:44px!important;
  min-width:76px!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(147,197,253,.16)!important;
}
.teacher-login-submit{
  height:clamp(66px,8.5vh,84px)!important;
  margin-top:clamp(16px,2.8vh,28px)!important;
  border-radius:25px!important;
  font-size:clamp(22px,2.2vw,28px)!important;
  background:linear-gradient(135deg,#2563eb 0%,#3b49ff 43%,#8b22f5 100%)!important;
}
.teacher-login-note{
  margin-top:clamp(18px,3vh,30px)!important;
  min-height:clamp(58px,7vh,70px)!important;
  border-radius:25px!important;
  padding:14px 22px!important;
  font-size:clamp(13px,1.05vw,16px)!important;
  line-height:1.9!important;
  overflow:hidden!important;
}
.teacher-login-note span{
  width:40px!important;
  height:40px!important;
  flex-basis:40px!important;
}
@media(max-height:850px) and (min-width:1081px){
  .teacher-login-card-luxury{padding:20px 42px!important}
  .teacher-login-card-luxury:before{inset:28px 42px!important;border-radius:34px!important}
  .teacher-card-header{grid-template-columns:1fr 96px!important;margin-bottom:16px!important}
  .teacher-lock-icon{width:96px!important;height:96px!important;border-radius:26px!important}
  .teacher-lock-icon img{width:62px!important;height:62px!important}
  .teacher-card-header h2{font-size:46px!important}
  .teacher-card-header span{margin-bottom:10px!important}
  .teacher-input-wrap input{height:62px!important}
  .teacher-login-submit{height:68px!important;margin-top:18px!important;font-size:24px!important}
  .teacher-login-note{margin-top:18px!important;min-height:58px!important;font-size:13px!important;padding:12px 18px!important}
}
@media(max-width:1080px){
  body.teacher-login-luxury-page{overflow:auto!important}
  .teacher-login-layout{grid-template-columns:1fr!important;height:auto!important;min-height:100vh!important}
  .teacher-login-intro{height:48vh!important;min-height:420px!important;order:2!important}
  .teacher-login-card-luxury{height:auto!important;min-height:100vh!important;order:1!important;padding:54px 22px!important}
  .teacher-login-card-luxury:before{inset:24px!important;border-radius:32px!important}
}
@media(max-width:620px){
  .teacher-login-intro{display:none!important}
  .teacher-login-card-luxury > *,
  .teacher-card-header,
  .teacher-login-error,
  .teacher-login-form-luxury,
  .teacher-login-note{width:100%!important;max-width:100%!important}
  .teacher-card-header{grid-template-columns:1fr 78px!important}
  .teacher-lock-icon{width:78px!important;height:78px!important}
  .teacher-lock-icon img{width:54px!important;height:54px!important}
}


/* =========================================================
   teacher_login.asp v284 - exact reference layout, fixed viewport fit
   فقط اصلاح ظاهر صفحه ورود اساتید؛ منطق ورود، فرم و name/action فیلدها تغییر نکرده‌اند.
   ========================================================= */
body.teacher-login-luxury-page{
  min-height:100vh!important;
  height:100vh!important;
  overflow:hidden!important;
  background:#020817!important;
  color:#fff!important;
}
body.teacher-login-luxury-page:before{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  z-index:0!important;
  pointer-events:none!important;
  background:
    radial-gradient(circle at 8% 10%, rgba(37,99,235,.30), transparent 28%),
    radial-gradient(circle at 78% 75%, rgba(79,70,229,.18), transparent 30%),
    linear-gradient(90deg, rgba(2,6,23,.45), rgba(3,10,26,.86))!important;
}
.teacher-login-bg,.teacher-orb,.teacher-grid-lines{display:none!important}
.teacher-login-luxury-shell{
  position:relative!important;
  z-index:1!important;
  height:100vh!important;
  min-height:0!important;
  padding:0!important;
  display:block!important;
}
.teacher-login-hero{
  width:100vw!important;
  height:100vh!important;
  min-height:0!important;
  display:block!important;
}
.teacher-login-topbar{display:none!important}
.teacher-login-layout{
  width:100vw!important;
  height:100vh!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:50% 50%!important;
  gap:0!important;
  direction:ltr!important;
  align-items:stretch!important;
  overflow:hidden!important;
}
.teacher-login-intro,
.teacher-login-card-luxury{
  height:100vh!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.teacher-login-intro{
  position:relative!important;
  direction:rtl!important;
  padding:0 clamp(26px,4.5vw,72px) clamp(18px,3.6vh,42px)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  text-align:center!important;
  background:
    linear-gradient(180deg, rgba(2,6,23,.00) 0%, rgba(2,6,23,.14) 50%, rgba(2,6,23,.94) 100%),
    url('teacher_login_hero.webp') center center/cover no-repeat!important;
}
.teacher-login-intro:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  background:
    linear-gradient(90deg, rgba(2,6,23,.06) 0%, rgba(2,6,23,.00) 48%, rgba(2,6,23,.18) 100%),
    radial-gradient(circle at 15% 10%, rgba(59,130,246,.17), transparent 32%)!important;
}
.teacher-login-intro:after{
  content:""!important;
  position:absolute!important;
  left:38%!important;
  right:38%!important;
  bottom:clamp(98px,15.5vh,158px)!important;
  height:2px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg, transparent, #2563eb, #7c3aed, transparent)!important;
  box-shadow:0 0 24px rgba(37,99,235,.95)!important;
}
.teacher-login-intro .teacher-logo-showcase,
.teacher-kicker{display:none!important}
.teacher-intro-copy{
  position:relative!important;
  z-index:2!important;
  max-width:620px!important;
  margin:0 auto clamp(10px,2vh,22px)!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  backdrop-filter:none!important;
}
.teacher-intro-copy h3{
  margin:0 0 clamp(4px,1vh,8px)!important;
  color:#f8fbff!important;
  font-size:clamp(20px,2vw,34px)!important;
  line-height:1.45!important;
  font-weight:1000!important;
  letter-spacing:-.4px!important;
  text-shadow:0 18px 44px rgba(0,0,0,.92)!important;
}
.teacher-intro-copy p{
  margin:0 auto!important;
  max-width:560px!important;
  color:rgba(239,246,255,.92)!important;
  font-size:clamp(12px,1.1vw,16px)!important;
  line-height:1.9!important;
  font-weight:850!important;
  text-shadow:0 12px 28px rgba(0,0,0,.82)!important;
}
.teacher-feature-list{
  position:relative!important;
  z-index:2!important;
  width:100%!important;
  max-width:560px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:0!important;
  direction:rtl!important;
}
.teacher-feature-list div{
  position:relative!important;
  min-height:clamp(72px,10vh,104px)!important;
  padding:clamp(46px,6.7vh,64px) 8px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  text-align:center!important;
}
.teacher-feature-list div:not(:last-child):after{
  content:""!important;
  position:absolute!important;
  top:clamp(14px,2.4vh,20px)!important;
  bottom:8px!important;
  left:0!important;
  width:1px!important;
  background:linear-gradient(180deg, transparent, rgba(96,165,250,.55), transparent)!important;
}
.teacher-feature-list div:before{
  content:""!important;
  position:absolute!important;
  top:0!important;
  left:50%!important;
  width:clamp(38px,4.9vh,54px)!important;
  height:clamp(38px,4.9vh,54px)!important;
  transform:translateX(-50%)!important;
  border-radius:15px!important;
  background:linear-gradient(135deg, rgba(37,99,235,.46), rgba(30,64,175,.24))!important;
  border:1px solid rgba(96,165,250,.35)!important;
  box-shadow:0 18px 34px rgba(37,99,235,.30), inset 0 1px 0 rgba(255,255,255,.16)!important;
}
.teacher-feature-list div:nth-child(1):before{content:"👥"!important;display:grid!important;place-items:center!important;font-size:clamp(18px,2.6vh,26px)!important;background-color:rgba(37,99,235,.34)!important}
.teacher-feature-list div:nth-child(2):before{content:"📈"!important;display:grid!important;place-items:center!important;font-size:clamp(18px,2.6vh,25px)!important;background-color:rgba(37,99,235,.34)!important}
.teacher-feature-list div:nth-child(3):before{content:"📅"!important;display:grid!important;place-items:center!important;font-size:clamp(18px,2.6vh,25px)!important;background-color:rgba(37,99,235,.34)!important}
.teacher-feature-list b{
  display:block!important;
  color:#fff!important;
  font-size:clamp(11px,1.1vw,14px)!important;
  font-weight:1000!important;
  line-height:1.55!important;
  text-shadow:0 10px 24px rgba(0,0,0,.82)!important;
}
.teacher-feature-list span{display:none!important}
.teacher-login-card-luxury{
  position:relative!important;
  direction:rtl!important;
  padding:clamp(18px,4.7vh,60px) clamp(34px,5.2vw,72px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:
    radial-gradient(circle at 72% 18%, rgba(37,99,235,.20), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(124,58,237,.15), transparent 32%),
    linear-gradient(145deg,#031024 0%,#020817 58%,#030b1b 100%)!important;
}
.teacher-login-card-luxury:before{
  content:""!important;
  position:absolute!important;
  inset:clamp(22px,4.8vh,50px) clamp(30px,4.2vw,50px)!important;
  border-radius:clamp(28px,4.8vh,42px)!important;
  border:2px solid rgba(37,99,235,.76)!important;
  box-shadow:0 0 0 1px rgba(96,165,250,.12),0 0 42px rgba(37,99,235,.34),inset 0 0 42px rgba(37,99,235,.10)!important;
  pointer-events:none!important;
}
.teacher-login-card-luxury:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  background:radial-gradient(circle at 52% 50%, rgba(37,99,235,.10), transparent 42%)!important;
}
.teacher-card-shine{display:none!important}
.teacher-login-card-luxury > *{
  position:relative!important;
  z-index:2!important;
  width:min(620px,100%)!important;
}
.teacher-card-header{
  display:grid!important;
  grid-template-columns:1fr clamp(86px,12vh,130px)!important;
  align-items:start!important;
  gap:clamp(12px,2vw,24px)!important;
  margin:0 0 clamp(18px,3.6vh,36px)!important;
  direction:rtl!important;
}
.teacher-card-header > div:first-child{
  grid-column:1!important;
  padding-top:clamp(4px,2vh,18px)!important;
  text-align:right!important;
}
.teacher-card-header span{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  color:#7db7ff!important;
  font-size:clamp(13px,1.35vw,16px)!important;
  font-weight:1000!important;
  margin-bottom:clamp(12px,2vh,22px)!important;
}
.teacher-card-header span:after{content:"🛡️"!important;font-size:clamp(16px,2.2vh,21px)!important;filter:drop-shadow(0 0 12px rgba(59,130,246,.55))!important}
.teacher-card-header h2{
  margin:0!important;
  color:#fff!important;
  font-size:clamp(34px,4.2vw,56px)!important;
  line-height:1.15!important;
  font-weight:1000!important;
  letter-spacing:-1px!important;
  text-shadow:0 18px 44px rgba(0,0,0,.80)!important;
}
.teacher-lock-icon{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:start!important;
  width:clamp(84px,12vh,128px)!important;
  height:clamp(84px,12vh,128px)!important;
  border-radius:clamp(22px,3.2vh,32px)!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg, rgba(30,64,175,.58), rgba(30,27,75,.62))!important;
  border:1px solid rgba(96,165,250,.45)!important;
  box-shadow:0 0 0 1px rgba(59,130,246,.20),0 0 28px rgba(37,99,235,.62),inset 0 1px 0 rgba(255,255,255,.16)!important;
}
.teacher-lock-icon img{
  width:clamp(52px,7.6vh,82px)!important;
  height:clamp(52px,7.6vh,82px)!important;
  object-fit:contain!important;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.36))!important;
}
.teacher-login-error{width:min(620px,100%)!important;margin:0 0 12px!important;border-radius:20px!important}
.teacher-login-form-luxury{width:min(620px,100%)!important;display:grid!important;gap:clamp(7px,1.4vh,12px)!important}
.teacher-login-form-luxury label{
  color:#f8fbff!important;
  font-size:clamp(13px,1.35vw,16px)!important;
  font-weight:1000!important;
  margin:clamp(6px,1.4vh,12px) 0 0!important;
}
.teacher-input-wrap{position:relative!important}
.teacher-input-wrap input{
  height:clamp(56px,7.5vh,74px)!important;
  border-radius:clamp(17px,2.7vh,22px)!important;
  background:rgba(2,8,23,.62)!important;
  border:1.5px solid rgba(59,130,246,.68)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 22px rgba(37,99,235,.12)!important;
  color:#f8fbff!important;
  font-size:clamp(16px,1.65vw,20px)!important;
  font-weight:900!important;
  padding:0 clamp(62px,5.3vw,76px)!important;
  text-align:right!important;
}
.teacher-input-wrap input::placeholder{color:rgba(226,232,240,.66)!important}
.teacher-input-wrap input:focus{border-color:#2563eb!important;box-shadow:0 0 0 5px rgba(37,99,235,.18),0 0 36px rgba(37,99,235,.42),inset 0 1px 0 rgba(255,255,255,.08)!important}
.teacher-input-icon{
  right:auto!important;
  left:clamp(12px,1.7vw,22px)!important;
  width:clamp(42px,5.6vh,48px)!important;
  height:clamp(42px,5.6vh,48px)!important;
  display:grid!important;
  place-items:center!important;
  border-radius:14px!important;
  background:linear-gradient(135deg, rgba(37,99,235,.54), rgba(30,64,175,.28))!important;
  color:#dbeafe!important;
  font-size:clamp(18px,2.3vh,22px)!important;
}
.teacher-password-toggle{
  left:auto!important;
  right:clamp(10px,1.2vw,14px)!important;
  height:clamp(40px,5.4vh,48px)!important;
  min-width:clamp(70px,6.5vw,84px)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(147,197,253,.16)!important;
  color:#dbeafe!important;
}
.teacher-login-submit{
  width:100%!important;
  height:clamp(58px,8.4vh,82px)!important;
  margin-top:clamp(14px,3vh,28px)!important;
  border-radius:clamp(18px,3vh,25px)!important;
  border:0!important;
  background:linear-gradient(135deg,#2563eb 0%,#3b49ff 43%,#8b22f5 100%)!important;
  color:#fff!important;
  font-size:clamp(20px,2.55vw,28px)!important;
  font-weight:1000!important;
  box-shadow:0 28px 70px rgba(37,99,235,.38), inset 0 1px 0 rgba(255,255,255,.22)!important;
}
.teacher-login-submit:hover{transform:translateY(-2px)!important;box-shadow:0 34px 82px rgba(37,99,235,.48), inset 0 1px 0 rgba(255,255,255,.24)!important}
.teacher-login-note{
  width:min(620px,100%)!important;
  margin-top:clamp(16px,3vh,30px)!important;
  min-height:clamp(52px,7.2vh,68px)!important;
  align-items:center!important;
  border-radius:clamp(18px,2.8vh,25px)!important;
  padding:clamp(10px,1.8vh,18px) clamp(16px,2.3vw,26px)!important;
  background:linear-gradient(135deg,rgba(30,64,175,.24),rgba(15,23,42,.50))!important;
  border:1px solid rgba(96,165,250,.22)!important;
  color:#f8fbff!important;
  font-size:clamp(12px,1.25vw,16px)!important;
  line-height:1.8!important;
  font-weight:900!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 20px 42px rgba(0,0,0,.22)!important;
}
.teacher-login-note span{
  order:-1!important;
  margin:0 0 0 12px!important;
  width:clamp(36px,5.2vh,42px)!important;
  height:clamp(36px,5.2vh,42px)!important;
  border-radius:14px!important;
  background:#22c55e!important;
  box-shadow:0 14px 24px rgba(34,197,94,.22)!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 clamp(36px,5.2vh,42px)!important;
}
.teacher-login-note span:before{content:"✓"!important;color:#fff!important;font-size:clamp(20px,3vh,26px)!important;font-weight:1000!important}
@media(max-height:760px) and (min-width:1081px){
  .teacher-intro-copy h3{font-size:24px!important;line-height:1.35!important}
  .teacher-intro-copy p{font-size:13px!important;line-height:1.75!important}
  .teacher-feature-list div{min-height:76px!important;padding-top:46px!important}
  .teacher-feature-list div:before{width:38px!important;height:38px!important;font-size:18px!important}
  .teacher-card-header{margin-bottom:18px!important}
  .teacher-lock-icon{width:88px!important;height:88px!important;border-radius:24px!important}
  .teacher-lock-icon img{width:58px!important;height:58px!important}
  .teacher-card-header span{margin-bottom:12px!important;font-size:13px!important}
  .teacher-card-header h2{font-size:42px!important}
  .teacher-input-wrap input{height:58px!important;font-size:16px!important}
  .teacher-login-submit{height:64px!important;font-size:22px!important;margin-top:18px!important}
  .teacher-login-note{margin-top:18px!important;min-height:54px!important;font-size:13px!important;line-height:1.7!important}
}
@media(max-width:1080px){
  body.teacher-login-luxury-page{height:auto!important;overflow:auto!important}
  .teacher-login-luxury-shell,.teacher-login-hero{height:auto!important;min-height:100vh!important}
  .teacher-login-layout{grid-template-columns:1fr!important;height:auto!important;min-height:100vh!important}
  .teacher-login-intro{height:520px!important;min-height:520px!important;padding:0 28px 48px!important;order:2!important}
  .teacher-login-card-luxury{height:auto!important;min-height:100vh!important;padding:70px 28px!important;order:1!important}
  .teacher-login-card-luxury:before{inset:28px!important;border-radius:34px!important}
}
@media(max-width:620px){
  .teacher-login-intro{display:none!important}
  .teacher-login-card-luxury{padding:44px 18px!important;min-height:100vh!important}
  .teacher-login-card-luxury:before{inset:14px!important;border-radius:28px!important}
  .teacher-card-header{grid-template-columns:1fr!important;text-align:center!important}
  .teacher-card-header > div:first-child{text-align:center!important}
  .teacher-lock-icon{grid-column:1!important;grid-row:auto!important;justify-self:center!important}
}

/* =========================================================
   teacher_login.asp v285 - reference fit repair
   هدف: همان طرح مرجع، اما بدون بریدن پایین عکس و بدون خروج اجزا از ارتفاع صفحه.
   منطق ورود، name/action فیلدها و Sessionها تغییر نکرده‌اند.
   ========================================================= */
body.teacher-login-luxury-page{
  height:100vh!important;
  min-height:100vh!important;
  overflow:hidden!important;
  background:#020817!important;
}
.teacher-login-luxury-shell,
.teacher-login-hero,
.teacher-login-layout{
  height:100vh!important;
  min-height:0!important;
}
.teacher-login-layout{
  grid-template-columns:50% 50%!important;
  gap:0!important;
}
.teacher-login-intro{
  height:100vh!important;
  min-height:0!important;
  padding:0!important;
  background:#020817 url('teacher_login_hero.webp') center center/cover no-repeat!important;
}
.teacher-login-intro:before,
.teacher-login-intro:after,
.teacher-login-intro .teacher-logo-showcase,
.teacher-login-intro .teacher-intro-copy,
.teacher-login-intro .teacher-feature-list{
  display:none!important;
}
.teacher-login-card-luxury{
  height:100vh!important;
  min-height:0!important;
  padding:clamp(18px,3.2vh,34px) clamp(38px,5vw,74px)!important;
  align-items:center!important;
  justify-content:center!important;
}
.teacher-login-card-luxury:before{
  inset:clamp(24px,4vh,44px) clamp(34px,4.8vw,58px)!important;
  border-radius:clamp(26px,4vh,40px)!important;
}
.teacher-login-card-luxury > *,
.teacher-login-error,
.teacher-login-form-luxury,
.teacher-login-note{
  width:min(610px,100%)!important;
  max-width:610px!important;
}
.teacher-card-header{
  width:min(610px,100%)!important;
  max-width:610px!important;
  grid-template-columns:1fr clamp(74px,10vh,104px)!important;
  margin-bottom:clamp(12px,2.4vh,24px)!important;
}
.teacher-lock-icon{
  width:clamp(74px,10vh,104px)!important;
  height:clamp(74px,10vh,104px)!important;
  border-radius:clamp(20px,2.7vh,28px)!important;
}
.teacher-lock-icon img{
  width:clamp(48px,6.7vh,68px)!important;
  height:clamp(48px,6.7vh,68px)!important;
}
.teacher-card-header h2{
  font-size:clamp(34px,3.8vw,52px)!important;
  line-height:1.15!important;
}
.teacher-card-header span{
  margin-bottom:clamp(8px,1.4vh,14px)!important;
}
.teacher-login-form-luxury{
  gap:clamp(6px,1vh,10px)!important;
}
.teacher-login-form-luxury label{
  margin:clamp(5px,1vh,10px) 0 0!important;
  font-size:clamp(13px,1.2vw,15px)!important;
}
.teacher-input-wrap input{
  height:clamp(54px,6.9vh,66px)!important;
  font-size:clamp(15px,1.35vw,18px)!important;
}
.teacher-input-icon{
  width:clamp(38px,5vh,46px)!important;
  height:clamp(38px,5vh,46px)!important;
}
.teacher-password-toggle{
  height:clamp(36px,4.8vh,42px)!important;
}
.teacher-login-submit{
  height:clamp(56px,7.4vh,70px)!important;
  margin-top:clamp(12px,2.2vh,20px)!important;
  font-size:clamp(19px,2vw,25px)!important;
}
.teacher-login-note{
  margin-top:clamp(12px,2.2vh,20px)!important;
  min-height:clamp(46px,6.2vh,58px)!important;
  padding:clamp(9px,1.4vh,13px) clamp(14px,2vw,22px)!important;
  font-size:clamp(11px,1vw,14px)!important;
  line-height:1.75!important;
}
.teacher-login-note span{
  width:clamp(32px,4.6vh,38px)!important;
  height:clamp(32px,4.6vh,38px)!important;
  flex-basis:clamp(32px,4.6vh,38px)!important;
}
@media(max-height:760px) and (min-width:1081px){
  .teacher-login-card-luxury{padding:16px 56px!important;}
  .teacher-login-card-luxury:before{inset:26px 50px!important;}
  .teacher-card-header{grid-template-columns:1fr 78px!important;margin-bottom:12px!important;}
  .teacher-lock-icon{width:78px!important;height:78px!important;border-radius:22px!important;}
  .teacher-lock-icon img{width:52px!important;height:52px!important;}
  .teacher-card-header h2{font-size:40px!important;}
  .teacher-card-header span{font-size:13px!important;margin-bottom:7px!important;}
  .teacher-input-wrap input{height:54px!important;font-size:15px!important;}
  .teacher-login-submit{height:58px!important;margin-top:12px!important;font-size:21px!important;}
  .teacher-login-note{margin-top:12px!important;min-height:46px!important;font-size:11.5px!important;padding:8px 15px!important;}
}
@media(max-width:1080px){
  body.teacher-login-luxury-page{height:auto!important;overflow:auto!important;}
  .teacher-login-luxury-shell,.teacher-login-hero,.teacher-login-layout{height:auto!important;min-height:100vh!important;}
  .teacher-login-layout{grid-template-columns:1fr!important;}
  .teacher-login-intro{height:430px!important;min-height:430px!important;order:2!important;background-size:cover!important;}
  .teacher-login-card-luxury{height:auto!important;min-height:100vh!important;order:1!important;padding:54px 22px!important;}
}
@media(max-width:620px){
  .teacher-login-intro{display:none!important;}
  .teacher-card-header{grid-template-columns:1fr!important;}
  .teacher-lock-icon{grid-column:1!important;justify-self:center!important;}
}

/* =========================================================
   v286 - Teacher Login exact reference fit repair
   فقط ظاهر صفحه ورود اساتید؛ منطق ورود و نام فیلدها تغییر نکرده است.
   هدف: فیت کامل تصویر مرجع، حذف بریدگی پایین، و اصلاح نمایش/مخفی رمز.
   ========================================================= */
body.teacher-login-luxury-page{
  min-height:100vh!important;
  overflow:hidden!important;
  background:#020817!important;
}
.teacher-login-luxury-shell{
  min-height:100vh!important;
  height:100vh!important;
  padding:0!important;
  display:grid!important;
  place-items:stretch!important;
}
.teacher-login-hero{
  width:100vw!important;
  height:100vh!important;
  min-height:0!important;
  display:block!important;
}
.teacher-login-topbar{display:none!important;}
.teacher-login-layout{
  width:100vw!important;
  height:100vh!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:50vw 50vw!important;
  gap:0!important;
  align-items:stretch!important;
  direction:ltr!important;
  overflow:hidden!important;
}
.teacher-login-intro,
.teacher-login-card-luxury{
  height:100vh!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.teacher-login-intro{
  direction:rtl!important;
  padding:0!important;
  display:block!important;
  background:#020817 url('teacher_login_hero.webp') center center/contain no-repeat!important;
}
.teacher-login-intro:before,
.teacher-login-intro:after,
.teacher-login-intro .teacher-logo-showcase,
.teacher-intro-copy,
.teacher-feature-list{
  display:none!important;
}
.teacher-login-card-luxury{
  direction:rtl!important;
  padding:clamp(22px,3.2vh,44px) clamp(34px,4.6vw,74px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:
    radial-gradient(circle at 70% 20%,rgba(37,99,235,.18),transparent 27%),
    radial-gradient(circle at 16% 88%,rgba(124,58,237,.18),transparent 34%),
    linear-gradient(145deg,#031024 0%,#020817 58%,#030b1b 100%)!important;
}
.teacher-login-card-luxury:before{
  content:""!important;
  position:absolute!important;
  inset:clamp(28px,5.4vh,56px) clamp(36px,5vw,70px)!important;
  border-radius:clamp(30px,4vw,44px)!important;
  border:2px solid rgba(37,99,235,.78)!important;
  box-shadow:0 0 44px rgba(37,99,235,.30),inset 0 0 42px rgba(37,99,235,.10)!important;
  pointer-events:none!important;
}
.teacher-login-card-luxury:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:radial-gradient(circle at 52% 50%,rgba(37,99,235,.12),transparent 42%)!important;
  pointer-events:none!important;
}
.teacher-card-shine{display:none!important;}
.teacher-login-card-luxury > *{
  position:relative!important;
  z-index:2!important;
  width:min(620px,76%)!important;
}
.teacher-card-header{
  display:grid!important;
  grid-template-columns:1fr clamp(86px,8vw,128px)!important;
  gap:clamp(14px,2vw,24px)!important;
  align-items:start!important;
  margin:0 0 clamp(22px,4vh,38px)!important;
  direction:rtl!important;
}
.teacher-card-header > div:first-child{
  grid-column:1!important;
  padding-top:clamp(8px,1.8vh,18px)!important;
  text-align:right!important;
}
.teacher-card-header span{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  color:#7db7ff!important;
  font-size:clamp(13px,1.2vw,16px)!important;
  font-weight:1000!important;
  margin-bottom:clamp(12px,2.8vh,24px)!important;
}
.teacher-card-header span:after{
  content:"🛡️"!important;
  font-size:clamp(16px,1.5vw,21px)!important;
}
.teacher-card-header h2{
  margin:0!important;
  color:#fff!important;
  font-size:clamp(34px,3.8vw,56px)!important;
  line-height:1.18!important;
  font-weight:1000!important;
  letter-spacing:-.8px!important;
  text-shadow:0 18px 44px rgba(0,0,0,.80)!important;
}
.teacher-lock-icon{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:start!important;
  width:clamp(82px,8vw,124px)!important;
  height:clamp(82px,8vw,124px)!important;
  border-radius:clamp(22px,2.6vw,32px)!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg,rgba(30,64,175,.58),rgba(30,27,75,.62))!important;
  border:1px solid rgba(96,165,250,.45)!important;
  box-shadow:0 0 0 1px rgba(59,130,246,.20),0 0 28px rgba(37,99,235,.54),inset 0 1px 0 rgba(255,255,255,.16)!important;
}
.teacher-lock-icon img{
  width:clamp(54px,5.6vw,80px)!important;
  height:clamp(54px,5.6vw,80px)!important;
  object-fit:contain!important;
}
.teacher-login-form-luxury{
  width:min(620px,76%)!important;
  display:grid!important;
  gap:clamp(7px,1.2vh,12px)!important;
}
.teacher-login-form-luxury label:not(.teacher-password-check){
  color:#f8fbff!important;
  font-size:clamp(13px,1.2vw,16px)!important;
  font-weight:1000!important;
  margin:clamp(7px,1.5vh,13px) 0 1px!important;
}
.teacher-input-wrap{position:relative!important;}
.teacher-input-wrap input{
  width:100%!important;
  box-sizing:border-box!important;
  height:clamp(58px,7.2vh,74px)!important;
  border-radius:clamp(17px,2vw,23px)!important;
  background:rgba(2,8,23,.65)!important;
  border:1.5px solid rgba(59,130,246,.74)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 22px rgba(37,99,235,.13)!important;
  color:#f8fbff!important;
  font-size:clamp(16px,1.55vw,20px)!important;
  font-weight:900!important;
  padding:0 clamp(62px,5vw,78px) 0 clamp(22px,2.4vw,32px)!important;
  text-align:right!important;
}
.teacher-input-wrap input::placeholder{color:rgba(226,232,240,.66)!important;}
.teacher-input-wrap input:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 5px rgba(37,99,235,.18),0 0 36px rgba(37,99,235,.42),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.teacher-input-icon{
  right:clamp(12px,1.4vw,18px)!important;
  left:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:clamp(40px,4vw,50px)!important;
  height:clamp(40px,4vw,50px)!important;
  display:grid!important;
  place-items:center!important;
  border-radius:clamp(12px,1.4vw,15px)!important;
  background:linear-gradient(135deg,rgba(37,99,235,.54),rgba(30,64,175,.28))!important;
  color:#dbeafe!important;
  font-size:clamp(18px,1.7vw,23px)!important;
}
.teacher-password-toggle{display:none!important;}
.teacher-password-check{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  width:max-content!important;
  margin:clamp(4px,.8vh,8px) 0 0 auto!important;
  color:#dbeafe!important;
  font-size:clamp(13px,1.05vw,15px)!important;
  font-weight:900!important;
  cursor:pointer!important;
  user-select:none!important;
}
.teacher-password-check input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}
.teacher-password-check span{
  width:22px!important;
  height:22px!important;
  border-radius:7px!important;
  border:1.5px solid rgba(147,197,253,.55)!important;
  background:rgba(2,8,23,.52)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;
  display:grid!important;
  place-items:center!important;
}
.teacher-password-check input:checked + span{
  background:linear-gradient(135deg,#2563eb,#7c3aed)!important;
  border-color:#60a5fa!important;
}
.teacher-password-check input:checked + span:before{
  content:"✓"!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:1000!important;
}
.teacher-password-check b{font-weight:900!important;}
.teacher-login-submit{
  width:100%!important;
  height:clamp(64px,8.2vh,82px)!important;
  margin-top:clamp(12px,2.6vh,24px)!important;
  border-radius:clamp(20px,2.4vw,26px)!important;
  border:0!important;
  background:linear-gradient(135deg,#2563eb 0%,#3b49ff 43%,#8b22f5 100%)!important;
  color:#fff!important;
  font-size:clamp(19px,2.1vw,28px)!important;
  font-weight:1000!important;
  box-shadow:0 28px 70px rgba(37,99,235,.38),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
.teacher-login-note{
  width:min(620px,86%)!important;
  box-sizing:border-box!important;
  margin-top:clamp(14px,2.4vh,24px)!important;
  min-height:clamp(48px,6.2vh,62px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  border-radius:clamp(18px,2.2vw,25px)!important;
  padding:clamp(10px,1.4vh,14px) clamp(14px,1.7vw,20px)!important;
  background:linear-gradient(135deg,rgba(30,64,175,.24),rgba(15,23,42,.50))!important;
  border:1px solid rgba(96,165,250,.22)!important;
  color:#f8fbff!important;
  font-size:clamp(11.5px,.95vw,14px)!important;
  line-height:1.4!important;
  font-weight:900!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 20px 42px rgba(0,0,0,.22)!important;
}
.teacher-login-note span{
  order:-1!important;
  margin:0 0 0 12px!important;
  width:clamp(36px,4vw,44px)!important;
  height:clamp(36px,4vw,44px)!important;
  border-radius:14px!important;
  background:#22c55e!important;
  box-shadow:0 14px 24px rgba(34,197,94,.22)!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
}
.teacher-login-note span:before{
  content:"✓"!important;
  color:#fff!important;
  font-size:clamp(22px,2.2vw,28px)!important;
  font-weight:1000!important;
}
.teacher-login-error{
  width:min(620px,76%)!important;
  box-sizing:border-box!important;
  margin:0 0 14px!important;
}
@media(max-height:760px) and (min-width:1081px){
  .teacher-login-card-luxury > *,
  .teacher-login-form-luxury,
  .teacher-login-error{width:min(560px,78%)!important;}
  .teacher-login-note{width:min(620px,88%)!important;font-size:12px!important;}
  .teacher-card-header{margin-bottom:18px!important;}
  .teacher-card-header h2{font-size:38px!important;}
  .teacher-lock-icon{width:78px!important;height:78px!important;border-radius:22px!important;}
  .teacher-lock-icon img{width:52px!important;height:52px!important;}
  .teacher-input-wrap input{height:56px!important;font-size:16px!important;}
  .teacher-input-icon{width:38px!important;height:38px!important;font-size:18px!important;}
  .teacher-login-submit{height:60px!important;font-size:20px!important;margin-top:12px!important;}
  .teacher-login-note{min-height:50px!important;margin-top:14px!important;font-size:12px!important;padding:10px 16px!important;}
  .teacher-login-form-luxury label:not(.teacher-password-check){font-size:13px!important;margin-top:6px!important;}
}
@media(max-width:1080px){
  body.teacher-login-luxury-page{overflow:auto!important;}
  .teacher-login-layout{height:auto!important;min-height:100vh!important;grid-template-columns:1fr!important;}
  .teacher-login-intro{display:none!important;}
  .teacher-login-card-luxury{min-height:100vh!important;height:auto!important;padding:48px 18px!important;}
  .teacher-login-card-luxury:before{inset:16px!important;border-radius:28px!important;}
  .teacher-login-card-luxury > *,
  .teacher-login-form-luxury,
  .teacher-login-note,
  .teacher-login-error{width:min(560px,92vw)!important;}
  .teacher-card-header{grid-template-columns:1fr 78px!important;gap:12px!important;margin-bottom:24px!important;}
  .teacher-lock-icon{width:76px!important;height:76px!important;border-radius:22px!important;}
  .teacher-lock-icon img{width:54px!important;height:54px!important;}
  .teacher-card-header h2{font-size:34px!important;}
  .teacher-card-header span{font-size:14px!important;margin-bottom:12px!important;}
  .teacher-input-wrap input{height:62px!important;font-size:16px!important;padding-right:58px!important;}
  .teacher-input-icon{width:40px!important;height:40px!important;font-size:18px!important;right:11px!important;}
  .teacher-login-submit{height:66px!important;font-size:20px!important;}
}


/* v288 - subtle quick navigation buttons on teacher login */
.teacher-login-quick-links{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}
.teacher-login-quick-link{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 12px;
  border-radius:16px;
  text-decoration:none;
  color:#dbeafe;
  font-size:12.5px;
  font-weight:950;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(147,197,253,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:.22s ease;
  white-space:nowrap;
}
.teacher-login-quick-link.primary{
  color:#fff;
  background:linear-gradient(135deg,rgba(37,99,235,.22),rgba(124,58,237,.20));
  border-color:rgba(96,165,250,.30);
}
.teacher-login-quick-link span{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(37,99,235,.18);
  border:1px solid rgba(147,197,253,.16);
  flex:0 0 auto;
}
.teacher-login-quick-link:hover{
  transform:translateY(-1px);
  border-color:rgba(96,165,250,.44);
  box-shadow:0 14px 28px rgba(37,99,235,.15), inset 0 1px 0 rgba(255,255,255,.08);
}
@media(max-width:620px){
  .teacher-login-quick-links{grid-template-columns:1fr}
  .teacher-login-quick-link{white-space:normal;text-align:center}
}
