/* KerkoMakina Google Auth & 5-Minute Gate Styling */

/* Header User Profile / Login Pill */
.kmUserAuthContainer {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

.kmAuthLoginBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  text-decoration: none;
}

.kmAuthLoginBtn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.kmAuthLoginBtn svg {
  width: 18px;
  height: 18px;
}

.kmUserProfile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.kmUserAvatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.kmUserName {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kmUserDropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  padding: 6px;
  z-index: 1000;
}

.kmUserProfile.active .kmUserDropdown {
  display: block;
}

.kmUserDropdownItem {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  border: none;
  background: none;
  font-size: 13px;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.kmUserDropdownItem:hover {
  background: #f8fafc;
  color: #dc2626;
}

/* 5-Minute Gate Modal Overlay */
.kmGateOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kmGateOverlay.kmGateVisible {
  opacity: 1;
  visibility: visible;
}

.kmGateCard {
  background: #ffffff;
  max-width: 460px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.kmGateOverlay.kmGateVisible .kmGateCard {
  transform: translateY(0) scale(1);
}

.kmGateBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.kmGateTitle {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 10px;
}

.kmGateSubtitle {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 24px;
}

.kmGateFeatures {
  text-align: left;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kmGateFeatureItem {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
}

.kmGateFeatureCheck {
  color: #10b981;
  font-weight: 800;
  font-size: 15px;
}

.kmGateButtonContainer {
  display: flex;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 14px;
}

.kmGateFooterNote {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

/* Prevent scrolling while gate is active */
body.kmGateLocked {
  overflow: hidden !important;
}
