/* Install guide, modal, mock demos — FlipMe2 theme */
:root {
  --line: rgba(255, 255, 255, 0.1);
  --guide-pink: #ff6ec7;
  --guide-magenta: #e040fb;
}

body.has-sticky-foot { padding-bottom: 96px; }

.guide {
  position: relative;
  z-index: 1;
  padding: 80px 0 40px;
}
.guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.guide-top h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}
.guide-top .safe {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.guide-intro {
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 720px;
}
.guide-steps {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.guide-step {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.guide-step.important {
  border-color: rgba(255, 110, 199, 0.35);
  background: rgba(255, 110, 199, 0.08);
}
.guide-step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--guide-pink), var(--guide-magenta));
  color: #fff;
}
.guide-step-body strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.guide-step-body span {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}
.guide-step-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92em;
}
.guide-access h4 {
  margin: 0 0 10px;
  font-size: 20px;
}
.guide-access > p,
.guide-access ol {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  line-height: 1.7;
}
.guide-access ol {
  margin: 12px 0 24px;
  padding-left: 20px;
}
.guide-caption {
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.55;
}
.guide-caption strong { color: #fff; }
.guide-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-size: 13px;
  line-height: 1.6;
  color: #bbf7d0;
}

.mock-demo { margin-top: 4px; }
.mock-phase-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.mock-phase-tab {
  flex: 1;
  padding: 8px 4px;
  border-radius: 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  line-height: 1.35;
}
.mock-phase-tab.active {
  color: #fff;
  background: rgba(255, 110, 199, 0.25);
  border-color: rgba(255, 110, 199, 0.45);
}
.mock-subdots { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.mock-subdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.25s, transform 0.25s;
}
.mock-subdot.active { background: var(--guide-pink); transform: scale(1.15); }
.mock-screen { display: none; }
.mock-screen.active { display: block; animation: mockFadeIn 0.45s ease; }
@keyframes mockFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.a14 {
  background: #fef7ff;
  color: #1d1b20;
  font-family: Roboto, "Segoe UI", sans-serif;
  border-radius: 18px;
  overflow: hidden;
}
.a14-status {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px 4px;
  font-size: 12px;
  background: #fef7ff;
}
.a14-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
  background: #fef7ff;
}
.a14-back {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.a14-topbar-copy h5 { margin: 0; font-size: 22px; font-weight: 400; }
.a14-topbar-copy small { display: block; margin-top: 2px; font-size: 12px; color: #49454f; }
.a14-content { padding: 0 16px 16px; background: #fef7ff; }
.a14-group {
  background: #fffbfe;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
}
.a14-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #e7e0ec;
  position: relative;
}
.a14-row:last-child { border-bottom: 0; }
.a14-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f3edf7;
}
.a14-row-icon img { width: 100%; height: 100%; object-fit: cover; }
.a14-row-icon.purple { background: #eaddff; color: #6750a4; font-size: 18px; }
.a14-row-icon.teal { background: #cbfff0; color: #006b5f; font-size: 18px; }
.a14-row-icon.gray { background: #ece6f0; color: #49454f; font-size: 18px; }
.a14-row-copy { flex: 1; min-width: 0; }
.a14-row-copy strong { display: block; font-size: 16px; font-weight: 400; color: #1d1b20; }
.a14-row-copy span { display: block; margin-top: 2px; font-size: 12px; color: #49454f; }
.a14-chevron { color: #49454f; font-size: 18px; }
.a14-switch {
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: #79747e;
  position: relative;
  flex-shrink: 0;
  transition: background 0.35s ease;
}
.a14-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fffbfe;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.35s ease;
}
.a14-switch.on { background: #6750a4; }
.a14-switch.on::after { left: 24px; }
.a14-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 14px;
}
.a14-hero img { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 8px; }
.a14-hero strong { font-size: 18px; font-weight: 500; color: #1d1b20; }
.a14-hero span { font-size: 12px; color: #49454f; margin-top: 4px; }
.a14-note { padding: 0 6px; font-size: 11px; line-height: 1.5; color: #49454f; }
.a14-nav { display: flex; justify-content: center; padding: 10px 0 8px; background: #fef7ff; }
.a14-nav span { width: 96px; height: 4px; border-radius: 999px; background: #1d1b20; }
.a14-row.tap-target.highlight { animation: rowPulseA14 1.8s ease-in-out infinite; }
@keyframes rowPulseA14 {
  0%, 100% { background: #fffbfe; box-shadow: inset 0 0 0 0 rgba(103, 80, 164, 0.35); }
  50% { background: #f3edf7; box-shadow: inset 0 0 0 2px rgba(103, 80, 164, 0.55); }
}
.a14-switch.tap-target.highlight { animation: switchPulse 1.8s ease-in-out infinite; }
@keyframes switchPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103, 80, 164, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(103, 80, 164, 0); }
}

.mock-perm-page {
  position: relative;
  min-height: 300px;
  background: #f3f4f6;
  font-family: Roboto, "Segoe UI", sans-serif;
  color: #111;
  border-radius: 18px;
  overflow: hidden;
}
.android-mock-status {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 600;
  background: #fff;
}
.android-mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 12px;
  background: #fff;
  border-bottom: 1px solid #eceff3;
}
.android-mock-bar h5 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; text-align: center; }
.android-mock-back, .android-mock-menu {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.mock-perm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #eceff3;
}
.mock-perm-row span { font-size: 13px; font-weight: 500; }
.mock-toggle {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
}
.mock-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
.mock-perm-sub { font-size: 10px; color: #64748b; padding: 4px 16px 8px; }
.mock-perm-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); }
.mock-perm-dialog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 16px 14px;
}
.mock-perm-dialog h6 { margin: 0 0 8px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.mock-perm-dialog > p { margin: 0 0 12px; font-size: 11px; line-height: 1.5; color: #64748b; }
.mock-perm-item { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid #f1f5f9; }
.mock-perm-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mock-perm-item strong { display: block; font-size: 11px; margin-bottom: 2px; }
.mock-perm-item span { display: block; font-size: 10px; color: #64748b; line-height: 1.4; }
.mock-perm-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.mock-perm-actions button {
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding: 6px 4px;
}
.mock-allow-btn {
  position: relative;
  color: var(--guide-magenta) !important;
  font-weight: 800 !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  background: rgba(224, 64, 251, 0.1) !important;
  animation: tapPulse 1.6s ease-in-out infinite;
}
.mock-allow-btn::after {
  content: "👆";
  position: absolute;
  top: -22px;
  right: 0;
  font-size: 16px;
  animation: tapBounce 1.6s ease-in-out infinite;
}
@keyframes tapPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 64, 251, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(224, 64, 251, 0); }
}
@keyframes tapBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.download-toast {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(100px + env(safe-area-inset-bottom, 0));
  z-index: 45;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(6, 95, 70, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #bbf7d0;
  font-size: 14px;
  line-height: 1.5;
}
.download-toast.is-visible { display: block; }

.tutorial-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(6px);
}
.tutorial-modal.is-visible { display: flex; }
.tutorial-modal-card {
  width: 100%;
  max-width: 400px;
  max-height: min(92vh, 780px);
  overflow-y: auto;
  border-radius: 22px;
  padding: 18px 16px;
  background: linear-gradient(160deg, #1a1228, #120a1e);
  border: 1px solid rgba(255, 110, 199, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.tutorial-modal-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: #fff; }
.tutorial-modal-card > p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: #cbd5e1; }
.tutorial-quick-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #fbcfe8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.modal-mock-viewport {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0812;
}
.modal-mock-viewport .mock-screen {
  display: block;
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-mock-viewport .mock-screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-mock-caption {
  margin: 8px 0 0;
  min-height: 40px;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  text-align: center;
}
.tutorial-modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tutorial-modal-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.tutorial-modal-btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--guide-pink), var(--guide-magenta));
  box-shadow: 0 8px 24px rgba(255, 110, 199, 0.35);
}
.tutorial-modal-btn.secondary {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.sticky-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(0deg, #0a0a0f 30%, transparent);
}
.sticky-foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(26, 26, 36, 0.92);
  border: 1px solid rgba(255, 110, 199, 0.25);
  backdrop-filter: blur(16px);
}
.sticky-foot-inner img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
}
.foot-text { flex: 1; min-width: 0; }
.foot-text b { display: block; font-size: 13px; }
.foot-text small { display: block; font-size: 10px; color: var(--guide-pink); font-weight: 700; margin-top: 2px; }
.chip-cta {
  flex-shrink: 0;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--guide-pink), var(--guide-magenta));
}
.chip-cta.is-loading, .btn-primary.is-loading, .nav-cta.is-loading, .store-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
