/* ════════════════════════════════════════════════════════════════
   EDU360 PWA Styles v2 — Login premium, splash, install, toasts
   ════════════════════════════════════════════════════════════════ */

/* ── Splash Screen ───────────────────────────────────────────────── */
#edu360-splash {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  pointer-events: all;
  transition: opacity .5s ease, transform .5s ease;
}
.sp-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #020817 0%, #0f172a 35%, #1e3a8a 70%, #0ea5e9 100%);
}
.sp-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.sp-logo-wrap {
  position: relative; width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 28px;
}
.sp-logo-img {
  width: 96px; height: 96px; border-radius: 22px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 20px 50px rgba(0,0,0,.5);
  animation: sp-pop .65s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes sp-pop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.sp-logo-ring {
  position: absolute; inset: -10px; border-radius: 32px;
  border: 2px solid rgba(96,165,250,.5);
  animation: sp-ring-spin 4s linear infinite;
  box-shadow: 0 0 20px rgba(96,165,250,.2);
}
@keyframes sp-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.sp-brand {
  font-size: 38px; font-weight: 900; color: #fff;
  letter-spacing: 4px; text-shadow: 0 2px 24px rgba(14,165,233,.7);
  animation: sp-up .6s .35s ease both;
}
.sp-tagline {
  font-size: 13px; color: rgba(255,255,255,.6); font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; margin-top: 8px;
  animation: sp-up .6s .5s ease both;
}
@keyframes sp-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.sp-dots {
  display: flex; gap: 9px; margin-top: 52px;
  animation: sp-up .6s .65s ease both;
}
.sp-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.55);
  animation: sp-dot 1.4s ease-in-out infinite;
}
.sp-dots span:nth-child(2) { animation-delay: .22s; }
.sp-dots span:nth-child(3) { animation-delay: .44s; }
@keyframes sp-dot {
  0%,80%,100% { transform: scale(.75); opacity: .4; }
  40%          { transform: scale(1.25); opacity: 1; }
}
.sp-footer {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 0; right: 0; text-align: center;
  font-size: 11px; color: rgba(255,255,255,.25);
  letter-spacing: 1px; font-weight: 500;
  animation: sp-up .6s .8s ease both;
}
#edu360-splash.sp-hide {
  opacity: 0; transform: scale(1.05); pointer-events: none;
}


/* ── Install Banner (flotante) ───────────────────────────────────── */
#edu360-install-banner {
  position: fixed;
  bottom: max(88px, calc(72px + env(safe-area-inset-bottom)));
  left: 12px; right: 12px;
  background: #fff; border-radius: 22px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 40px rgba(15,23,42,.2), 0 2px 8px rgba(15,23,42,.1);
  z-index: 9000;
  animation: ib-up .45s cubic-bezier(.34,1.56,.64,1) both;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}
@keyframes ib-up {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#edu360-install-banner.ib-hide {
  animation: ib-down .3s ease forwards;
}
@keyframes ib-down { to { transform: translateY(120%); opacity: 0; } }
.ib-icon { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; }
.ib-text { flex: 1; min-width: 0; }
.ib-title { font-size: 14px; font-weight: 800; color: #0f172a; }
.ib-sub   { font-size: 11px; color: #64748b; margin-top: 2px; }
.ib-btn {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: #fff; border: none; border-radius: 22px; padding: 8px 18px;
  font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  white-space: nowrap; font-family: inherit;
  box-shadow: 0 4px 12px rgba(29,78,216,.35);
}
.ib-close {
  background: none; border: none; color: #cbd5e1; font-size: 17px;
  cursor: pointer; padding: 4px; flex-shrink: 0; font-family: inherit;
  line-height: 1;
}
.ib-close:hover { color: #94a3b8; }


/* ── Update Banner ───────────────────────────────────────────────── */
#edu360-update-banner {
  position: fixed; top: 66px; left: 12px; right: 12px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff; border-radius: 16px; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; gap: 12px; z-index: 9001;
  box-shadow: 0 6px 20px rgba(5,150,105,.4);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  animation: ib-up .4s ease both;
}
.ub-btn {
  background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.4);
  color: #fff; padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
}


/* ── Network Toasts ──────────────────────────────────────────────── */
.edu360-toast {
  position: fixed;
  top: max(70px, calc(60px + env(safe-area-inset-top)));
  left: 50%; transform: translateX(-50%) translateY(0);
  padding: 10px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; z-index: 9999;
  white-space: nowrap; box-shadow: 0 6px 24px rgba(0,0,0,.25);
  animation: toast-in .3s ease both;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}
@keyframes toast-in {
  from { transform: translateX(-50%) translateY(-24px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);     opacity: 1; }
}
.edu360-toast.toast-hide {
  animation: toast-out .3s ease forwards;
}
@keyframes toast-out {
  to { transform: translateX(-50%) translateY(-24px); opacity: 0; }
}
.toast-warn { background: #d97706; color: #fff; }
.toast-ok   { background: #059669; color: #fff; }


/* ════════════════════════════════════════════════════════════════
   PWA LOGIN — Welcome Screen + Bottom Sheets v3
   ════════════════════════════════════════════════════════════════ */

body.edu360-pwa-login {
  height: 100dvh; height: 100vh;
  overflow: hidden;
  background: linear-gradient(160deg, #020817 0%, #0d1b3e 40%, #1e3a8a 75%, #0c4a6e 100%);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
}

/* ── Welcome Screen ── */
.wlc-screen {
  position: relative; z-index: 1;
  height: 100dvh; height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: max(48px, env(safe-area-inset-top)) 28px max(32px, env(safe-area-inset-bottom));
  text-align: center;
}

.wlc-hero {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  flex: 1; justify-content: center;
}

.wlc-logo-wrap {
  position: relative; width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.wlc-logo-ring {
  position: absolute; inset: -8px; border-radius: 30px;
  border: 2px solid rgba(96,165,250,.4);
  animation: wlc-spin 6s linear infinite;
  box-shadow: 0 0 24px rgba(59,130,246,.15);
}
@keyframes wlc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.wlc-logo {
  width: 88px; height: 88px; border-radius: 22px; position: relative; z-index: 1;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 2.5px rgba(255,255,255,.1);
  animation: sp-pop .6s cubic-bezier(.34,1.56,.64,1) both;
}

.wlc-brand {
  font-size: 40px; font-weight: 900; color: #fff;
  letter-spacing: 4px; margin: 0 0 4px;
  text-shadow: 0 2px 28px rgba(14,165,233,.65);
  animation: sp-up .55s .2s ease both;
}

.wlc-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(96,165,250,.8); margin: 0 0 18px;
  animation: sp-up .55s .3s ease both;
}

.wlc-sub {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.5);
  line-height: 1.6; margin: 0;
  animation: sp-up .55s .4s ease both;
}

.wlc-features {
  display: flex; gap: 16px; justify-content: center; margin: 28px 0;
  animation: sp-up .55s .5s ease both;
}
.wlc-feat {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 14px 18px;
  min-width: 76px;
}
.wlc-feat .fa {
  font-size: 20px; color: #60a5fa;
}
.wlc-feat span {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.6);
}

.wlc-actions {
  width: 100%; display: flex; flex-direction: column; gap: 12px;
  animation: sp-up .55s .55s ease both;
}

.wlc-btn-primary {
  width: 100%; padding: 16px 20px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #0ea5e9);
  background-size: 200%;
  color: #fff; border: none; border-radius: 18px;
  font-size: 16px; font-weight: 800; font-family: inherit;
  cursor: pointer; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 28px rgba(29,78,216,.45), 0 1px 0 rgba(255,255,255,.15) inset;
  transition: transform .15s, box-shadow .15s, background-position .4s;
  position: relative; overflow: hidden;
}
.wlc-btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.13) 0%, transparent 60%);
}
.wlc-btn-primary:active { transform: scale(.98); }

.wlc-btn-outline {
  width: 100%; padding: 15px 20px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); border-radius: 18px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, border-color .2s;
}
.wlc-btn-outline:active { background: rgba(255,255,255,.14); }

.wlc-install-hint {
  display: none; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px; padding: 9px 20px; color: rgba(255,255,255,.65);
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background .2s;
  animation: sp-up .4s ease both;
}
.wlc-install-hint .fa { color: #60a5fa; font-size: 14px; }
.wlc-install-hint:active { background: rgba(255,255,255,.14); }

.wlc-footer {
  font-size: 11px; color: rgba(255,255,255,.18);
  letter-spacing: .8px; font-weight: 500; margin: 12px 0 0;
  animation: sp-up .4s .7s ease both;
}

/* ── Bottom Sheet base ── */
.bs-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0);
  display: none; /* shown via JS */
  align-items: flex-end; justify-content: center;
  transition: background .35s ease;
}
.bs-overlay.bs-open { background: rgba(0,0,0,.55); }

.bs-panel {
  width: 100%; max-width: 520px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px 28px 0 0;
  padding: 12px 24px calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; flex-direction: column; align-items: stretch;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.32,1,.64,1);
  box-shadow: 0 -8px 50px rgba(0,0,0,.5);
}
.bs-panel.bs-open { transform: translateY(0); }

.bs-handle {
  width: 40px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.2);
  margin: 0 auto 22px; flex-shrink: 0;
}

.bs-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.bs-header-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  box-shadow: 0 4px 16px rgba(29,78,216,.35);
}
.bs-header-icon--green {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 16px rgba(5,150,105,.35);
}
.bs-title {
  font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 3px;
}
.bs-subtitle {
  font-size: 13px; color: rgba(255,255,255,.45); margin: 0;
}

/* ── BS Error ── */
.bs-error-alert {
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
  border-radius: 14px; padding: 12px 16px; color: #fca5a5;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.45;
}
.bs-error-alert .fa { flex-shrink: 0; font-size: 15px; margin-top: 1px; }

/* ── BS Input fields ── */
.bs-field { margin-bottom: 16px; }
.bs-input-wrap {
  position: relative; display: flex; align-items: center;
}
.bs-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.3); font-size: 14px; pointer-events: none;
  z-index: 1; transition: color .2s;
}
.bs-input {
  width: 100%; padding: 20px 48px 8px 44px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 16px; color: #f8faff;
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  caret-color: #60a5fa; -webkit-appearance: none;
  box-sizing: border-box;
}
.bs-input::placeholder { color: transparent; }
.bs-input:-webkit-autofill {
  -webkit-text-fill-color: #f8faff !important;
  -webkit-box-shadow: 0 0 0 100px rgba(15,23,42,.95) inset !important;
  border-color: rgba(96,165,250,.4) !important;
}
.bs-input:focus {
  border-color: rgba(96,165,250,.6);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.bs-input:focus ~ .bs-label,
.bs-input:not(:placeholder-shown) ~ .bs-label {
  top: 7px; font-size: 10px; letter-spacing: .8px;
  text-transform: uppercase; color: #60a5fa;
}
.bs-input:focus + .bs-label { color: #60a5fa; }
.bs-label {
  position: absolute; left: 44px; top: 14px;
  color: rgba(255,255,255,.4); font-size: 14px; font-weight: 500;
  pointer-events: none; transition: all .2s cubic-bezier(.4,0,.2,1);
  font-family: inherit;
}
.bs-eye-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.3);
  font-size: 14px; cursor: pointer; padding: 6px;
  transition: color .15s;
}
.bs-eye-btn:hover { color: rgba(255,255,255,.7); }

/* ── BS Options row ── */
.bs-opts {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; font-size: 13px; gap: 8px; flex-wrap: wrap;
}
.bs-remember {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  color: rgba(255,255,255,.5); font-weight: 500;
}
.bs-remember input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: #2563eb; cursor: pointer; flex-shrink: 0;
}
.bs-forgot {
  color: #60a5fa; text-decoration: none; font-weight: 600;
  transition: color .15s;
}
.bs-forgot:hover { color: #93c5fd; }

/* ── BS Submit ── */
.bs-submit-btn {
  width: 100%; padding: 15px 20px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #0ea5e9);
  background-size: 200%;
  color: #fff; border: none; border-radius: 18px;
  font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 28px rgba(29,78,216,.4), 0 1px 0 rgba(255,255,255,.15) inset;
  transition: transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.bs-submit-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
}
.bs-submit-btn:active { transform: scale(.98); }
.bs-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ── BS Switch link ── */
.bs-switch {
  text-align: center; font-size: 13px; color: rgba(255,255,255,.4);
  margin: 20px 0 0; font-weight: 500;
}
.bs-switch-link {
  background: none; border: none; color: #60a5fa; font-weight: 700;
  font-size: 13px; cursor: pointer; padding: 0 0 0 4px;
  font-family: inherit; text-decoration: none;
  transition: color .15s;
}
.bs-switch-link:hover { color: #93c5fd; }

/* ── Register sheet extras ── */
.reg-info-card {
  display: flex; gap: 12px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 20px;
}
.reg-info-icon { color: #60a5fa; font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.reg-info-text { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.55; margin: 0; }
.reg-info-text strong { color: rgba(255,255,255,.85); }

.reg-steps {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px;
}
.reg-step {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05); border-radius: 14px; padding: 13px 16px;
}
.reg-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.reg-step-text { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7); }

.reg-phone-btn {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 18px; padding: 16px 18px; color: #fff;
  text-decoration: none; margin-bottom: 14px;
  box-shadow: 0 6px 22px rgba(5,150,105,.4);
  transition: transform .15s, box-shadow .15s;
}
.reg-phone-btn:active { transform: scale(.98); }
.reg-phone-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.reg-phone-text {
  display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.reg-phone-label { font-size: 12px; font-weight: 600; opacity: .8; }
.reg-phone-num { font-size: 18px; font-weight: 900; letter-spacing: 1px; }
.reg-phone-arrow { font-size: 12px; opacity: .6; }

.reg-schedule {
  text-align: center; font-size: 12px; color: rgba(255,255,255,.35);
  margin: 0 0 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
}


/* ════════════════════════════════════════════════════════════════
   APP BAR IMPROVEMENTS
   ════════════════════════════════════════════════════════════════ */
.edu-bar-logo {
  display: flex; align-items: center; flex-shrink: 0;
}

.edu-title-brand {
  font-weight: 900; letter-spacing: 1.5px; font-size: 16px;
}

/* Install button in app bar */
.edu-install-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 34px; height: 34px;
  border-radius: 10px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: background .15s, transform .1s;
  font-family: inherit;
}
.edu-install-btn:hover { background: rgba(255,255,255,.28); transform: scale(1.05); }

/* User dropdown menu */
.edu-user-menu {
  min-width: 220px !important; border-radius: 16px !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 12px 40px rgba(15,23,42,.15), 0 4px 12px rgba(15,23,42,.08) !important;
  padding: 6px !important; overflow: hidden;
}
.edu-menu-user-info {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 10px; background: #f8faff; margin-bottom: 4px;
}
.edu-menu-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.edu-menu-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.edu-menu-email { font-size: 11px; color: #64748b; margin-top: 2px; word-break: break-all; }
.edu-user-menu .dropdown-item {
  border-radius: 10px !important; padding: 9px 14px !important;
  font-size: 14px; font-weight: 500; transition: background .12s;
}
.edu-logout-btn { color: #dc2626 !important; font-weight: 600 !important; }
.edu-logout-btn:hover { background: #fff1f2 !important; }


/* ════════════════════════════════════════════════════════════════
   BOTTOM NAV IMPROVEMENTS
   ════════════════════════════════════════════════════════════════ */
.nav-icon-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 26px; border-radius: 18px;
  transition: background .2s, transform .2s;
}
.edu-nav-item.active .nav-icon-wrap {
  background: rgba(29,78,216,.15);
  transform: translateY(-2px);
}
.nav-notif-dot {
  position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; border: 1.5px solid var(--edu-nav-bg, #fff);
}

/* ════════════════════════════════════════════════════════════════
   PAGE TRANSITION — fade-in suave al cargar
   ════════════════════════════════════════════════════════════════ */
.edu360-app .o_portal_wrap {
  animation: page-in .3s ease both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Safe area: handled inside .wlc-screen and .bs-panel via env() */

/* ════════════════════════════════════════════════════════════════
   INSTALL BANNER — slide up from bottom
   ════════════════════════════════════════════════════════════════ */
#edu360-install-banner {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);
  z-index: 9000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 14px 14px 14px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  transform: translateY(120%);
  transition: transform .38s cubic-bezier(.34,1.2,.64,1), opacity .3s ease;
  opacity: 0;
}
#edu360-install-banner.ib-show {
  transform: translateY(0); opacity: 1;
}
#edu360-install-banner.ib-hide {
  transform: translateY(120%); opacity: 0;
}
.ib-icon { border-radius: 12px; flex-shrink: 0; }
.ib-text { flex: 1; min-width: 0; }
.ib-title { font-weight: 700; font-size: 13px; color: #fff; }
.ib-sub { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px; }
.ib-btn {
  background: #2563eb; color: #fff; border: none; border-radius: 10px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: background .15s;
}
.ib-btn:hover { background: #1d4ed8; }
.ib-close {
  background: rgba(255,255,255,.12); border: none; color: rgba(255,255,255,.6);
  width: 26px; height: 26px; border-radius: 50%; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0; transition: background .15s;
}
.ib-close:hover { background: rgba(255,255,255,.22); }

/* ════════════════════════════════════════════════════════════════
   iOS INSTALL BOTTOM SHEET
   ════════════════════════════════════════════════════════════════ */
#edu360-ios-sheet {
  position: fixed; inset: 0; z-index: 9500;
  pointer-events: none;
}
#edu360-ios-sheet.ios-sheet-open { pointer-events: all; }

.ios-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s ease;
}
.ios-sheet-open .ios-sheet-backdrop { background: rgba(0,0,0,.5); }

.ios-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 24px calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; flex-direction: column; align-items: center;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,1,.64,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
}
.ios-sheet-open .ios-sheet-panel { transform: translateY(0); }

.ios-sheet-handle {
  width: 36px; height: 4px; border-radius: 4px;
  background: #e2e8f0; margin-bottom: 20px; flex-shrink: 0;
}
.ios-sh-icon { border-radius: 18px; box-shadow: 0 4px 16px rgba(29,78,216,.2); margin-bottom: 14px; }
.ios-sh-title { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 6px; text-align: center; }
.ios-sh-sub { font-size: 14px; color: #64748b; text-align: center; line-height: 1.5; margin-bottom: 20px; }
.ios-sh-steps {
  list-style: none; padding: 0; margin: 0 0 24px; width: 100%;
  background: #f8faff; border-radius: 14px; overflow: hidden;
}
.ios-sh-steps li {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; font-size: 14px; color: #0f172a; font-weight: 500;
  border-bottom: 1px solid #e2e8f0;
}
.ios-sh-steps li:last-child { border-bottom: none; }
.ios-step-ico { font-size: 20px; flex-shrink: 0; }
.ios-sh-close {
  width: 100%; padding: 15px; border-radius: 14px;
  background: #1d4ed8; color: #fff; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; transition: background .15s;
}
.ios-sh-close:hover { background: #1e40af; }
