/* ================================================
   PWA INSTALL + MOBILE UI STYLES
   Loaded only on mobile via functions.php
================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --fire: #FF5C00;
  --fire2: #FF8C00;
  --gold: #D4A017;
  --bg: #080808;
  --surface: #111;
  --surface2: #181818;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.13);
  --text: #F5F0E8;
  --muted: rgba(245, 240, 232, 0.45);
  --muted2: rgba(245, 240, 232, 0.2);
  --green: #2ECC71;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── MOCK SITE ── */
.mock-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 280px;
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.mock-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--fire);
}

.mock-nav {
  display: flex;
  gap: 24px;
}

.mock-nav span {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.mock-icons {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 18px;
}

.mock-hero {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  padding: 36px 20px 28px;
}

.mock-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 92, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.mock-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fire);
  margin-bottom: 6px;
}

.mock-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
}

.mock-headline span {
  color: var(--fire);
}

.mock-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 92, 0, 0.1);
  border: 1px solid rgba(255, 92, 0, 0.25);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 180, 80, 0.9);
}

.mock-products {
  padding: 20px;
}

.mock-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 14px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.btn-install {
  background: #C8820A !important;
}

.mock-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fire);
  opacity: 0.5;
}

.mock-img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  background: #1a1a1a;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
}

.mock-strain {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.mock-sub {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mock-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--fire);
  margin-top: 5px;
}

.badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--green);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--fire);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════
   FLOATING CTA CARD
════════════════════════════════════════════ */
#install-cta {
  position: fixed;
  bottom: 20px;
  left: 14px;
  right: 14px;
  transform: translateY(140%);
  opacity: 0;
  max-width: 440px;
  margin: 0 auto;
  z-index: 500;
  transition: transform 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
}

#install-cta.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

#install-cta.gone {
  transform: translateX(-50%) translateY(140%);
  opacity: 0;
  pointer-events: none;
}

.main_install-cta.show {
  transform: translateX(0%) translateY(0) !important;
}

.cta-card {
  background: #1a1a1a;
  border: 1px solid #c8820a54;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cta-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #c8820a, #c8820a, #c8820a);
}

.cta-inner {
  padding: 14px 16px 16px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border-bottom: 1px solid #e5e5e524;
}

.overlay {
  background: unset !important;
}

.cta-flame {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #d9770600;
  border: 1px solid #c8820a54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
}

.cta-flame::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--surface2);
  animation: livePulse 2s ease infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

.cta-copy {
  flex: 1;
}

.cta-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c8820a;
  margin-bottom: 4px;
}

.cta-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.cta-body {
  font-size: 12px;
  color: #ffffff61;
  line-height: 1.45;
  font-family: 'DM Sans', sans-serif !important;
  padding: 14px 16px 16px;
}

.cta-body strong {
  color: #c8820a;
  font-weight: 600;
}

.cta-dismiss {
  background: none;
  border: none;
  color: rgb(255 255 255);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  margin-top: -2px;
  transition: color 0.15s;
}

.cta-dismiss:hover {
  color: var(--muted);
}

.cta-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 9px;
}

.btn-install {
  flex: 1;
  background: var(--fire);
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, transform 0.12s;
}

.btn-install:active {
  background: #e05000;
  transform: scale(0.97);
}

.btn-later {
  background: #00000000;
  border: 1px solid #c8820a54;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgb(200 130 10);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  background: #d9770600 !important;
}

.btn-later:hover {
  color: #c8820a;
  border-color: rgb(200 130 10);
}

/* ════════════════════════════════════════════
   OVERLAY + SHEET
════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 600;
  pointer-events: none;
  transition: background 0.3s;
}

.overlay.on {
  background: rgba(0, 0, 0, 0.78);
  pointer-events: all;
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(255, 92, 0, 0.18);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  z-index: 700;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.sheet.open {
  transform: translateY(0);
}

.sheet-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--fire), var(--fire2), var(--gold));
  flex-shrink: 0;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.sheet-scroll {
  overflow-y: auto;
  flex: 1;
}

.sheet-body {
  padding: 20px 22px 48px;
}

.sheet-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sheet-app-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}

.sheet-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: rgba(255, 92, 0, 0.08);
  border: 1px solid rgba(255, 92, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.sheet-app-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.5px;
}

.sheet-app-domain {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.env-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 92, 0, 0.08);
  border: 1px solid rgba(255, 92, 0, 0.22);
  border-radius: 6px;
  padding: 5px 11px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 160, 80, 0.9);
}

.sheet-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--text);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
}

.step-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 92, 0, 0.12);
  border: 1px solid rgba(255, 92, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--fire);
  flex-shrink: 0;
  margin-top: 1px;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.step-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 3px 8px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.btn-sheet-main {
  width: 100%;
  background: var(--fire);
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s, transform 0.12s;
}

.btn-sheet-main:active {
  background: #e05000;
  transform: scale(0.98);
}

.btn-sheet-soft {
  width: 100%;
  background: transparent;
  border: none;
  padding: 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  margin-top: 8px;
}

.warn-box {
  background: rgba(232, 160, 32, 0.07);
  border: 1px solid rgba(232, 160, 32, 0.18);
  border-radius: 10px;
  padding: 12px 13px;
  margin-bottom: 16px;
  font-size: 12px;
  color: rgba(230, 190, 80, 0.85);
  line-height: 1.5;
}

.installed-wrap {
  text-align: center;
  padding: 10px 0;
}

.installed-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.1);
  border: 1.5px solid rgba(46, 204, 113, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  animation: popIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.qr-box {
  background: white;
  border-radius: 12px;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.qr-placeholder {
  width: 110px;
  height: 110px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.qr-cell {
  border-radius: 1px;
}
