.pxlident-alert{background:#fff3cd;border:1px solid #ffeeba;padding:12px;border-radius:6px;margin:10px 0}
.pxlident-actions .btn{margin-right:6px}
.pxlident-modal{position:fixed;z-index:99999;inset:0;background:rgba(0,0,0,.45)}
.pxlident-modal-content{background:#fff;max-width:720px;width:96%;max-height:92vh;margin:4vh auto;padding:16px;border-radius:10px}
.pxlident-close{float:right;font-size:24px;border:0;background:transparent;cursor:pointer}
.pxlident-status{margin-top:8px;font-size:14px}
.pxlident-disabled{opacity:.5;pointer-events:none}

/* Modern 2026 CSS Design - Age Verification Banner */
.pxl-verification-banner {
  margin: 0 !important;
  border-radius: 0;
  position: relative;
  z-index: 100;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  /* Prevent layout shift - set min-height to prevent banner from shrinking when QR/secret code sections are hidden */
  min-height: 120px;
  /* Smooth height transitions */
  transition: min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Prevent layout shift */
  contain: layout style paint;
  will-change: auto;
}

.pxl-banner-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
  /* Ensure success banner maintains minimum height to prevent layout shift */
  min-height: 120px;
}

.pxl-banner-pending {
    background: #fbfbfb;
}

.pxl-banner-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}

.pxl-banner-content {
  display: flex !important;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
}

.pxl-icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.pxl-banner-success .pxl-icon-wrapper {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.pxl-banner-pending .pxl-icon-wrapper {
  background: rgb(251 251 251);
  color: #ef7d0a;
  border-radius: 100%;
}

.pxl-banner-error .pxl-icon-wrapper {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.pxl-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.pxl-icon-spinner {
  animation: pxl-spin 2s linear infinite;
}

@keyframes pxl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pxl-message {
  flex: 1 1 auto;
  min-width: 0;
}

.pxl-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #1f2937;
}

.pxl-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

.pxl-transaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  font-size: 12px;
}

.pxl-badge-label {
  color: #6b7280;
  font-weight: 500;
}

.pxl-badge-code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  color: #1f2937;
  font-size: 11px;
}

/* QR Code Section */
.pxl-qr-section {
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Secret Code CTA */
.pxl-secret-code-section {
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.pxl-secret-code-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.pxl-secret-code-card {
  width: 100%;
  max-width: 560px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fff7ef 0%, #fff5e7 100%);
  border-radius: 28px;
  border: 1px solid rgba(201, 104, 7, 0.25);
  text-align: center;
}

.pxl-secret-code-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.pxl-secret-code-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 104, 7, 0.12);
  color: #c96807;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pxl-secret-code-icon svg {
  width: 24px;
  height: 24px;
}

.pxl-secret-code-text {
  max-width: 380px;
}

.pxl-secret-code-title {
  font-size: 16px;
  font-weight: 600;
  color: #9c4a02;
  margin-bottom: 6px;
}

.pxl-secret-code-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b3421;
}

.pxl-secret-code-input-group {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.pxl-secret-code-input {
  flex: 0 1 200px;
  max-width: 230px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 14px 20px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 4px;
  background: #fff;
}

.pxl-secret-code-input:focus {
  outline: none;
  border-color: #e2770c;
}

.pxl-secret-code-button {
  border-radius: 999px;
  padding: 10px 24px;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #c96807 0%, #ef7d0a 35%, #e2770c 100%);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pxl-secret-code-button:hover,
.pxl-secret-code-button:focus {
  transform: translateY(-1px);
}

.pxl-secret-code-error {
  margin-top: 10px;
  font-size: 13px;
  color: #b91c1c;
  display: none;
}

.pxl-secret-code-hint {
  margin-top: 12px;
  font-size: 13px;
  color: #5c3c1a;
}

.pxl-secret-code-link {
  background: none;
  border: none;
  color: #c96807;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

@media (max-width: 600px) {
  .pxl-secret-code-card {
    padding: 20px;
  }

  .pxl-secret-code-input-group {
    flex-direction: column;
  }

  .pxl-secret-code-input {
    width: 100%;
    max-width: 100%;
  }

  .pxl-secret-code-button {
    width: 100%;
  }
}

/* Hide QR code section on mobile devices by default */
/* This is a fallback in case JavaScript detection fails */
@media (max-width: 768px) {
  .pxl-qr-section {
    display: none !important;
  }
  
  #pxl-qr-code {
    display: none !important;
  }
}

.pxl-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pxl-qr-code-wrapper {
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pxl-qr-code {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pxl-qr-code canvas,
.pxl-qr-code img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* QR Code Loading Indicator */
.pxl-qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 200px;
  width: 100%;
}

.pxl-qr-loading-spinner {
  width: 48px;
  height: 48px;
  color: #6366f1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pxl-qr-loading-spinner svg {
  width: 48px;
  height: 48px;
}

.pxl-qr-loading-text {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.pxl-qr-instructions {
  text-align: center;
  max-width: 400px;
}

.pxl-qr-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pxl-qr-icon svg {
  width: 32px;
  height: 32px;
}

.pxl-qr-text {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.pxl-qr-hint {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.pxl-status-indicator {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.pxl-status-text {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.pxl-error-help {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border-left: 3px solid #ef4444;
}

.pxl-error-help p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.pxl-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.pxl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pxl-btn svg {
  width: 18px;
  height: 18px;
}

.pxl-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
}

.pxl-btn-primary:hover {
  transform: translateY(-2px);
}

.pxl-btn-primary:active {
  transform: translateY(0);
}

/* Mobile Button Section */
.pxl-mobile-section {
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pxl-mobile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.pxl-mobile-icon {
  width: 64px;
  height: 64px;
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pxl-mobile-icon svg {
  width: 48px;
  height: 48px;
}

.pxl-mobile-text {
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
}

.pxl-btn-mobile {
  border-radius: 50px !important;
  background: #c96807 !important;
  background: -moz-linear-gradient(90deg, #c96807 0, #ef7d0a 35%, #e2770c 100%) !important;
  background: -webkit-linear-gradient(90deg, #c96807 0, #ef7d0a 35%, #e2770c 100%) !important;
  background: linear-gradient(90deg, #c96807 0, #ef7d0a 35%, #e2770c 100%) !important;
  padding: 15px 40px !important;
  width: auto !important;
  border: none !important;
  color: #fff !important;
  min-width: 240px;
  font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pxl-verification-banner {
    padding: 20px;
    border-radius: 12px;
  }
  
  .pxl-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .pxl-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .pxl-title {
    font-size: 16px;
  }
  
  .pxl-subtitle {
    font-size: 13px;
  }
  
  .pxl-qr-code {
    width: 180px;
    height: 180px;
  }
  
  .pxl-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .pxl-btn {
    width: 100%;
    justify-content: center;
  }
  
  .pxl-btn-mobile {
    width: 100% !important;
    min-width: auto;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .pxl-verification-banner {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .pxl-title {
    color: #f9fafb;
  }
  
  .pxl-subtitle {
    color: #d1d5db;
  }
  
  .pxl-qr-code-wrapper {
    background: #374151;
  }
}

/* Modern Redirect Page Notifications */
.pxl-redirect-container {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 20px;
}

.pxl-notification {
  display: flex;
  gap: 20px;
  padding: 32px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  animation: pxl-notification-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

@keyframes pxl-notification-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pxl-notification-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.pxl-notification-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}

.pxl-notification-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.pxl-notification-success .pxl-notification-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.pxl-notification-error .pxl-notification-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.pxl-notification-icon svg {
  width: 28px;
  height: 28px;
}

.pxl-notification-content {
  flex: 1;
  min-width: 0;
}

.pxl-notification-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px 0;
  color: #1f2937;
}

.pxl-notification-success .pxl-notification-title {
  color: #166534;
}

.pxl-notification-error .pxl-notification-title {
  color: #991b1b;
}

.pxl-notification-text {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 12px 0;
}

.pxl-notification-success .pxl-notification-text {
  color: #166534;
}

.pxl-notification-error .pxl-notification-text {
  color: #7f1d1d;
}

.pxl-notification-text strong {
  font-weight: 600;
  color: #1f2937;
}

.pxl-notification-info {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border-left: 3px solid #22c55e;
}

.pxl-error-message {
  margin: 16px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border-left: 3px solid #ef4444;
}

.pxl-error-message .pxl-notification-text {
  margin: 0;
  font-weight: 500;
  color: #991b1b;
}

.pxl-notification-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pxl-btn-redirect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3), 0 2px 4px -1px rgba(99, 102, 241, 0.2);
}

.pxl-btn-redirect:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4), 0 4px 6px -2px rgba(99, 102, 241, 0.3);
  color: #ffffff;
  text-decoration: none;
}

.pxl-btn-redirect:active {
  transform: translateY(0);
}

.pxl-btn-redirect svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.pxl-btn-redirect:hover svg {
  transform: translateX(2px);
}

.pxl-countdown {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.pxl-countdown-text {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.pxl-countdown-number {
  display: inline-block;
  min-width: 28px;
  padding: 4px 8px;
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  margin: 0 4px;
}

.pxl-transaction-info {
  margin-top: 24px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pxl-transaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  font-size: 13px;
}

.pxl-badge-label {
  color: #6b7280;
  font-weight: 500;
}

.pxl-badge-code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 600;
}

.pxl-transaction-status {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pxl-redirect-container {
    margin: 20px auto;
    padding: 0 15px;
  }
  
  .pxl-notification {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  
  .pxl-notification-icon {
    width: 48px;
    height: 48px;
    align-self: flex-start;
  }
  
  .pxl-notification-title {
    font-size: 20px;
  }
  
  .pxl-notification-text {
    font-size: 14px;
  }
  
  .pxl-btn-redirect {
    width: 100%;
    justify-content: center;
  }
  
  .pxl-transaction-info {
    padding: 16px;
  }
}