/* ==========================================================================
   APPVIXA-STYLE MOBILE & DESKTOP CONTENT LOCKER (GTA VI VICE CITY EDITION)
   Inspired directly by https://appvixa.com/cl/v/6njde7 and reference screenshots
   ========================================================================== */

/* Locker Modal Backdrop */
.locker-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(5, 3, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 10px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.locker-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal Inner Wrapper */
.locker-dialog {
  width: 100%;
  max-width: 440px;
  margin: auto;
  position: relative;
  animation: lockerPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Main Visual Locker Container */
.vc-locker-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px 14px 20px;
  background:
    radial-gradient(circle at 10% 6%, rgba(255, 77, 159, 0.18), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(88, 124, 255, 0.16), transparent 32%),
    radial-gradient(circle at 50% 95%, rgba(255, 155, 88, 0.10), transparent 34%),
    linear-gradient(160deg, #1b1022 0%, #100917 55%, #08050d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.vc-locker-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 28%);
}

.vc-locker-box > * {
  position: relative;
  z-index: 2;
}

/* Modal Close Button */
.locker-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a99fb2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.locker-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Header Area */
.vc-header {
  position: relative;
  text-align: center;
  padding-top: 8px;
  margin-bottom: 20px;
}

/* Centered 3D Lock Icon */
.vc-lock-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 26px;
  background: linear-gradient(135deg, #ff4d9f 0%, #c83788 52%, #7749f5 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 14px 34px rgba(255, 77, 159, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: vcLockPulse 1.8s ease-in-out infinite;
}

@keyframes vcLockPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 34px rgba(255, 77, 159, 0.35); }
  50% { transform: scale(1.05); box-shadow: 0 18px 40px rgba(255, 77, 159, 0.5); }
}

/* Header Top Badges Row */
.vc-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  width: 100%;
}

.vc-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.vc-timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: vcTimerBlink 1s infinite alternate;
}

@keyframes vcTimerBlink {
  0% { opacity: 0.35; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* "VERIFY ACCESS" Badge */
.vc-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 28, 20, 0.82);
  border: 1px solid rgba(73, 229, 139, 0.35);
  color: #bff9d6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.vc-verify-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #49e58b;
  box-shadow: 0 0 6px #49e58b;
}

.vc-title {
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin: 0;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

/* Upper Card - Key Preview & 3-Step Flow */
.vc-card {
  border-radius: 22px;
  padding: 16px 12px 14px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 77, 159, 0.12), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

/* Key Masked Capsule */
.vc-key-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.vc-mini-lock {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 20px;
  background: linear-gradient(135deg, #ff4d9f, #ca398d 55%, #7749f5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(255, 77, 159, 0.3);
}

.vc-code-box {
  min-width: 195px;
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #08050d;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  color: #8f8595;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 2.2px;
  box-shadow:
    inset 0 0 24px rgba(255, 77, 159, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.vc-code-box.blurred span {
  filter: blur(4px);
  color: #cfc2d8;
  opacity: 0.85;
}

/* 3-Step Flow Indicators */
.vc-flow {
  display: grid;
  grid-template-columns: 78px 16px 78px 16px 78px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 12px auto 14px;
}

.vc-step-box {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.vc-step-box.is-complete {
  border-color: #49e58b;
  background: rgba(73, 229, 139, 0.1);
}

.vc-step-box small {
  color: #d8cddd;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 800;
}

.vc-flow-arrow {
  color: #ff5ca9;
  font-style: normal;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 0 14px rgba(255, 77, 159, 0.4);
  animation: vcArrow 1.2s ease-in-out infinite;
}

@keyframes vcArrow {
  0%, 100% { transform: translateX(0); opacity: 0.8; }
  50% { transform: translateX(2px); opacity: 1; }
}

/* Mini Apps Grid Graphic (6 dots icon) */
.vc-app-grid-icon {
  width: 38px;
  height: 48px;
  padding: 6px 4px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4d9f, #c7358b 55%, #7749f5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 18px rgba(255, 77, 159, 0.25);
}

.vc-app-grid-icon.alt {
  background: linear-gradient(135deg, #587cff, #704af4 55%, #b642c5);
  box-shadow: 0 8px 18px rgba(88, 124, 255, 0.25);
}

.vc-app-grid-icon span {
  width: 8.5px;
  height: 8.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.95);
}

/* Key Icon Box */
.vc-key-target-icon {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ff9b58, #ff4d9f 55%, #7749f5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 22px rgba(255, 155, 88, 0.22);
}

/* Verification Progress Bar */
.vc-bar {
  height: 9px;
  margin: 12px 2px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #08050d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vc-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9b58 0%, #ff4d9f 38%, #a340dd 68%, #587cff 100%);
  box-shadow: 0 0 16px rgba(255, 77, 159, 0.35);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fair Access Note */
.vc-note {
  margin-top: 12px;
  padding: 11px 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a99fb2;
  font-size: 10.5px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
}

.vc-note b {
  color: #fff;
  font-weight: 800;
}

/* Offers Container */
.vc-offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* Loading State for Offers */
.vc-loading-offers {
  padding: 24px 10px;
  text-align: center;
  color: #ff4d9f;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Offer Card Wrapper (for floating badges) */
.vc-offer-card-wrapper {
  position: relative;
  margin-top: 4px;
}

/* Floating Badges on Cards #1 & #2 */
.vc-offer-badge-floating {
  position: absolute;
  top: -8px;
  left: 14px;
  z-index: 5;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 2.5px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  font-family: 'Inter', system-ui, sans-serif;
  pointer-events: none;
}

.vc-badge-fast {
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
}

.vc-badge-hot {
  background: linear-gradient(90deg, #ff4d9f, #f59e0b);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 77, 159, 0.45);
}

/* Individual Offer Card */
.vc-offer-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 77, 159, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  text-align: left;
}

.vc-offer-card:hover {
  border-color: rgba(255, 77, 159, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.vc-offer-card.is-processing {
  border-color: #ff9b58;
  background: rgba(255, 155, 88, 0.08);
}

.vc-offer-card.is-completed {
  border-color: #49e58b;
  background: rgba(73, 229, 139, 0.08);
  opacity: 0.85;
}

/* Offer Icon & Rating */
.vc-offer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.vc-offer-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #110e19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.vc-offer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  display: block;
}

.vc-offer-icon-box.brand-dark {
  background: #111;
  color: #fff;
}

.vc-offer-icon-box strong {
  font-size: 13px;
  font-weight: 900;
  color: #ff4d9f;
  line-height: 1;
}

.vc-offer-icon-box small {
  font-size: 8px;
  color: #a99fb2;
  font-weight: 700;
}

.vc-rating-dots {
  display: flex;
  gap: 2px;
}

.vc-rating-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #facc15;
}

/* Offer Info Details */
.vc-offer-center {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

.vc-offer-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-offer-desc {
  font-size: 10px;
  line-height: 1.35;
  color: #b5a9be;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Offer Action Button (Compact 72px for perfect mobile display) */
.vc-offer-btn {
  flex-shrink: 0;
  width: 72px;
  padding: 8px 0;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ff4d9f 0%, #c83788 52%, #7749f5 100%);
  color: #fff;
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.8px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 77, 159, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.vc-offer-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.vc-offer-btn.btn-completed {
  background: #49e58b;
  color: #052312;
  box-shadow: 0 4px 12px rgba(73, 229, 139, 0.3);
  cursor: default;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
}

/* Bottom Status Bar */
.vc-bottom-tracker {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vc-remaining-msg {
  font-size: 12px;
  color: #cfc2d8;
  font-weight: 700;
  margin-bottom: 10px;
}

.vc-spinner-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.vc-ring-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vcSpin 0.9s linear infinite;
}

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

/* Floating Chat Bubble in Locker */
.vc-chat-fab {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #40e6ff;
  color: #061923;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(64, 230, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.vc-chat-fab:hover {
  transform: scale(1.08);
}

/* Dev Mode Button */
.vc-dev-test-btn {
  display: block;
  margin: 14px auto 0;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #a99fb2;
  font-size: 10px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vc-dev-test-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--pink);
}

/* Unlocked Success Box (Shown upon verification completion) */
.vc-success-view {
  display: none;
  text-align: center;
  padding: 10px 6px;
  animation: fadeIn 0.4s ease;
}

.vc-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: bounceSuccess 1.5s infinite;
}

@keyframes bounceSuccess {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.vc-success-title {
  font-size: 24px;
  font-weight: 900;
  color: #49e58b;
  margin-bottom: 6px;
}

.vc-success-sub {
  font-size: 12px;
  color: #d1c5d9;
  line-height: 1.5;
  margin-bottom: 20px;
}

.vc-unlocked-code-display {
  background: #08050d;
  border: 2px solid #49e58b;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(73, 229, 139, 0.25);
}

.vc-unlocked-code-display small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #49e58b;
  font-weight: 800;
  margin-bottom: 6px;
}

.vc-unlocked-code-display strong {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 22px;
  letter-spacing: 3px;
  color: #fff;
  font-weight: 900;
}

.vc-copy-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #49e58b, #22c55e);
  color: #062413;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(73, 229, 139, 0.35);
  margin-bottom: 18px;
}

.vc-copy-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.vc-instructions-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  font-size: 11px;
  line-height: 1.6;
  color: #c4b8cc;
}

.vc-instructions-box strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}
