/* =========================================================
   ApkCrunch Content Locker Stylesheet
   ========================================================= */

.apkcrunch-locker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Lato', Arial, sans-serif;
  animation: lockerFadeIn 0.25s ease;
}

@keyframes lockerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.apkcrunch-locker-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: lockerCardScale 0.28s ease;
}

@keyframes lockerCardScale {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.apkcrunch-locker-header {
  padding: 22px 24px 16px;
  background: linear-gradient(180deg, #fafafa, #ffffff);
  border-bottom: 1px solid #eeeeee;
  position: relative;
  text-align: center;
}

.apkcrunch-locker-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #888888;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s ease;
}

.apkcrunch-locker-close:hover {
  color: #bf353a;
}

.apkcrunch-locker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 999px;
  color: #bf353a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.apkcrunch-locker-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  color: #070707;
  line-height: 1.25;
}

.apkcrunch-locker-subtitle {
  margin: 0;
  font-size: 13px;
  color: #666666;
  line-height: 1.4;
}

.apkcrunch-locker-body {
  padding: 18px 22px;
  max-height: 60vh;
  overflow-y: auto;
}

.apkcrunch-locker-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8f8f8;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  font-size: 12.5px;
  color: #555555;
  margin-bottom: 14px;
}

.apkcrunch-locker-status-bar b {
  color: #070707;
}

.apkcrunch-offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apkcrunch-offer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.apkcrunch-offer-item:hover {
  border-color: #bf353a;
  box-shadow: 0 4px 14px rgba(191, 53, 58, 0.12);
  transform: translateY(-1px);
}

.apkcrunch-offer-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}

.apkcrunch-offer-info {
  flex: 1;
  min-width: 0;
}

.apkcrunch-offer-name {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 700;
  color: #070707;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apkcrunch-offer-desc {
  margin: 0;
  font-size: 12px;
  color: #777777;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.apkcrunch-offer-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #bf353a, #991b1b);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.apkcrunch-offer-item:hover .apkcrunch-offer-btn {
  opacity: 0.92;
}

.apkcrunch-locker-footer {
  padding: 14px 22px 18px;
  background: #fafafa;
  border-top: 1px solid #eeeeee;
  text-align: center;
}

.apkcrunch-check-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #070707;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.apkcrunch-check-btn:hover {
  background: #bf353a;
}

.apkcrunch-check-btn.unlocked {
  background: #16a34a;
}

.apkcrunch-footer-note {
  margin: 0;
  font-size: 11.5px;
  color: #888888;
}

.apkcrunch-loading {
  padding: 30px 10px;
  text-align: center;
  color: #777777;
}

.apkcrunch-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eeeeee;
  border-top-color: #bf353a;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: apkcrunchSpin 0.8s linear infinite;
}

@keyframes apkcrunchSpin {
  to { transform: rotate(360deg); }
}
