:root {
  --tec-bg-dark: #0a0e27;
  --tec-bg-darker: #060815;
  --tec-bg-gradient: radial-gradient(circle at 30% 20%, #131a3a 0%, #0a0e27 45%, #060815 100%);
  --tec-primary: #2f6fed;
  --tec-primary-dark: #1e4fbf;
  --tec-accent: #4dd0e1;
  --tec-card-bg: #ffffff;
  --tec-text-light: #e8ecf7;
  --tec-text-muted: #8a92b2;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--tec-bg-gradient);
  color: var(--tec-text-light);
  min-height: 100vh;
}

/* ---------- LOGIN ---------- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-wrapper {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.45);
  overflow: hidden;
}

.login-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

.login-subtitle {
  color: var(--tec-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.login-card .form-label {
  color: var(--tec-text-muted);
  font-size: 0.85rem;
  text-align: left;
  display: block;
}

.login-card .input-group-text {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--tec-text-muted);
}

.login-card .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.login-card .form-control:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--tec-primary);
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 237, 0.25);
  color: #fff;
}

.login-card .form-control::placeholder {
  color: rgba(232, 236, 247, 0.35);
}

.validation-summary-valid {
  display: none;
}

.login-card .validation-summary-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.login-btn {
  background: linear-gradient(135deg, var(--tec-primary), var(--tec-primary-dark));
  border: none;
  padding: 0.65rem;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.login-btn:hover,
.login-btn:focus {
  background: linear-gradient(135deg, var(--tec-primary-dark), var(--tec-primary));
}

.login-footer {
  margin-top: 1.5rem;
  color: var(--tec-text-muted);
  font-size: 0.8rem;
}

/* ---------- DASHBOARD ---------- */
.dashboard-body {
  min-height: 100vh;
  padding-bottom: 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  color: #222;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.topbar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef1f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  flex-shrink: 0;
}

.topbar-email {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  border: none;
  background: transparent;
  color: #c0392b;
  font-size: 1.1rem;
  padding: 0.25rem 0.4rem;
}

.map-area {
  position: relative;
  height: 45vh;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(160deg, #10182e 0%, #0c1224 100%);
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 40px),
    linear-gradient(160deg, #10182e 0%, #0c1224 100%);
}

.map-placeholder-text {
  color: var(--tec-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.map-pin {
  font-size: 2.5rem;
  color: #e74c3c;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
  animation: bounce 2.2s ease-in-out infinite;
}

.action-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

.action-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.action-card:active {
  transform: scale(0.96);
}

.action-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

/* Tiles que navegan (enlace) en vez de marcar: sin subrayado ni color de link. */
.action-card--link {
  text-decoration: none;
  color: inherit;
}

/* El tile del portal queda solo en la última fila: ocupa el ancho completo. */
.action-card[data-action="portal"] {
  grid-column: 1 / -1;
}

.action-label {
  font-weight: 600;
  color: var(--tec-text-light);
  font-size: 0.95rem;
  text-align: center;
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.icon-purple  { background: #efe6fb; color: #8e44ad; }
.icon-orange  { background: #fdecd8; color: #e67e22; }
.icon-teal    { background: #dcf3ef; color: #16a085; }
.icon-olive   { background: #eef1d6; color: #8e9c1f; }
.icon-blue    { background: #dbe9fb; color: #2f6fed; }
.icon-red     { background: #fbdede; color: #e74c3c; }
.icon-green   { background: #daf1e6; color: #1e8e5a; }

.version-footer {
  text-align: center;
  color: var(--tec-text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ---------- MODALES DE MARCA ---------- */
.marca-modal {
  background: #101733;
  color: var(--tec-text-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.marca-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marca-modal-subtitle {
  color: var(--tec-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.resultado-icono {
  font-size: 3.25rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.resultado-icono.resultado-ok {
  color: #2ecc71;
}

.resultado-icono.resultado-error {
  color: #e74c3c;
}

.resultado-mensaje {
  color: var(--tec-text-light);
  font-size: 1rem;
  margin: 0;
}

.map-retry-btn {
  margin-top: 0.25rem;
}

/* En error de ubicación: se detiene el rebote y el pin se atenúa. */
.map-placeholder-error .map-pin {
  animation: none;
  color: var(--tec-text-muted);
}

.rostro-modal .modal-body {
  text-align: center;
}

#video-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 20px;
  border: 6px solid #1e8e5a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.rostro-hora {
  font-size: 2.4rem;
  font-weight: 700;
  color: #4dd0e1;
  margin: 0;
}

.rostro-fecha {
  color: var(--tec-text-muted);
  font-size: 0.85rem;
  text-transform: capitalize;
  margin-bottom: 0.75rem;
}

.rostro-user {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.6rem;
}

.rostro-nombre {
  font-weight: 700;
  margin: 0;
}

.rostro-rut {
  color: var(--tec-text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- PRELOADER ---------- */
.preloader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--tec-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- BOTTOM NAV ---------- */
.has-bottom-nav {
  padding-bottom: 88px;
}

/* Cuando hay bottom nav, el banner de instalación debe quedar arriba de la barra. */
.has-bottom-nav .pwa-install-banner {
  bottom: 5.5rem;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  background: #0c1230;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.25rem;
  border: none;
  background: transparent;
  color: var(--tec-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
}

.bottom-nav-item i {
  font-size: 1.25rem;
}

.bottom-nav-item.active {
  color: var(--tec-accent);
}

.bottom-nav-item--disabled {
  opacity: 0.4;
}

/* ---------- MIS MARCAS ---------- */
.marcas-body {
  min-height: 100vh;
}

.marcas-topbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.1rem 0.5rem;
}

.marcas-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tec-text-light);
  flex-shrink: 0;
  text-decoration: none;
}

.marcas-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.marcas-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tec-primary), var(--tec-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #06122a;
}

.marcas-brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.marcas-topbar-title {
  flex: 1;
  text-align: right;
  padding-right: 0.5rem;
  color: var(--tec-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.marcas-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tec-text-light);
  flex-shrink: 0;
}

.marcas-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid var(--tec-bg-dark);
}

.marcas-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.1rem 1.1rem;
}

.marcas-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--tec-text-light);
  flex-shrink: 0;
}

.marcas-profile-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.marcas-profile-period {
  margin: 0;
  color: var(--tec-text-muted);
  font-size: 0.85rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.1rem 1rem;
}

.filter-tab {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tec-text-muted);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--tec-primary), var(--tec-primary-dark));
  border-color: transparent;
  color: #fff;
}

.marcas-section-title {
  padding: 0 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.marcas-empty {
  margin: 0 1.1rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--tec-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.marcas-empty i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline {
  position: relative;
  padding: 0 1.1rem;
  margin-bottom: 1.25rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.4rem;
  padding-bottom: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tec-accent);
  box-shadow: 0 0 0 4px rgba(77, 208, 225, 0.18);
}

.timeline-item[data-tipo="O"] .timeline-dot { background: #e67e22; box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.18); }
.timeline-item[data-tipo="2"] .timeline-dot { background: #16a085; box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.18); }
.timeline-item[data-tipo="3"] .timeline-dot { background: #8e9c1f; box-shadow: 0 0 0 4px rgba(142, 156, 31, 0.18); }

.timeline-item.is-hidden {
  display: none;
}

.marca-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem;
}

.marca-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.marca-card-body {
  flex: 1;
  min-width: 0;
}

.marca-card-fecha {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  color: var(--tec-text-muted);
}

.marca-card-tipo {
  margin: 0 0 0.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tec-text-light);
}

.marca-card-tipo .tipo-I { color: #b98aec; }
.marca-card-tipo .tipo-O { color: #e67e22; }
.marca-card-tipo .tipo-2 { color: #45c4ae; }
.marca-card-tipo .tipo-3 { color: #c3d34a; }

.marca-card-ubicacion {
  margin: 0;
  font-size: 0.78rem;
  color: var(--tec-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marca-card-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-ok {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.badge-pendiente {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
}

.eticket-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: calc(100% - 2.2rem);
  margin: 0 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--tec-text-light);
  font-weight: 600;
}

.eticket-btn:active {
  transform: scale(0.98);
}

.eticket-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(47, 111, 237, 0.18);
  color: #6fa0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.eticket-btn-text {
  flex: 1;
  text-align: left;
}

.eticket-hint {
  margin: 0.5rem 1.1rem 0;
  font-size: 0.75rem;
  color: var(--tec-text-muted);
}

.eticket-hint strong {
  color: var(--tec-text-light);
  font-weight: 600;
}

.marcas-toast {
  position: fixed;
  left: 50%;
  bottom: 6.5rem;
  transform: translate(-50%, 12px);
  background: #101733;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--tec-text-light);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-align: center;
  max-width: calc(100% - 2rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.marcas-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- CREDENCIAL QR (demo) ---------- */
.qr-body {
  min-height: 100vh;
  padding-bottom: 2rem;
}

.qr-topbar {
  padding: 1rem 1.1rem 0;
}

.qr-header {
  text-align: center;
  padding: 0.5rem 1.5rem 0;
}

.qr-title {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.qr-subtitle {
  margin: 0;
  color: var(--tec-text-muted);
  font-size: 0.9rem;
}

.qr-shield-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 1.25rem auto 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(77, 208, 225, 0.12);
  border: 1px solid rgba(77, 208, 225, 0.4);
  color: var(--tec-accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.qr-card {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 1 / 1;
  margin: 1.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 0 0 1px rgba(77, 208, 225, 0.25), 0 20px 45px rgba(0, 0, 0, 0.45);
}

.qr-card-glow {
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  border: 1px solid rgba(77, 208, 225, 0.18);
  pointer-events: none;
  animation: qr-glow-pulse 2.6s ease-in-out infinite;
}

@keyframes qr-glow-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.03); }
}

.qr-image {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-hint {
  text-align: center;
  margin: 1.1rem 0 0;
  color: var(--tec-text-light);
  font-size: 0.95rem;
}

.qr-actions {
  padding: 1.5rem 1.5rem 0;
  max-width: 420px;
  margin: 0 auto;
}

.qr-present-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--tec-primary), var(--tec-primary-dark));
  box-shadow: 0 10px 25px rgba(47, 111, 237, 0.45);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.qr-present-btn:active {
  transform: scale(0.98);
}

.qr-present-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}

/* Estado inactivo (al soltar el botón): look "outline", sin spinner visible. */
.qr-present-btn--idle {
  background: transparent;
  border: 1px solid rgba(47, 111, 237, 0.5);
  color: var(--tec-primary);
  box-shadow: none;
}

.qr-present-btn--idle .qr-present-spinner {
  opacity: 0;
}

.qr-press-hint {
  text-align: center;
  margin: 0.6rem 0 0;
  color: var(--tec-text-muted);
  font-size: 0.8rem;
}

.qr-cancel-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: var(--tec-text-light);
  font-weight: 600;
  text-decoration: none;
}

.qr-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.qr-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.75rem 0 0.2rem;
  color: var(--tec-text-muted);
  font-size: 0.8rem;
}

.qr-footer i {
  color: var(--tec-accent);
}

/* ---------- PWA INSTALL BANNER ---------- */
.pwa-install-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1899;
  background: rgba(2, 4, 15, 0.72);
  backdrop-filter: blur(3px);
  animation: pwa-fade-in 0.2s ease-out;
}

@keyframes pwa-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pwa-install-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1.5rem;
  z-index: 1900;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(160deg, #1a2350 0%, #0e1433 100%);
  border: 2px solid var(--tec-accent);
  border-radius: 24px;
  box-shadow: 0 0 0 6px rgba(77, 208, 225, 0.12), 0 25px 60px rgba(0, 0, 0, 0.65);
  max-width: 440px;
  margin: 0 auto;
  animation: pwa-banner-in 0.3s ease-out, pwa-banner-glow 2.2s ease-in-out infinite;
}

@keyframes pwa-banner-in {
  from { transform: translateY(40px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes pwa-banner-glow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(77, 208, 225, 0.12), 0 25px 60px rgba(0, 0, 0, 0.65); }
  50% { box-shadow: 0 0 0 12px rgba(77, 208, 225, 0.22), 0 25px 70px rgba(0, 0, 0, 0.7); }
}

.pwa-install-banner__icon img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pwa-install-banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pwa-install-banner__text strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.pwa-install-banner__text span {
  font-size: 1rem;
  color: var(--tec-text-light);
  line-height: 1.4;
  opacity: 0.9;
}

.pwa-install-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.pwa-install-banner__btn {
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
}

.pwa-install-banner__btn--primary {
  background: linear-gradient(135deg, var(--tec-accent) 0%, var(--tec-primary) 100%);
  color: #06122a;
  box-shadow: 0 10px 25px rgba(45, 156, 219, 0.45);
}

.pwa-install-banner__btn--primary:hover {
  filter: brightness(1.08);
}

.pwa-install-banner__btn--ghost {
  background: transparent;
  color: var(--tec-text-muted);
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.pwa-install-banner__btn--ghost:hover {
  color: var(--tec-text-light);
}
