:root{--g:#176b31;--g2:#2e7d32;--gold:#d4af37;--beige:#f5f0e6;--text:#172219}*{box-sizing:border-box}body{margin:0;background:linear-gradient(135deg,#f8f8f4,#f3eee0);font-family:Inter,Arial,sans-serif;color:var(--text)}.student-login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 15% 10%,rgba(212,175,55,.22),transparent 28rem),linear-gradient(130deg,#0f4a25,#1e6d34 55%,#927d20)}.student-login-wrap{width:min(940px,94vw);display:grid;grid-template-columns:.9fr 1.1fr;border-radius:28px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.25)}.student-login-brand{background:linear-gradient(150deg,#104821,#1d6a31);color:#fff;padding:55px;display:flex;flex-direction:column;justify-content:center}.portal-logo{width:70px;height:70px;border-radius:22px;background:#fff;color:var(--g);display:grid;place-items:center;font-size:34px;margin-bottom:20px}.student-login-brand h2{font-size:42px;margin:0;font-weight:900}.student-login-brand span{letter-spacing:.17em;font-size:11px}.student-login-brand p{margin-top:22px;color:#f0d873;font-size:18px}.student-login-card{background:#fff;padding:48px}.portal-eyebrow{font-size:11px;font-weight:900;color:#b58d1c;letter-spacing:.12em}.student-login-card h3{font-size:32px;font-weight:900;margin:7px 0}.student-login-card>p{color:#758078;margin-bottom:26px}.student-login-card label{font-size:13px;font-weight:700;margin:13px 0 6px}.portal-input{position:relative}.portal-input i{position:absolute;left:14px;top:13px;color:#6f7b72}.portal-input input{width:100%;height:48px;border:1px solid #ddd8ce;border-radius:12px;padding:0 14px 0 40px}.student-login-card button{width:100%;height:48px;border:0;border-radius:12px;margin-top:20px;background:linear-gradient(100deg,#176b31,#2e7d32 65%,#c9a82e);color:#fff;font-weight:800}.login-note{display:block;color:#8a918b;margin-top:15px}.back-site{display:inline-block;margin-top:22px;color:#256d35;text-decoration:none}.student-topbar{height:76px;background:#fff;border-bottom:1px solid #e7e1d7;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1280px)/2));position:sticky;top:0;z-index:5}.student-brand{display:flex;align-items:center;gap:10px;color:#183322;text-decoration:none}.student-brand>span{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#176b31,#2e7d32 65%,#d4af37);color:#fff;display:grid;place-items:center}.student-brand b,.student-brand small{display:block}.student-brand b{font-size:18px}.student-brand small{font-size:8px;letter-spacing:.12em}.student-top-user{display:flex;align-items:center;gap:18px}.student-top-user b,.student-top-user small{display:block;text-align:right}.student-top-user small{font-size:11px;color:#8c938d}.student-top-user a{text-decoration:none;color:#aa3434;font-size:13px}.student-main{max-width:1280px;margin:0 auto;padding:30px 22px 50px}.student-welcome{padding:26px 28px;border-radius:22px;background:linear-gradient(115deg,#fff,#fbf7e9);border:1px solid #e6decf;box-shadow:0 14px 40px rgba(24,69,31,.07);display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.student-welcome span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#b48a19}.student-welcome h1{margin:6px 0 3px;font-size:30px;font-weight:900}.student-welcome p{margin:0;color:#768078}.student-roll{padding:12px 16px;border-radius:14px;background:#eff6eb;text-align:right}.student-roll small,.student-roll b{display:block}.student-roll small{font-size:10px;color:#7c857d}.student-kpi,.student-panel{background:#fff;border:1px solid #e7e1d5;border-bottom:4px solid #d4af37;border-radius:17px;box-shadow:0 10px 28px rgba(24,63,30,.06)}.student-kpi{padding:18px}.student-kpi i{width:38px;height:38px;border-radius:11px;background:#eef6eb;color:#26733a;display:grid;place-items:center}.student-kpi span,.student-kpi strong{display:block}.student-kpi span{font-size:11px;color:#7c857e;margin-top:12px}.student-kpi strong{font-size:22px;margin-top:2px}.student-kpi.paid{border-bottom-color:#2e7d32}.student-kpi.due{border-bottom-color:#d29c2c}.student-panel{padding:20px}.student-panel-head small{font-size:9px;font-weight:900;color:#b58d1c;letter-spacing:.12em}.student-panel-head h4{font-size:18px;font-weight:900;margin:3px 0 15px}.course-chip-list{display:flex;flex-wrap:wrap;gap:10px}.course-chip-list span{padding:10px 13px;border-radius:12px;background:#eff6eb;color:#225f31;font-weight:700;font-size:13px}.course-chip-list i{margin-right:7px}.student-table{font-size:13px}.student-table th{font-size:10px;color:#777;text-transform:uppercase;background:#f8f6f0}.voucher-list,.certificate-list{display:flex;flex-direction:column;gap:9px}.voucher-item,.certificate-list a{display:flex;align-items:center;gap:10px;border:1px solid #ece7dd;border-radius:13px;padding:12px;text-decoration:none;color:#1d2920;background:#fff}.voucher-icon{width:38px;height:38px;border-radius:11px;background:#f5efda;color:#987716;display:grid;place-items:center}.voucher-item b,.voucher-item span,.voucher-item strong,.voucher-item small,.certificate-list b,.certificate-list span{display:block}.voucher-item span,.certificate-list span{font-size:10px;color:#899089;margin-top:2px}.voucher-item strong{font-size:13px}.voucher-item small{font-size:9px;font-weight:900;margin-top:3px}.voucher-item small.paid{color:#1a7a31}.voucher-item small.pending{color:#a5740b}.certificate-list>a>i:first-child{font-size:25px;color:#25803b}.empty-state{padding:22px;text-align:center;color:#899089;background:#f8f7f2;border-radius:12px}.voucher-page,.certificate-student-page{padding:35px;background:#f5f0e6;min-height:100vh}.voucher-sheet{max-width:760px;margin:auto;background:#fff;padding:35px;border-radius:20px;border:2px solid #2e7d32;box-shadow:0 20px 55px rgba(0,0,0,.12)}.voucher-brand{text-align:center;border-bottom:2px solid #d4af37;padding-bottom:15px}.voucher-brand b,.voucher-brand span{display:block}.voucher-brand b{color:#1c6b31;font-size:24px}.voucher-brand span{margin-top:5px;color:#777}.voucher-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:25px 0}.voucher-grid div{padding:12px;background:#f8f6ef;border-radius:11px}.voucher-grid small,.voucher-grid b{display:block}.voucher-grid small{color:#808781}.voucher-title{text-align:center;font-size:18px;font-weight:800}.voucher-amount{text-align:center;margin:20px 0;padding:18px;border-radius:14px;background:linear-gradient(100deg,#176b31,#2e7d32 65%,#b59a28);color:#fff}.voucher-amount span,.voucher-amount strong{display:block}.voucher-amount strong{font-size:32px}.voucher-status{text-align:center;margin-bottom:15px}.student-cert-toolbar{max-width:1120px;margin:0 auto 15px;display:flex;justify-content:space-between}@media(max-width:760px){.student-login-wrap{grid-template-columns:1fr}.student-login-brand{display:none}.student-login-card{padding:30px}.student-welcome{align-items:flex-start;gap:15px;flex-direction:column}.student-top-user>div{display:none}.voucher-grid{grid-template-columns:1fr}}
@media print{.no-print{display:none!important}.voucher-page,.certificate-student-page{padding:0;background:#fff}.voucher-sheet{box-shadow:none;border-radius:0}}

/* V29 — Student payment confirmation workflow */
.student-payment-cta{display:flex;align-items:center;gap:14px;padding:17px 18px;margin-bottom:22px;border-radius:18px;background:linear-gradient(110deg,#145b2a,#297a35 65%,#b99525);color:#fff;box-shadow:0 14px 32px rgba(25,78,36,.13)}
.student-payment-cta-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;flex:0 0 48px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);font-size:1.2rem}
.student-payment-cta small,.student-payment-cta h4,.student-payment-cta p{display:block;margin:0}.student-payment-cta small{font-size:9px;letter-spacing:.12em;color:#f0da7d;font-weight:900}.student-payment-cta h4{font-size:17px;font-weight:900;margin-top:2px}.student-payment-cta p{font-size:12px;color:rgba(255,255,255,.82);margin-top:3px}
.student-payment-cta>a{white-space:nowrap;text-decoration:none;color:#183520;background:#f4d965;padding:10px 13px;border-radius:11px;font-size:12px;font-weight:900}
.student-portal-alert{border:0;border-radius:14px;box-shadow:0 8px 22px rgba(27,87,39,.08)}
.voucher-pay-link{display:inline-block;margin-top:5px;padding:4px 7px;border-radius:7px;background:#e7f4e5;color:#1d7132!important;font-size:9px!important;font-weight:900;cursor:pointer}
.submission-status-list{display:flex;flex-direction:column;gap:8px}
.submission-status-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #ece6d9;border-radius:11px;background:#fffdf8}.submission-status-item b,.submission-status-item span{display:block}.submission-status-item span{font-size:10px;color:#879087;margin-top:2px}.submission-status-item>small{padding:5px 7px;border-radius:999px;font-size:8px;font-weight:900}.submission-status-item>small.pending{background:#fff0cb;color:#9d6d08}.submission-status-item>small.approved{background:#e3f5e5;color:#166b2d}.submission-status-item>small.rejected{background:#ffe8e8;color:#ac3838}
.payment-submit-welcome .student-back-btn{padding:9px 12px;border-radius:10px;background:#fff;color:#246c35;text-decoration:none;border:1px solid #dae5d8;font-size:12px;font-weight:800}
.payment-submit-panel{padding:24px}
.selected-voucher-box{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #e6d99e;border-radius:14px;background:linear-gradient(135deg,#fffdf5,#f9f3d7);margin-bottom:18px}.selected-voucher-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#176b31,#d1ad2d);color:#fff;display:grid;place-items:center}.selected-voucher-box small,.selected-voucher-box b,.selected-voucher-box span{display:block}.selected-voucher-box small{font-size:8px;color:#a17c15;font-weight:900;letter-spacing:.09em}.selected-voucher-box span{font-size:10px;color:#7e867e;margin-top:2px}.selected-voucher-box>strong{margin-left:auto}
.student-form-label{font-size:12px;font-weight:800;margin-bottom:6px}.student-form-label span{font-weight:500;color:#8a918b}.student-form-control{min-height:47px;border-radius:11px;border-color:#dfdbd0}.student-money-input{position:relative}.student-money-input>span{position:absolute;left:12px;top:13px;color:#617064;font-weight:800}.student-money-input input{padding-left:39px}
.student-upload-box{display:flex;align-items:center;gap:12px;padding:16px;border:1.5px dashed #b8cdb8;border-radius:14px;background:#f7fbf5;cursor:pointer}.student-upload-box>i{font-size:27px;color:#28743b}.student-upload-box b,.student-upload-box span{display:block}.student-upload-box span{font-size:10px;color:#818a82;margin-top:2px}.student-upload-box>small{margin-left:auto;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#267039}
.student-submit-payment-btn{border:0;padding:12px 18px;border-radius:12px;background:linear-gradient(105deg,#176b31,#2e7d32 65%,#c8a72c);color:#fff;font-weight:900;box-shadow:0 10px 22px rgba(31,104,46,.16)}
.payment-help-card{text-align:center}.payment-help-icon{width:55px;height:55px;margin:0 auto 12px;border-radius:16px;background:linear-gradient(135deg,#176b31,#d0ad32);color:#fff;display:grid;place-items:center;font-size:1.35rem}.payment-help-card h4{font-size:18px;font-weight:900}.payment-help-card p,.payment-help-card li{font-size:12px;color:#727c73;line-height:1.6}.payment-help-card ul{text-align:left;padding-left:18px;margin-bottom:0}
.payment-pending-stat{display:flex;align-items:center;gap:12px;padding:12px;border-radius:13px;background:#fff5d9}.payment-pending-stat>i{width:40px;height:40px;border-radius:11px;background:#f1d46f;display:grid;place-items:center;color:#7e610e}.payment-pending-stat strong,.payment-pending-stat span{display:block}.payment-pending-stat strong{font-size:20px}.payment-pending-stat span{font-size:10px;color:#7b817c}.payment-balance-line{display:flex;justify-content:space-between;margin-top:12px;font-size:12px}
@media(max-width:760px){.student-payment-cta{align-items:flex-start;flex-wrap:wrap}.student-payment-cta>a{width:100%;text-align:center}.student-upload-box{align-items:flex-start}.student-upload-box>small{margin-left:0}}

/* V30 Student profile + chat */
.student-nav-roll{position:absolute;left:50%;transform:translateX(-50%);text-align:center;min-width:230px;padding:7px 18px;border-radius:13px;background:linear-gradient(105deg,#f5f7ed,#fff8df);border:1px solid #e6d896}.student-nav-roll small,.student-nav-roll b{display:block}.student-nav-roll small{font-size:8px;letter-spacing:.12em;color:#9b7918;font-weight:900}.student-nav-roll b{font-size:17px;color:#153b21;letter-spacing:.035em}.student-welcome-photo{text-decoration:none;text-align:center;color:#287139;min-width:105px}.student-welcome-photo img,.student-welcome-photo>div{width:88px;height:88px;border-radius:24px;margin:0 auto 5px;border:3px solid #e7d582;box-shadow:0 10px 22px rgba(25,75,34,.12);object-fit:cover}.student-welcome-photo>div{display:grid;place-items:center;background:linear-gradient(135deg,#eaf4e7,#f4e8b4);font-size:2rem}.student-welcome-photo small{font-size:10px;font-weight:850}.student-chat-top{position:relative}.student-chat-top span{position:absolute;top:-6px;right:-8px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#d5af32;color:#193d22;font-size:8px;font-weight:900}.student-notifications{margin-bottom:18px;padding:14px 16px;background:#fff;border:1px solid #e8e0c9;border-radius:16px;border-bottom:3px solid #d4af37}.student-notifications-title{display:flex;gap:8px;align-items:center;color:#236c34;margin-bottom:8px}.student-notification-item{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-top:1px dashed #e8e1d2}.student-notification-item b,.student-notification-item p{display:block}.student-notification-item b{font-size:12px}.student-notification-item p{font-size:11px;color:#747d75;margin:2px 0 0}.student-notification-item>small{white-space:nowrap;font-size:9px;color:#979d97}.student-notification-item.warning b{color:#9b5d13}.student-profile-page{max-width:900px;margin:0 auto}.student-profile-upload-grid{display:grid;grid-template-columns:280px 1fr;gap:28px;align-items:center}.student-profile-preview{text-align:center}.student-profile-preview img,.student-photo-empty{width:220px;height:220px;border-radius:30px;object-fit:cover;border:4px solid #e4d282;margin:0 auto 9px;box-shadow:0 14px 30px rgba(24,72,32,.12)}.student-photo-empty{display:grid;place-items:center;background:#edf3e9;color:#6e826f;font-size:4rem}.student-profile-preview span{display:block;font-size:11px;color:#717a72}.photo-review-pill{display:inline-block!important;width:max-content;margin:4px auto!important;padding:5px 8px;border-radius:999px}.photo-review-pill.pending{background:#fff0c9;color:#90650a}.photo-review-pill.reviewed{background:#e3f4e5;color:#176b31}.profile-upload-help{display:flex;gap:10px;padding:12px;margin-top:12px;border-radius:13px;background:#f6f5ed}.profile-upload-help i{font-size:1.2rem;color:#b48e1f}.profile-upload-help b,.profile-upload-help span{display:block}.profile-upload-help span{font-size:10px;color:#808780;margin-top:2px}.student-chat-layout{max-width:1000px;margin:0 auto}.student-chat-box{padding:0;overflow:hidden}.chat-security-note{font-size:9px;color:#647066}.chat-thread{height:520px;overflow:auto;padding:18px;background:#f8f7f2}.chat-message{display:flex;margin-bottom:10px}.chat-message.mine{justify-content:flex-end}.chat-bubble{max-width:75%;padding:10px 12px;border-radius:15px;background:#fff;border:1px solid #e8e2d7}.chat-message.mine .chat-bubble{background:#e5f2e3;border-color:#c9dfc6}.chat-bubble>small,.chat-bubble time{display:block}.chat-bubble>small{font-size:8px;font-weight:900;color:#247137}.chat-bubble p{font-size:12px;white-space:pre-wrap;margin:4px 0 7px}.chat-bubble time{font-size:8px;color:#909891;margin-top:6px}.chat-attachment{display:flex;align-items:center;gap:8px;padding:8px;border-radius:10px;background:#fff9e3;text-decoration:none;color:#4e492b;font-size:11px}.chat-attachment span small{display:block;color:#8a8b7e}.student-chat-form{display:grid;grid-template-columns:1fr auto auto;gap:8px;padding:13px;border-top:1px solid #e7e0d2}.student-chat-form textarea{resize:none;border:1px solid #ded8cc;border-radius:11px;padding:9px}.chat-file-btn{width:44px;height:44px;border-radius:11px;background:#f0f4ed;display:grid;place-items:center;cursor:pointer;color:#226d35}.student-chat-form button{height:44px;border:0;border-radius:11px;padding:0 16px;background:linear-gradient(105deg,#176b31,#d0ad31);color:#fff;font-weight:850}@media(max-width:800px){.student-nav-roll{position:static;transform:none;min-width:0}.student-topbar{gap:10px;flex-wrap:wrap}.student-profile-upload-grid{grid-template-columns:1fr}.student-profile-preview img,.student-photo-empty{width:170px;height:170px}.student-welcome-photo img,.student-welcome-photo>div{width:74px;height:74px}.student-chat-form{grid-template-columns:1fr auto}.student-chat-form button{grid-column:1/-1}.chat-bubble{max-width:90%}}

/* V50 student portal navigation + realtime */
.student-topbar-v50{padding-left:max(18px,calc((100vw - 1280px)/2));padding-right:max(18px,calc((100vw - 1280px)/2));gap:12px}
.student-nav-left{margin-left:auto;margin-right:280px}
.student-nav-btn{height:38px;padding:0 12px;border:1px solid #e7e0d5;border-radius:11px;display:inline-flex!important;align-items:center;gap:7px;background:#fff;color:#225f31!important;font-weight:750;font-size:12px!important;white-space:nowrap;box-shadow:0 5px 15px rgba(24,69,31,.04)}
.student-nav-btn:hover,.student-nav-btn.active{background:linear-gradient(105deg,#176b31,#2e7d32 70%,#c4a82c);color:#fff!important;border-color:transparent}
.student-top-user-v50{gap:9px}.student-user-name{padding:0 6px}.student-logout-link{display:inline-flex!important;align-items:center;gap:5px;white-space:nowrap}
.student-live-dot{position:absolute!important;top:-7px!important;right:-8px!important;min-width:20px!important;height:20px!important;padding:0 5px!important;border-radius:999px!important;display:grid!important;place-items:center!important;background:#d4af37!important;color:#143d22!important;font-size:9px!important;font-style:normal!important;font-weight:900!important;border:2px solid #fff}
.student-photo-guide{display:block!important;margin-top:4px!important;font-size:8.5px!important;line-height:1.3!important;color:#7b837d!important;font-weight:600!important}
.chat-live-pill{display:inline-flex;align-items:center;gap:5px;margin-left:7px;padding:3px 7px;border-radius:999px;background:#e8f6e6;color:#176b31;font:800 9px/1 Inter,Arial,sans-serif;vertical-align:middle}.chat-live-pill i{width:7px;height:7px;border-radius:50%;background:#2db84d;box-shadow:0 0 0 4px rgba(45,184,77,.12)}
@media(max-width:1200px){.student-nav-left{margin-right:230px}.student-nav-btn span{display:none}.student-nav-btn{width:38px;justify-content:center;padding:0}.student-user-name{display:none}}
@media(max-width:850px){.student-topbar-v50{height:auto;min-height:76px;padding-top:8px;padding-bottom:8px;flex-wrap:wrap}.student-nav-left{margin:0}.student-nav-roll{order:4;width:100%}.student-top-user-v50{margin-left:auto}.student-brand small{display:none}}

/* V51 chat alignment + image preview */
.chat-thread{display:flex;flex-direction:column;gap:12px;padding:18px 20px;background:#f8f7f2;scroll-behavior:smooth}.chat-message{display:flex;width:100%;margin:0}.chat-message.mine{justify-content:flex-end}.chat-message.theirs{justify-content:flex-start}.chat-message.mine .chat-bubble{margin-left:auto}.chat-message.theirs .chat-bubble{margin-right:auto}.chat-bubble{position:relative;min-width:105px;max-width:min(72%,620px);box-shadow:0 3px 10px rgba(24,65,31,.035)}
.chat-image-preview{display:block;position:relative;width:min(310px,100%);padding:0;margin:7px 0 3px;border:0;border-radius:12px;overflow:hidden;background:#eef3ea;cursor:pointer;text-align:left}.chat-image-preview img{display:block;width:100%;max-height:240px;object-fit:cover;background:#edf0e9}.chat-image-preview span{position:absolute;left:9px;bottom:9px;padding:5px 8px;border-radius:999px;background:rgba(10,48,25,.82);color:#fff;font-size:9px;font-weight:800;backdrop-filter:blur(4px)}
.chat-preview-modal{position:fixed;inset:0;z-index:5000;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(3,18,9,.72);backdrop-filter:blur(7px)}.chat-preview-modal.show{display:flex}.chat-preview-dialog{width:min(940px,96vw);max-height:92vh;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.34)}.chat-preview-head,.chat-preview-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}.chat-preview-head{border-bottom:1px solid #e8e4d9}.chat-preview-head small,.chat-preview-head b{display:block}.chat-preview-head small{font-size:8px;letter-spacing:.12em;color:#b18717;font-weight:900}.chat-preview-head b{font-size:14px;color:#18331f;max-width:680px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-preview-close{width:38px;height:38px;border:0;border-radius:10px;background:#f1f3ed;color:#315d39}.chat-preview-body{height:min(68vh,700px);display:flex;align-items:center;justify-content:center;padding:14px;background:#17231a}.chat-preview-body img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}.chat-preview-foot{border-top:1px solid #e8e4d9;justify-content:flex-end}.chat-preview-download{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border-radius:10px;background:linear-gradient(105deg,#176b31,#c9a928);color:#fff;text-decoration:none;font-weight:850}
@media(max-width:700px){.chat-bubble{max-width:88%}.chat-image-preview{width:min(260px,100%)}.chat-preview-body{height:60vh}}


/* V52 — Student dashboard header, photo and chat header refinements */
.student-topbar-v50{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  min-height:76px;
}
.student-topbar-v50 .student-brand{flex:0 0 auto}
.student-nav-left{margin-left:auto!important;margin-right:0!important;display:flex!important;align-items:center!important}
.student-nav-roll{
  position:static!important;
  left:auto!important;
  transform:none!important;
  flex:0 0 auto!important;
  min-width:220px!important;
  height:52px!important;
  padding:7px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
.student-top-user-v50{flex:0 0 auto!important;margin-left:0!important;display:flex!important;align-items:center!important}

.student-welcome{min-height:178px!important;padding-right:22px!important}
.student-welcome>div:first-child{min-width:0;flex:1 1 auto}
.student-welcome-photo{
  position:relative!important;
  flex:0 0 210px!important;
  width:210px!important;
  height:150px!important;
  min-width:210px!important;
  overflow:hidden!important;
  border-radius:20px!important;
  border:3px solid #e2c954!important;
  box-shadow:0 12px 28px rgba(22,77,35,.14)!important;
  background:transparent!important;
  display:block!important;
  text-decoration:none!important;
}
.student-welcome-photo img,.student-welcome-photo>div{
  width:100%!important;
  height:100%!important;
  margin:0!important;
  border:0!important;
  border-radius:17px!important;
  box-shadow:none!important;
  object-fit:cover!important;
  display:block!important;
}
.student-welcome-photo>div{display:grid!important;place-items:center!important;font-size:3rem!important;background:linear-gradient(135deg,#eaf4e7,#f4e8b4)!important}
.student-welcome-photo>small{
  position:absolute!important;
  right:8px!important;
  top:8px!important;
  z-index:2!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:rgba(9,59,28,.88)!important;
  color:#fff!important;
  font-size:8px!important;
  font-weight:850!important;
  backdrop-filter:blur(4px)
}
.student-photo-guide{
  position:absolute!important;
  left:8px!important;
  bottom:8px!important;
  z-index:2!important;
  margin:0!important;
  padding:5px 7px!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.88)!important;
  color:#3f5144!important;
  font-size:7.5px!important;
  line-height:1.25!important;
  text-align:left!important;
  box-shadow:0 3px 10px rgba(0,0,0,.08)
}

.student-chat-box .student-panel-head{
  min-height:96px!important;
  padding:18px 20px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  background:linear-gradient(105deg,#155f2b,#2e7d32 68%,#a38d20)!important;
  color:#fff!important;
  border-bottom:1px solid rgba(255,255,255,.16)!important;
}
.student-chat-box .student-panel-head>div{min-width:0}
.student-chat-box .student-panel-head small{color:#f2d96f!important}
.student-chat-box .student-panel-head h4{color:#fff!important;margin:3px 0 0!important;font-size:20px!important}
.student-chat-box .chat-security-note{color:rgba(255,255,255,.83)!important;white-space:nowrap}
.student-chat-box .chat-live-pill{background:rgba(255,255,255,.16)!important;color:#fff!important}
.student-chat-box .chat-live-pill i{background:#67e27d!important;box-shadow:0 0 0 4px rgba(103,226,125,.13)!important}

@media(max-width:1100px){
 .student-nav-roll{min-width:190px!important}
 .student-topbar-v50 .student-nav-btn span{display:none}
 .student-topbar-v50 .student-nav-btn{width:38px!important;padding:0!important;justify-content:center!important}
 .student-user-name{display:none!important}
}
@media(max-width:850px){
 .student-topbar-v50{flex-wrap:wrap!important;height:auto!important;padding-top:8px!important;padding-bottom:8px!important}
 .student-nav-left{margin-left:0!important;order:2}
 .student-nav-roll{order:4!important;width:100%!important;min-width:0!important}
 .student-top-user-v50{margin-left:auto!important;order:3}
 .student-welcome-photo{width:100%!important;max-width:300px!important;flex-basis:190px!important;height:190px!important}
 .student-chat-box .student-panel-head{align-items:flex-start!important;flex-direction:column!important;min-height:auto!important}
 .student-chat-box .chat-security-note{white-space:normal}
}


/* V54: clean dashboard photo block */
.student-welcome-photo-wrap{
  flex:0 0 210px!important;
  width:210px!important;
  min-width:210px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
}
.student-welcome-photo-wrap .student-welcome-photo{
  flex:0 0 auto!important;
  width:210px!important;
  height:150px!important;
  min-width:210px!important;
  margin:0!important;
}
.student-welcome-photo-wrap .student-welcome-photo small,
.student-welcome-photo-wrap .student-photo-guide{display:none!important}
.student-photo-change-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-height:30px!important;
  padding:6px 12px!important;
  border-radius:999px!important;
  background:linear-gradient(105deg,#176b31,#2e7d32 65%,#c7a72b)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:800!important;
  box-shadow:0 6px 14px rgba(24,88,43,.16)!important;
  white-space:nowrap!important;
}
.student-photo-change-btn:hover{color:#fff!important;transform:translateY(-1px)}
@media(max-width:850px){
  .student-welcome-photo-wrap{width:100%!important;max-width:300px!important;flex-basis:auto!important}
  .student-welcome-photo-wrap .student-welcome-photo{width:100%!important;max-width:300px!important;height:190px!important;min-width:0!important}
}


/* V66 Global Academy Logo */
.academy-global-logo{display:block;object-fit:contain;object-position:left center}
.student-header-logo{width:auto;max-width:230px;height:52px;max-height:52px}
.student-login-logo{width:auto;max-width:280px;height:100px;max-height:100px;object-position:center}
.student-login-brand:has(.student-login-logo){align-items:center;text-align:center}
@media(max-width:850px){.student-header-logo{max-width:180px;height:44px}.student-login-logo{max-width:230px;height:80px}}
