/* ============================================================
   INNOTICX — Conversion Enhancements Styles
   Popup, Sticky Bar, Social Proof Ticker
   ============================================================ */

/* ---- Body scroll lock ---- */
body.inno-no-scroll { overflow: hidden; }

/* ============================================================
   POPUP OVERLAY
   ============================================================ */
#inno-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#inno-popup-overlay.visible {
  opacity: 1;
}

.inno-popup {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(32,32,255,0.08);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#inno-popup-overlay.visible .inno-popup {
  transform: translateY(0) scale(1);
}

/* Badge */
.inno-popup-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* Headline */
.inno-popup-headline {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text, #111);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Subtext */
.inno-popup-sub {
  font-size: 14px;
  color: var(--text-secondary, #555);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Form fields */
.inno-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.inno-field-group input,
.inno-field-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border, rgba(0,0,0,0.12));
  border-radius: 12px;
  background: var(--bg, #fafafa);
  color: var(--text, #111);
  font-size: 15px;
  font-family: var(--font, 'Inter', sans-serif);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.inno-field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.inno-field-group input:focus,
.inno-field-group select:focus {
  border-color: var(--accent, #2020ff);
  box-shadow: 0 0 0 3px rgba(32,32,255,0.1);
}

/* CTA Button */
.inno-popup-cta {
  width: 100%;
  padding: 15px;
  background: var(--accent, #2020ff);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(32,32,255,0.3);
  font-family: var(--font, 'Inter', sans-serif);
  margin-top: 4px;
}

.inno-popup-cta:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: scale(1.02);
  box-shadow: 0 0 36px rgba(32,32,255,0.45);
}

.inno-popup-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success message */
.inno-popup-success {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
  padding: 24px 0 8px;
  line-height: 1.5;
}

/* Dismiss link */
.inno-popup-dismiss {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim, #888);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 14px;
  padding: 4px;
  transition: color 0.2s;
  font-family: var(--font, 'Inter', sans-serif);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inno-popup-dismiss:hover {
  color: var(--text-secondary, #555);
}

/* Shake animation (validation) */
@keyframes innoShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.inno-popup.shake {
  animation: innoShake 0.45s ease;
}

/* ============================================================
   STICKY MOBILE BAR (mobile only)
   ============================================================ */
#inno-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bg-card, #fff);
  border-top: 1px solid var(--border, rgba(0,0,0,0.08));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

#inno-sticky-bar .inno-bar-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 12px;
}

#inno-sticky-bar .inno-bar-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  background: var(--accent, #2020ff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s, transform 0.15s;
  font-family: var(--font, 'Inter', sans-serif);
  box-shadow: 0 0 16px rgba(32,32,255,0.25);
}

#inno-sticky-bar .inno-bar-btn:hover {
  filter: brightness(1.12);
  transform: scale(1.04);
}

/* Show only on mobile */
@media (min-width: 768px) {
  #inno-sticky-bar {
    display: none !important;
  }
}

/* On mobile, add bottom padding to body so content isn't hidden behind bar */
@media (max-width: 767px) {
  body {
    padding-bottom: 52px;
  }
}

/* ============================================================
   SOCIAL PROOF TICKER (bottom of page, above footer)
   ============================================================ */
#inno-social-ticker {
  background: var(--bg-card, #fff);
  border-top: 1px solid var(--border, rgba(0,0,0,0.08));
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

#inno-social-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: innoTickerScroll 40s linear infinite;
  width: max-content;
}

#inno-social-ticker-inner span {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #555);
  padding: 0 40px;
  border-right: 1px solid var(--border, rgba(0,0,0,0.10));
}

#inno-social-ticker-inner span:last-child {
  border-right: none;
}

@keyframes innoTickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover */
#inno-social-ticker:hover #inno-social-ticker-inner {
  animation-play-state: paused;
}

/* ============================================================
   REGISTRATION TIER PICKER
   ============================================================ */
.reg-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.reg-tier-card {
  position: relative;
  border: 1.5px solid var(--border, rgba(0,0,0,0.10));
  border-radius: 14px;
  padding: 14px 12px 12px;
  cursor: pointer;
  text-align: center;
  background: var(--bg, #fafafa);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  user-select: none;
}

.reg-tier-card:hover {
  border-color: var(--accent, #2020ff);
  box-shadow: 0 0 0 3px rgba(32,32,255,0.08);
  transform: translateY(-2px);
}

.reg-tier-card.selected {
  border-color: var(--accent, #2020ff);
  box-shadow: 0 0 0 3px rgba(32,32,255,0.15), 0 4px 16px rgba(32,32,255,0.12);
  background: rgba(32,32,255,0.04);
}

.reg-tier-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent, #2020ff);
}

.reg-tier-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: rgba(32,32,255,0.1);
  color: var(--accent, #2020ff);
  border: 1px solid rgba(32,32,255,0.2);
  padding: 2px 8px;
  border-radius: 50px;
}

.reg-tier-badge-top {
  font-size: 22px;
  margin-bottom: 6px;
  line-height: 1;
}

.reg-tier-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #111);
  margin-bottom: 3px;
}

.reg-tier-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent, #2020ff);
  margin-bottom: 4px;
}

.reg-tier-desc {
  font-size: 11px;
  color: var(--text-secondary, #666);
  line-height: 1.4;
}

/* Mobile: single column */
@media (max-width: 480px) {
  .reg-tier-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .reg-tier-card { padding: 12px 8px 10px; }
  .reg-tier-price { font-size: 15px; }
  .reg-tier-name { font-size: 12px; }
}
