/* ==========================================================================
   SHIFTRELAY SPLASH + ONBOARDING ENTRY SCREEN
   ========================================================================== */

/* SPLASH SCREEN — covers the whole viewport on launch */
#sr-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 42%, #0A3828 0%, #052216 58%, #02100C 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#sr-splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: splashPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: scale(0.88) translateY(12px);
}

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

.splash-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
}

.splash-wordmark {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  font-family: 'Inter', system-ui, sans-serif;
}

.splash-wordmark span {
  color: #4FC3BC;
}

.splash-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -6px;
}

.splash-loader {
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.splash-loader-bar {
  height: 100%;
  width: 0%;
  background: #4FC3BC;
  border-radius: 99px;
  animation: loaderFill 1.6s ease forwards;
}

@keyframes loaderFill {
  0%   { width: 0%; }
  40%  { width: 60%; }
  80%  { width: 88%; }
  100% { width: 100%; }
}

/* ==========================================================================
   ENTRY SCREEN — Shown to new / logged-out users (replaces old landing page)
   ========================================================================== */
#sr-entry {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}

[data-theme="dark"] #sr-entry {
  background: #0c1117;
}

#sr-entry.visible {
  opacity: 1;
}

#sr-entry.hidden-out {
  opacity: 0;
  pointer-events: none;
}

.entry-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 32px;
  text-align: center;
  gap: 0;
}

.entry-icon-ring {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0, 135, 81,0.22);
}

.entry-headline {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
  line-height: 1.15;
}

[data-theme="dark"] .entry-headline { color: #f1f5f9; }

.entry-headline em {
  font-style: normal;
  color: #0d6b63;
}

.entry-sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto 32px;
}

/* Feature pills — 3 horizontal icons row */
.entry-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.entry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 99px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

[data-theme="dark"] .entry-pill {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.entry-pill svg {
  flex-shrink: 0;
  color: #0d6b63;
}

/* Bottom action area */
.entry-bottom {
  padding: 20px 24px calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-btn-primary {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a3d39 0%, #0d6b63 100%);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 135, 81,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.entry-btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(0, 135, 81,0.2);
}

.entry-btn-secondary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.entry-btn-secondary:active {
  background: #f8fafc;
}

[data-theme="dark"] .entry-btn-secondary {
  color: #94a3b8;
  border-color: #334155;
}

.entry-legal {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.entry-legal a {
  color: inherit;
  text-decoration: underline;
}

/* ==========================================================================
   COMPACT LOGIN MODAL — replaces the portal/form on the old landing page
   Slides up from the bottom when user taps "Sign In" on entry screen
   ========================================================================== */
#sr-login-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

#sr-login-modal.open {
  opacity: 1;
  pointer-events: all;
}

.sr-login-sheet {
  width: 100%;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 8px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
  overflow-y: auto;
}

[data-theme="dark"] .sr-login-sheet {
  background: #1e293b;
}

#sr-login-modal.open .sr-login-sheet {
  transform: translateY(0);
}

.sr-sheet-handle {
  width: 36px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  margin: 10px auto 20px;
}

.sr-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sr-sheet-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .sr-sheet-header h3 { color: #f1f5f9; }

.sr-sheet-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 20px;
}

[data-theme="dark"] .sr-sheet-tabs { background: #0f172a; }

.sr-sheet-tab {
  flex: 1;
  padding: 8px 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.sr-sheet-tab.active {
  background: #ffffff;
  color: #0d6b63;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

[data-theme="dark"] .sr-sheet-tab.active {
  background: #1e293b;
  color: #34d399;
}

.sr-sheet-form label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  margin-top: 14px;
}

.sr-sheet-form input,
.sr-sheet-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.15s ease;
  -webkit-appearance: none;
}

.sr-sheet-form input:focus,
.sr-sheet-form select:focus {
  outline: none;
  border-color: #0d6b63;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13,107,99,0.1);
}

[data-theme="dark"] .sr-sheet-form input,
[data-theme="dark"] .sr-sheet-form select {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

.sr-sheet-submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a3d39 0%, #0d6b63 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 4px;
  box-shadow: 0 6px 18px rgba(0, 135, 81,0.25);
  transition: transform 0.15s ease;
}

.sr-sheet-submit:active { transform: scale(0.97); }
.sr-sheet-submit:disabled { opacity: 0.6; }

.sr-sheet-msg {
  font-size: 13px;
  color: #ef4444;
  text-align: center;
  min-height: 20px;
  margin-top: 6px;
}

/* Demo role cards in the sheet */
.sr-demo-roles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.sr-demo-role-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

[data-theme="dark"] .sr-demo-role-btn {
  background: #0f172a;
  border-color: #334155;
}

.sr-demo-role-btn:active {
  border-color: #0d6b63;
  background: #f0fdf4;
}

.sr-demo-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a3d39, #0d6b63);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
}

.sr-demo-role-btn strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .sr-demo-role-btn strong { color: #f1f5f9; }

.sr-demo-role-btn small {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}



/* ==========================================================================
   HIGH-END ENTERPRISE POLISHING (Dayforce HCM Look & Feel)
   ========================================================================== */

.sr-tenant-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(0, 168, 98, 0.12);
  color: #008751;
  border: 1px solid rgba(0, 168, 98, 0.25);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}

[data-theme="dark"] .sr-tenant-verified-pill {
  background: rgba(0, 168, 98, 0.18);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.sr-tenant-verified-pill svg {
  flex-shrink: 0;
}

.sr-input-monospace {
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: #008751 !important;
}

[data-theme="dark"] .sr-input-monospace {
  color: #2dd4bf !important;
}

.sr-input-hint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-size: 11px;
  color: #64748b;
}

.sr-tenant-tag {
  font-weight: 600;
  color: #0f172a;
}

[data-theme="dark"] .sr-tenant-tag {
  color: #cbd5e1;
}

/* Desktop Polish & Centered Floating Modals */
@media (min-width: 640px) {
  #sr-entry {
    background: radial-gradient(circle at 50% 12%, rgba(0, 135, 81, 0.09) 0%, rgba(15, 23, 42, 0.02) 60%), #f8fafc;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
  }

  [data-theme="dark"] #sr-entry {
    background: radial-gradient(circle at 50% 12%, rgba(0, 135, 81, 0.14) 0%, rgba(10, 15, 29, 0) 70%), #0a0f1d;
  }

  .entry-top, .entry-bottom {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  .entry-top {
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    padding: 48px 40px 24px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07);
  }

  [data-theme="dark"] .entry-top {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.5);
  }

  .entry-bottom {
    background: #ffffff;
    border-radius: 0 0 24px 24px;
    border: 1px solid #e2e8f0;
    border-top: 1px solid #f1f5f9;
    padding: 0 40px 40px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07);
  }

  [data-theme="dark"] .entry-bottom {
    background: #111827;
    border-color: #1f2937;
    border-top-color: #1f2937;
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.5);
  }

  #sr-login-modal {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .sr-login-sheet {
    max-width: 520px;
    border-radius: 24px;
    padding: 28px 32px 32px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  [data-theme="dark"] .sr-login-sheet {
    border-color: #334155;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  #sr-login-modal.open .sr-login-sheet {
    transform: scale(1) translateY(0);
  }

  .sr-sheet-handle {
    display: none;
  }
}

/* ==========================================================================
   EXECUTIVE HIGH-END VISUAL POLISH & AMBIENT AURA
   ========================================================================== */

.sr-entry-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: rgba(0, 135, 81, 0.08);
  border: 1px solid rgba(0, 135, 81, 0.22);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #008751;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

[data-theme="dark"] .sr-entry-badge-chip {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.25);
  color: #2dd4bf;
}

.sr-entry-badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00A862;
  box-shadow: 0 0 0 0 rgba(0, 168, 98, 0.7);
  animation: srPulse 2s infinite;
}

@keyframes srPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 168, 98, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 168, 98, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 168, 98, 0); }
}

.sr-headline-gradient {
  background: linear-gradient(135deg, #008751 0%, #008751 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

[data-theme="dark"] .sr-headline-gradient {
  background: linear-gradient(135deg, #2dd4bf 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Polished Sheet Tabs */
.sr-sheet-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .sr-sheet-tabs {
  background: #0f172a;
  border-color: #334155;
}

.sr-sheet-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.sr-sheet-tab.active {
  background: #ffffff;
  color: #008751;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .sr-sheet-tab.active {
  background: #1e293b;
  color: #2dd4bf;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sr-sheet-tab svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sr-sheet-tab.active svg {
  transform: scale(1.05);
}

/* Polished Demo Role Buttons */
.sr-demo-role-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .sr-demo-role-btn {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sr-demo-role-btn:hover {
  border-color: #008751;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 135, 81, 0.12);
}

.sr-demo-role-btn:hover .sr-demo-arrow {
  transform: translateX(3px);
  color: #008751;
}

.sr-demo-arrow {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.sr-demo-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00A862;
  border: 2px solid #ffffff;
}

[data-theme="dark"] .sr-demo-online-dot {
  border-color: #1e293b;
}

.sr-demo-role-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sr-role-pill-owner {
  background: rgba(147, 51, 234, 0.12);
  color: #7e22ce;
  border: 1px solid rgba(147, 51, 234, 0.25);
}

[data-theme="dark"] .sr-role-pill-owner {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.sr-role-pill-supervisor {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

[data-theme="dark"] .sr-role-pill-supervisor {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.sr-role-pill-worker {
  background: rgba(0, 135, 81, 0.12);
  color: #00663D;
  border: 1px solid rgba(0, 135, 81, 0.25);
}

[data-theme="dark"] .sr-role-pill-worker {
  background: rgba(45, 212, 191, 0.18);
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.3);
}

/* ==========================================================================
   LIVE TELEMETRY WIDGET & INPUT ICON WRAPPER
   ========================================================================== */

.sr-entry-live-telemetry {
  margin-top: 22px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .sr-entry-live-telemetry {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.sr-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sr-telemetry-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00A862;
}

.sr-telemetry-details {
  font-size: 12px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .sr-telemetry-details {
  color: #cbd5e1;
}

.sr-telemetry-sep {
  color: #94a3b8;
}

.sr-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sr-field-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.sr-input-with-icon input {
  padding-left: 40px !important;
}
/* ==========================================================================
   WAVE 5 — SPLASH + ENTRY SCREEN + LOGIN MODAL PREMIUM POLISH
   ========================================================================== */

/* Splash screen — richer background */
#sr-splash {
  background: radial-gradient(ellipse at 30% 20%, #0d3d4d 0%, #0b2540 40%, #080f1a 100%) !important;
}

/* Animated particle rings behind splash icon */
.splash-logo-wrap::before,
.splash-logo-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(79, 195, 188, 0.15);
  animation: splash-ring-expand 2.5s ease-out infinite;
}

.splash-logo-wrap::before {
  width: 120px; height: 120px;
  animation-delay: 0s;
}

.splash-logo-wrap::after {
  width: 180px; height: 180px;
  animation-delay: 0.6s;
}

.splash-logo-wrap {
  position: relative;
}

@keyframes splash-ring-expand {
  0%   { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 0;   transform: scale(1.4); }
}

/* Splash icon — stronger glow */
.splash-icon {
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(79,195,188,0.15), 0 0 40px rgba(79,195,188,0.12) !important;
  animation: splashPop 0.5s cubic-bezier(0.16,1,0.3,1) forwards, splash-float 4s ease-in-out 0.5s infinite;
}

@keyframes splash-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Loader bar — teal to emerald gradient */
.splash-loader-bar {
  background: linear-gradient(90deg, #008751, #00A862, #34d399) !important;
}

/* ==========================================================================
   ENTRY TOP — AMBIENT GLOW BEHIND ICON
   ========================================================================== */

.entry-top {
  position: relative;
}

.entry-top::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 135, 81,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.entry-icon-ring {
  box-shadow: 0 16px 48px rgba(0, 135, 81,0.25), 0 0 0 8px rgba(0, 135, 81,0.07) !important;
  animation: entry-icon-pop 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes entry-icon-pop {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.entry-headline {
  font-size: 30px !important;
  letter-spacing: -0.04em !important;
  animation: sr-item-stagger 0.4s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.08s;
}

.entry-headline em {
  background: linear-gradient(135deg, #008751, #00A862) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-style: normal !important;
}

.entry-sub {
  animation: sr-item-stagger 0.4s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.14s;
}

/* Feature pills — glassy */
.entry-pill {
  background: rgba(0, 135, 81,0.06) !important;
  border: 1px solid rgba(0, 135, 81,0.15) !important;
  color: #008751 !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}

.entry-pill:hover {
  background: rgba(0, 135, 81,0.12) !important;
  transform: translateY(-1px) !important;
}

[data-theme="dark"] .entry-pill {
  background: rgba(52,211,153,0.08) !important;
  border-color: rgba(52,211,153,0.15) !important;
  color: #34d399 !important;
}

.entry-pill svg {
  color: #008751 !important;
}

/* Entry primary button — super premium */
.entry-btn-primary {
  background: linear-gradient(135deg, #0a3d39 0%, #0d7a70 60%, #0f8f83 100%) !important;
  box-shadow: 0 10px 28px rgba(0, 135, 81,0.35), 0 1px 0 rgba(255,255,255,0.1) inset !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  border-radius: 16px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Shimmer sweep on entry button */
.entry-btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: entry-btn-shimmer 3s ease infinite;
}

@keyframes entry-btn-shimmer {
  0%   { left: -100%; }
  40%  { left: 150%; }
  100% { left: 150%; }
}

.entry-btn-primary:hover {
  box-shadow: 0 14px 36px rgba(0, 135, 81,0.42), 0 1px 0 rgba(255,255,255,0.1) inset !important;
  transform: translateY(-1px) !important;
}

.entry-btn-secondary {
  border-radius: 16px !important;
  font-weight: 700 !important;
  transition: all 0.15s cubic-bezier(0.16,1,0.3,1) !important;
}

.entry-btn-secondary:hover {
  background: rgba(0, 135, 81,0.06) !important;
  border-color: #008751 !important;
  color: #008751 !important;
}

[data-theme="dark"] .entry-btn-secondary:hover {
  background: rgba(52,211,153,0.06) !important;
  border-color: rgba(52,211,153,0.3) !important;
  color: #34d399 !important;
}

/* ==========================================================================
   LOGIN MODAL — UPGRADED CARD + INPUT FOCUS
   ========================================================================== */

#sr-login-modal {
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  background: rgba(10,15,30,0.65) !important;
}

.sr-login-sheet {
  border-radius: 28px 28px 0 0 !important;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(0, 135, 81,0.1) !important;
}

/* Desktop: centred dialog */
@media (min-width: 640px) {
  .sr-login-sheet {
    border-radius: 24px !important;
    box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0, 135, 81,0.12) !important;
    animation: sr-modal-in 0.22s cubic-bezier(0.16,1,0.3,1) forwards !important;
  }
}

/* Company ID input — accent styling */
.sr-company-id-input {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.sr-company-id-input::placeholder {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  opacity: 0.5 !important;
}

/* Tenant verified banner */
.sr-tenant-verified-banner {
  animation: sr-item-stagger 0.3s cubic-bezier(0.16,1,0.3,1) both !important;
}

/* Login submit button */
.sr-signin-btn,
[id*="signin-btn"],
[id*="login-btn"] {
  background: linear-gradient(135deg, #0a3d39 0%, #0d7a70 100%) !important;
  box-shadow: 0 8px 24px rgba(0, 135, 81,0.3) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  border-radius: 14px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.sr-signin-btn:hover,
[id*="signin-btn"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 32px rgba(0, 135, 81,0.38) !important;
}

/* Multi-tenant info banner in login */
.sr-multitenant-banner {
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(0, 135, 81,0.06), rgba(0, 168, 98,0.04)) !important;
  border: 1px solid rgba(0, 135, 81,0.15) !important;
}


/* ==========================================================================
   CINEMATIC "S" BRAND REVEAL & LOGIN TRANSITION
   Shows iconic 3D "S" first, then reveals "hiftRelay" from behind,
   followed smoothly by the login infos.
   ========================================================================== */

#sr-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 45%, #0b1526 0%, #060a12 65%, #020408 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

#sr-splash.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.sr-splash-mesh-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 168, 98, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 98, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.sr-splash-radial-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.22) 0%, rgba(2, 132, 199, 0.08) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.sr-splash-brand-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.sr-splash-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Stage 1: The standalone iconic S mark pops into center */
.sr-splash-s-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: srSMarkStage1 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
             srSMarkSlideLeft 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.85s forwards;
  z-index: 4;
}

.sr-splash-s-mark img {
  filter: drop-shadow(0 0 24px rgba(0, 245, 160, 0.65));
  transition: transform 0.3s;
}

@keyframes srSMarkStage1 {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-8deg);
    filter: drop-shadow(0 0 0px #00f5a0);
  }
  70% {
    transform: scale(1.12) rotate(0deg);
    filter: drop-shadow(0 0 32px rgba(0, 245, 160, 0.9));
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 24px rgba(0, 245, 160, 0.65));
  }
}

@keyframes srSMarkSlideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-16px);
  }
}

/* Stage 2: Words emerge smoothly from behind the S */
.sr-splash-unveil-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  opacity: 0;
  margin-left: -8px;
  animation: srUnveilWords 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
  z-index: 3;
}

@keyframes srUnveilWords {
  0% {
    width: 0;
    opacity: 0;
    transform: translateX(-24px);
  }
  30% {
    opacity: 0.6;
  }
  100% {
    width: 250px;
    opacity: 1;
    transform: translateX(0);
  }
}

.sr-splash-wordmark {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sr-splash-suffix {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sr-splash-relay {
  background: linear-gradient(135deg, #00f5a0 0%, #00d9f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 245, 160, 0.45));
}

.sr-splash-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #38bdf8;
  margin-top: 4px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Laser sweep bar */
.sr-splash-laser-line {
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f5a0, #00d9f5, transparent);
  margin-top: 22px;
  opacity: 0;
  animation: srLaserBeam 0.8s ease 1.5s forwards;
}

@keyframes srLaserBeam {
  0% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
    box-shadow: 0 0 16px #00f5a0;
  }
  100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
}

.sr-splash-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.2);
  opacity: 0;
  animation: srStatusFadeIn 0.5s ease 1.7s forwards;
}

@keyframes srStatusFadeIn {
  to { opacity: 1; }
}

.sr-splash-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00f5a0;
  box-shadow: 0 0 8px #00f5a0;
  animation: srPulseBlink 1.4s infinite;
}

@keyframes srPulseBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.sr-splash-status-text {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a7f3d0;
}

.sr-splash-skip-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.sr-splash-skip-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(0, 245, 160, 0.4);
}

/* ── Leave Balances Telemetry Styles for Time Away Hub ── */
.sr-leave-balances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.sr-leave-balance-card {
  background: var(--sr-bg-card);
  border: 1px solid var(--sr-border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.sr-leave-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sr-leave-type-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}

.sr-leave-type-pill.annual {
  background: rgba(0, 168, 98, 0.12);
  color: #008751;
}
[data-theme="dark"] .sr-leave-type-pill.annual {
  background: rgba(0, 168, 98, 0.2);
  color: #34d399;
}

.sr-leave-type-pill.sick {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}
[data-theme="dark"] .sr-leave-type-pill.sick {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
}

.sr-leave-type-pill.casual {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
[data-theme="dark"] .sr-leave-type-pill.casual {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.sr-leave-days-count {
  font-size: 24px;
  font-weight: 800;
  color: var(--sr-text-main);
  letter-spacing: -0.03em;
}

.sr-leave-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--sr-bg-subtle, rgba(0,0,0,0.06));
  border-radius: 999px;
  overflow: hidden;
}

.sr-leave-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.sr-leave-bar-fill.annual { background: linear-gradient(90deg, #00A862, #008751); }
.sr-leave-bar-fill.sick { background: linear-gradient(90deg, #0284c7, #0369a1); }
.sr-leave-bar-fill.casual { background: linear-gradient(90deg, #f59e0b, #d97706); }

.sr-leave-card-meta {
  font-size: 11.5px;
  color: var(--sr-text-muted);
}

.sr-leave-empty-state {
  text-align: center;
  padding: 36px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sr-leave-empty-icon {
  font-size: 38px;
  margin-bottom: 10px;
}


/* ── Cosmic Orbital & Recovery App Splash Enhancements (v119) ── */
#sr-splash {
  background: radial-gradient(circle at 50% 42%, #0d1f33 0%, #060d18 58%, #02050a 100%) !important;
  overflow: hidden;
}

.sr-splash-aurora-wave {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 245, 160, 0.14),
    rgba(6, 182, 212, 0.16),
    rgba(99, 102, 241, 0.14),
    rgba(168, 85, 247, 0.1),
    rgba(0, 245, 160, 0.14)
  );
  filter: blur(42px);
  animation: srAuroraMorph 11s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes srAuroraMorph {
  0% { transform: rotate(0deg) scale(0.92); }
  50% { transform: rotate(90deg) scale(1.08); }
  100% { transform: rotate(180deg) scale(0.96); }
}

.sr-splash-orbit-system {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.sr-splash-orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sr-splash-orbit-ring.sr-orbit-1 {
  width: 280px;
  height: 280px;
  border: 1px dashed rgba(0, 245, 160, 0.25);
  box-shadow: 0 0 40px rgba(0, 245, 160, 0.08), inset 0 0 30px rgba(6, 182, 212, 0.08);
  animation: srOrbitSpinCW 18s linear infinite;
}

.sr-splash-orbit-ring.sr-orbit-1::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f5a0;
  box-shadow: 0 0 14px #00f5a0, 0 0 28px #00f5a0;
}

.sr-splash-orbit-ring.sr-orbit-2 {
  width: 410px;
  height: 410px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  animation: srOrbitSpinCCW 26s linear infinite;
}

.sr-splash-orbit-ring.sr-orbit-2::after {
  content: '';
  position: absolute;
  bottom: 14%;
  right: 10%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

.sr-splash-orbit-ring.sr-orbit-3 {
  width: 540px;
  height: 540px;
  border: 1px dashed rgba(168, 85, 247, 0.14);
  animation: srOrbitSpinCW 36s linear infinite;
}

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

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

.sr-splash-s-mark {
  position: relative;
}

.sr-splash-s-aura {
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.32) 0%, rgba(6, 182, 212, 0.14) 55%, transparent 75%);
  animation: srAuraBreathe 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes srAuraBreathe {
  0%, 100% { transform: scale(0.92); opacity: 0.75; }
  50% { transform: scale(1.22); opacity: 1; }
}


/* ── Clean Professional Logo Loading Stage (Zero Rotating Rings, Pure Brand) ── */
.sr-splash-clean-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  text-align: center;
  animation: srSplashFadeIn 0.35s ease-out forwards;
}

@keyframes srSplashFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sr-splash-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sr-splash-brand-icon {
  width: 176px;
  height: 176px;
  border-radius: 36px;
  box-shadow: 0 18px 46px rgba(4, 27, 20, 0.55), 0 0 0 1px rgba(0, 168, 98, 0.28);
}

.sr-splash-brand-text {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sr-splash-brand-shift {
  color: #00A862;
}

.sr-splash-brand-relay {
  color: #f8fafc;
}

.sr-splash-progress-track {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 20px;
}

.sr-splash-progress-fill {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #00A862 0%, #38bdf8 100%);
  border-radius: 99px;
  animation: srSplashProgressGlide 1.2s infinite ease-in-out;
}

@keyframes srSplashProgressGlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(250%); }
}

#sr-splash {
  background: #0a1526 !important;
}

#sr-splash.fade-out {
  opacity: 0 !important;
  transition: opacity 0.28s ease-out !important;
  pointer-events: none !important;
}

/* ==========================================================================
   DIRECT 3-STEP LOGIN SCREEN (Biometric Logo -> Unique ID -> Email -> Password)
   ========================================================================== */
@keyframes srEmblemSpinCw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes srEmblemSpinCcw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
@keyframes srEmblemLaser {
  0% { transform: translateY(-28px); opacity: 0; }
  18% { opacity: 0.9; }
  82% { opacity: 0.9; }
  100% { transform: translateY(28px); opacity: 0; }
}
@keyframes srAuthStepSlide {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes srEmblemStepPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 168, 98, 0.48); }
  100% { box-shadow: 0 0 0 18px rgba(0, 168, 98, 0); }
}

.sr-splash-grid,
.sr-auth-grid-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.92) 18%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.92) 18%, transparent 74%);
}
.sr-splash-grid {
  background-image:
    linear-gradient(to right, rgba(0, 168, 98, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 168, 98, 0.07) 1px, transparent 1px);
}
.sr-auth-grid-backdrop {
  background-image:
    linear-gradient(to right, rgba(0, 135, 81, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 135, 81, 0.065) 1px, transparent 1px);
}
[data-theme="dark"] .sr-auth-grid-backdrop {
  background-image:
    linear-gradient(to right, rgba(0, 168, 98, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 168, 98, 0.075) 1px, transparent 1px);
}

.sr-auth-biometric-emblem {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.sr-auth-biometric-emblem.sr-emblem-lg {
  width: 126px;
  height: 126px;
}
.sr-auth-biometric-emblem.is-pulsing {
  animation: srEmblemStepPulse 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.sr-emblem-ring-cw {
  position: absolute;
  inset: 0;
  animation: srEmblemSpinCw 9.5s linear infinite;
}
.sr-emblem-ring-ccw {
  position: absolute;
  inset: 7px;
  animation: srEmblemSpinCcw 13.5s linear infinite;
}
.sr-emblem-lg .sr-emblem-ring-ccw {
  inset: 8px;
}
.sr-emblem-icon-box {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 135, 81, 0.28), 0 0 0 1px rgba(0, 168, 98, 0.35);
}
.sr-emblem-lg .sr-emblem-icon-box {
  width: 82px;
  height: 82px;
  border-radius: 22px;
}
.sr-emblem-icon-box img {
  width: 100%;
  height: 100%;
  display: block;
}
.sr-emblem-laser {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 2px;
  border-radius: 99px;
  background: #00A862;
  box-shadow: 0 0 10px #00A862, 0 0 3px #ECFDF5;
  pointer-events: none;
  animation: srEmblemLaser 2.8s ease-in-out infinite;
}

.sr-auth-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.07);
}
[data-theme="dark"] .sr-auth-stepper {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.sr-step-node {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  transition: color 0.22s ease;
}
.sr-step-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
[data-theme="dark"] .sr-step-node { color: #64748b; }
[data-theme="dark"] .sr-step-dot { background: #1e293b; color: #94a3b8; }
.sr-step-node.is-active {
  color: #008751;
  font-weight: 700;
}
[data-theme="dark"] .sr-step-node.is-active { color: #34d399; }
.sr-step-node.is-active .sr-step-dot {
  background: linear-gradient(135deg, #00A862 0%, #008751 100%);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 168, 98, 0.2);
}
.sr-step-node.is-done {
  color: #0f172a;
}
[data-theme="dark"] .sr-step-node.is-done { color: #cbd5e1; }
.sr-step-node.is-done .sr-step-dot {
  background: #008751;
  color: #ffffff;
}
.sr-step-line {
  flex: 1;
  min-width: 12px;
  max-width: 28px;
  height: 2px;
  border-radius: 99px;
  background: #e2e8f0;
  transition: background 0.28s ease;
}
[data-theme="dark"] .sr-step-line { background: #1f2937; }
.sr-step-line.is-done {
  background: #00A862;
}

.sr-auth-step.sr-step-animate {
  animation: srAuthStepSlide 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#sr-login-modal.sr-auth-screen {
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: radial-gradient(circle at 50% 18%, rgba(0, 168, 98, 0.12), transparent 52%),
              radial-gradient(circle at 80% 85%, rgba(15, 23, 42, 0.05), transparent 50%),
              #f8fafc !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden;
}

[data-theme="dark"] #sr-login-modal.sr-auth-screen {
  background: radial-gradient(circle at 50% 24%, rgba(0, 168, 98, 0.14), transparent 54%),
              #050C0B !important;
}

#sr-login-modal.sr-auth-screen .sr-auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  border-radius: 24px !important;
  padding: 26px 26px 24px !important;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 135, 81, 0.16);
  box-shadow: 0 24px 60px -12px rgba(4, 27, 20, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.03) !important;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
  overflow: hidden;
}
#sr-login-modal.sr-auth-screen .sr-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #008751 0%, #00A862 55%, #6EE7B7 100%);
}

#sr-login-modal.sr-auth-screen.open .sr-auth-card {
  transform: translateY(0) scale(1);
}

[data-theme="dark"] #sr-login-modal.sr-auth-screen .sr-auth-card {
  background: rgba(11, 19, 24, 0.94);
  border-color: rgba(0, 168, 98, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62) !important;
}

@media (max-width: 360px) {
  .sr-auth-stepper { padding: 7px 6px; gap: 4px; }
  .sr-step-node { font-size: 10.5px; gap: 4px; }
  .sr-step-dot { width: 17px; height: 17px; font-size: 9.5px; }
}

.sr-auth-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

[data-theme="dark"] .sr-auth-brand-bar span {
  color: #f8fafc !important;
}

.sr-auth-step-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #0d7a70;
  background: rgba(0, 135, 81, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

[data-theme="dark"] .sr-auth-step-pill {
  color: #34d399;
  background: rgba(0, 168, 98, 0.15);
}

.sr-auth-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 22px;
}

.sr-auth-progress-seg {
  height: 4px;
  border-radius: 99px;
  background: #e2e8f0;
  transition: background 0.25s ease;
}

[data-theme="dark"] .sr-auth-progress-seg {
  background: #1f2937;
}

.sr-auth-progress-seg.active {
  background: linear-gradient(90deg, #0a3d39 0%, #008751 100%);
}

.sr-auth-step-intro {
  margin-bottom: 16px;
}

.sr-auth-step-intro h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.sr-auth-step-intro p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
}

[data-theme="dark"] .sr-auth-step-intro h2 {
  color: #f8fafc;
}

[data-theme="dark"] .sr-auth-step-intro p {
  color: #94a3b8;
}

.sr-auth-context-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

[data-theme="dark"] .sr-auth-context-chip {
  background: #0f172a;
  border-color: #1f2937;
}

.sr-auth-context-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  flex: 1;
  min-width: 0;
}

.sr-auth-context-left svg {
  flex-shrink: 0;
}

.sr-auth-context-left span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

[data-theme="dark"] .sr-auth-context-left,
[data-theme="dark"] .sr-auth-context-left span {
  color: #e2e8f0 !important;
}

.sr-auth-link-btn {
  background: transparent;
  border: none;
  color: #0d7a70;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sr-auth-link-btn:hover {
  background: rgba(0, 135, 81, 0.1);
}

.sr-password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sr-password-field-wrap input {
  width: 100%;
  padding-right: 44px !important;
}

.sr-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.sr-password-toggle:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .sr-password-toggle:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.sr-auth-back-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: transparent;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sr-auth-back-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="dark"] .sr-auth-back-btn {
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .sr-auth-back-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

/* ==========================================================================
   APP LAUNCH WELCOME GATE — Animated Brand GIF + Tap to Login
   ========================================================================== */
.sr-welcome-gate {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: radial-gradient(circle at 50% 20%, #0b2920 0%, #05120e 65%, #020806 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.sr-welcome-gate.open {
  opacity: 1;
}

.sr-brand-wordmark-svg {
  color: #0f172a;
}

[data-theme="dark"] .sr-brand-wordmark-svg,
.sr-brand-wordmark-svg.sr-brand-wordmark-dark {
  color: #ECFDF5 !important;
}

.sr-welcome-card {
  width: 100%;
  max-width: 420px;
  background: rgba(4, 27, 20, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 168, 98, 0.28);
  border-radius: 28px;
  padding: 26px 24px 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.sr-welcome-brand-stage {
  width: 100%;
  padding: 26px 20px;
  border-radius: 22px;
  border: 1px solid rgba(0, 168, 98, 0.24);
  background: radial-gradient(circle at 50% 42%, rgba(0, 168, 98, 0.16) 0%, #051510 68%, #030e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.sr-welcome-hero-logo {
  width: 184px;
  height: 184px;
  border-radius: 38px;
  display: block;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 168, 98, 0.3);
}

.sr-welcome-copy h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.sr-welcome-copy p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #94a3b8;
}

.sr-tap-login-btn {
  width: 100%;
  padding: 15px 22px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #00A862 0%, #008751 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 168, 98, 0.35);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  animation: srTapPulse 2.4s infinite ease-in-out;
}

.sr-tap-login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(0, 168, 98, 0.45);
}

.sr-tap-login-btn:active {
  transform: scale(0.98);
}

@keyframes srTapPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0, 168, 98, 0.32); }
  50% { box-shadow: 0 12px 36px rgba(0, 168, 98, 0.55); }
}

.sr-welcome-domain {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}
