/* Demo Access Manager – Session Popup */
#dam-popup {
  position: fixed;
  z-index: 999999;
  min-width: 230px;
  max-width: 270px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  overflow: hidden;
  transition: opacity .3s, transform .3s;
}

/* Positions */
.dam-popup--bottom-right  { bottom: 24px; right: 24px; }
.dam-popup--bottom-left   { bottom: 24px; left:  24px; }
.dam-popup--bottom-center { bottom: 24px; left: 50%; transform: translateX(-50%); }
.dam-popup--top-right     { top: 24px; right: 24px; }
.dam-popup--top-left      { top: 24px; left:  24px; }

/* Header */
.dam-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  cursor: pointer;
  user-select: none;
}
.dam-popup-icon { font-size: 16px; line-height: 1; }
.dam-popup-title {
  flex: 1;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;
}
.dam-popup-toggle {
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: inherit;
  width: 22px; height: 22px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.dam-popup-toggle:hover { background: rgba(255,255,255,.3); }

/* Body */
.dam-popup-body {
  padding: 4px 14px 14px;
  transition: max-height .35s ease, opacity .35s ease;
  max-height: 200px;
  overflow: hidden;
}
.dam-popup-body.dam-collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 14px;
}

.dam-popup-msg {
  font-size: 12.5px;
  opacity: .9;
  margin-bottom: 10px;
  line-height: 1.45;
}
.dam-popup-msg strong { font-weight: 700; }

/* Progress bar */
.dam-progress-track {
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
}
.dam-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #8cc542, #a8d96a);
  transition: width 1s linear;
  width: 100%;
}
.dam-progress-bar.dam-warning { background: linear-gradient(90deg, #e07309, #f0a85a); }
.dam-progress-bar.dam-danger  { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Big countdown */
.dam-countdown-big {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  letter-spacing: .03em;
  margin-bottom: 10px;
}

/* End button */
.dam-end-btn {
  display: block;
  width: 100%;
  padding: 7px 0;
  border: 1.5px solid rgba(255,255,255,.35);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.dam-end-btn:hover { background: rgba(255,255,255,.15); }

/* Warning pulse when < 5 min */
@keyframes dam-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}
#dam-popup.dam-urgent { animation: dam-pulse 1.5s ease-in-out infinite; }
