.hibrido-profiles {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #000;
}

.hibrido-profiles.is-overlay {
  position: fixed;
  z-index: 10050;
}

.hibrido-profiles .hp-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hibrido-profiles .hp-back,
.hibrido-profiles .hp-header,
.hibrido-profiles .hp-scroll,
.hibrido-profiles .hp-footer {
  position: relative;
  z-index: 1;
}

.hibrido-profiles .hp-back {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.hibrido-profiles .hp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  text-align: left;
}

.hibrido-profiles .hp-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.hibrido-profiles .hp-header h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
}

.hibrido-profiles .hp-header p,
.hibrido-profiles .hp-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.hibrido-profiles .hp-scroll {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.hibrido-profiles .hp-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: min-content;
  margin: 0 auto;
  padding: 24px 32px 8px;
}

.hibrido-profiles .hp-item {
  width: 158px;
  margin: 0 12px;
  flex: 0 0 auto;
}

.hibrido-profiles .hp-card {
  width: 100%;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--glow, #fff) 38%, transparent);
  border-radius: 16px;
  background: var(--glass-bg);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hibrido-profiles .hp-card:hover,
.hibrido-profiles .hp-card:focus-visible {
  transform: scale(1.08);
  border-color: #fff;
  outline: none;
}

.hibrido-profiles .hp-card:disabled {
  cursor: default;
  opacity: 0.7;
}

.hibrido-profiles .hp-badge {
  margin-bottom: 2px;
  padding: 3px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--glow, #1fafb3);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.hibrido-profiles .hp-badge.is-bad {
  background: #c62828;
}

.hibrido-profiles .hp-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  margin-top: 4px;
}

.hibrido-profiles .hp-avatar img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.hibrido-profiles .hp-avatar-dim {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
}

.hibrido-profiles .hp-spin {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hp-spin 0.8s linear infinite;
}

@keyframes hp-spin {
  to { transform: rotate(360deg); }
}

.hibrido-profiles .hp-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  color: #d7d7d7;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hibrido-profiles .hp-name img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hibrido-profiles .hp-status,
.hibrido-profiles .hp-expiry {
  margin-top: 4px;
  font-size: 10px;
  text-align: center;
}

.hibrido-profiles .hp-status {
  color: #ff4d4d;
  font-weight: 700;
}

.hibrido-profiles .hp-expiry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
}

.hibrido-profiles .hp-expiry span:last-child {
  white-space: nowrap;
}

.hibrido-profiles .hp-expiry b {
  font-weight: 400;
}

.hibrido-profiles .hp-expiry b.is-past {
  color: #ff4d4d;
  font-weight: 700;
}

.hibrido-profiles .hp-cal {
  width: 12px;
  height: 12px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  position: relative;
  flex: 0 0 auto;
}

.hibrido-profiles .hp-cal::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 3px;
  height: 1.5px;
  background: #fff;
}

.hibrido-profiles .hp-add {
  border-color: rgba(255, 255, 255, 0.38);
}

.hibrido-profiles .hp-add-tag {
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hibrido-profiles .hp-actions {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}

.hibrido-profiles .hp-reload,
.hibrido-profiles .hp-delete {
  flex: 1;
  padding: 8px 6px;
  border: 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}

.hibrido-profiles .hp-delete {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.hibrido-profiles .hp-reload:hover,
.hibrido-profiles .hp-reload:focus-visible,
.hibrido-profiles .hp-delete:hover,
.hibrido-profiles .hp-delete:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: 2px solid #fff;
}

.hibrido-profiles .hp-delete:hover,
.hibrido-profiles .hp-delete:focus-visible {
  background: rgba(198, 40, 40, 0.9);
  outline-color: #ff6b6b;
}

.hibrido-profiles .hp-reload:disabled,
.hibrido-profiles .hp-delete:disabled {
  opacity: 0.45;
  cursor: default;
}

.hibrido-profiles .hp-footer {
  margin-bottom: 20px;
  max-width: 640px;
  padding: 0 20px 8px;
  text-align: center;
}

.hibrido-profiles .hp-footer p + p {
  margin-top: 4px;
}

.hibrido-profiles .hp-message {
  margin-top: 10px !important;
  color: #ffb4b4 !important;
  font-size: 14px !important;
}

.hibrido-profiles .hp-logout {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

body.show-profiles .profiles-page {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 0;
  background: #000;
}

body.show-profiles #profile-screen-host {
  position: absolute;
  inset: 0;
}
