#p-acc .acc-panel-install {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

#p-acc .acc-panel-install .acc-panel-dot {
  background: #6366f1;
}

.install-card-compact {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 11px;
  align-items: center;
  margin: 8px 0 10px;
}

.install-card-ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(145deg, #4338ca, #6366f1);
  box-shadow: 0 10px 22px rgba(67, 56, 202, 0.32);
}

.install-card-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 23px;
  line-height: 1.05;
  color: #0a1628;
}

.install-card-desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.install-card-btn {
  width: 100%;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}

.install-card-btn:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: #e0e7ff;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.install-modal.open { display: block; }

.install-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  animation: fade-in .3s ease;
}

.install-modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 26px));
  max-height: min(92vh, 980px);
  overflow: auto;
  background: #f5f7fb;
  border-radius: 20px;
  padding: 28px 26px 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.install-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  font-size: 20px;
  cursor: pointer;
}

.install-modal-aurora,
.install-modal-orb {
  position: absolute;
  pointer-events: none;
}

.install-modal-aurora {
  inset: 6% 15% auto;
  height: 260px;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.1) 45%, transparent 72%);
  filter: blur(50px);
}

.install-modal-orb {
  border-radius: 50%;
  filter: blur(32px);
}
.install-modal-orb--a { width: 220px; height: 220px; top: 8%; right: -40px; background: rgba(99, 102, 241, 0.2); }
.install-modal-orb--b { width: 180px; height: 180px; bottom: 10%; left: -30px; background: rgba(56, 189, 248, 0.16); }

.install-modal-header,
.install-phones,
.install-controls,
.install-desktop-hint,
.install-os-toggle { position: relative; z-index: 2; }

.install-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.install-crumb .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
}

.install-modal-header h3 {
  margin: 10px 0 8px;
  font-family: "Fraunces", serif;
  font-size: 32px;
  color: #0a1628;
}

.install-modal-header h3 em {
  font-style: italic;
  background: linear-gradient(120deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.install-modal-header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
}

.install-desktop-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #4b5563;
  display: none;
}

.install-phones {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
}

.phone-col { display: grid; gap: 10px; align-content: start; }
.phone-col.is-primary .phone-3d { transform: scale(1.02); }
.phone-col.is-hidden { display: none; }

.phone-badge {
  justify-self: center;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 999px;
  padding: 5px 10px;
}

.phone-3d {
  width: 230px;
  height: 470px;
  border-radius: 34px;
  margin: 0 auto;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .35s ease;
}

.phone-iphone {
  background: linear-gradient(160deg, #0a0f1a, #020617);
  box-shadow: 0 28px 58px rgba(2, 6, 23, 0.56), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: rotateY(-10deg) rotateX(6deg);
}

.phone-android {
  background: linear-gradient(160deg, #1f2937, #0f172a);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.46), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  transform: rotateY(8deg) rotateX(6deg);
}

.phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #09152a, #0c1630);
}

.phone-btn {
  position: absolute;
  left: -2px;
  width: 3px;
  border-radius: 5px;
  background: #475569;
}
.phone-btn-mute { top: 86px; height: 20px; }
.phone-btn-up { top: 118px; height: 32px; }
.phone-btn-down { top: 160px; height: 32px; }

.phone-status {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
  z-index: 4;
}

.iphone-island {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 98px;
  height: 24px;
  border-radius: 14px;
  background: #020617;
  z-index: 4;
}

.android-camera {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111827;
  border: 1px solid #334155;
  z-index: 4;
}

.phone-landing {
  position: absolute;
  inset: 34px 0 40px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
}

.mini-grid {
  position: absolute;
  inset: 0;
  background-size: 34px 34px;
  background-image: linear-gradient(rgba(165, 180, 252, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 180, 252, 0.05) 1px, transparent 1px);
}

.mini-pill {
  position: relative;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(165, 180, 252, 0.28);
  color: #e2e8f0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.mini-pill span {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  animation: pulse-dot 2s infinite;
}

.mini-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: "Fraunces", serif;
  font-size: 24px;
  line-height: .95;
  color: #eef2ff;
}
.mini-title em {
  font-style: italic;
  color: #c4b5fd;
}
.mini-sub, .mini-cta {
  position: relative;
  z-index: 2;
  font-size: 10px;
  color: #cbd5e1;
}

.ios-browser-bar {
  position: absolute;
  left: 10px; right: 10px; bottom: 8px;
  height: 34px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.84);
  color: #e2e8f0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
  font-size: 10px;
  z-index: 4;
}

.android-urlbar {
  position: absolute;
  left: 8px; right: 8px; top: 26px;
  height: 28px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .84);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  font-size: 9px;
  z-index: 4;
}

.ios-share-sheet, .ios-add-sheet, .android-menu-sheet, .android-install-sheet {
  position: absolute;
  left: 12px; right: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(99,102,241,.12);
  box-shadow: 0 18px 40px rgba(2,6,23,.35);
  padding: 8px;
  z-index: 5;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  color: #0f172a;
  font-size: 11px;
  font-weight: 600;
}
.ios-share-sheet { bottom: 46px; }
.ios-add-sheet { top: 62px; }
.android-menu-sheet { top: 62px; }
.android-install-sheet { bottom: 54px; }

.ios-share-sheet .sheet-item,
.android-menu-sheet div {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 7px;
  font-size: 11px;
  color: #0f172a;
  background: #ffffff;
  margin-top: 6px;
}

.ios-add-sheet .row,
.android-install-sheet {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.ios-share-sheet > div:first-child,
.ios-add-sheet strong,
.android-install-sheet > div:first-child {
  color: #1f2937;
  font-size: 11px;
  font-weight: 700;
}

.ios-add-sheet button {
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.accent-green {
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
}

.arrow-tip {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: rgba(99,102,241,.16);
  color: #4338ca;
  font-weight: 800;
  animation: bounce-arrow 1.2s infinite;
}
.arrow-tip.is-active { display: grid; }

.phone-progress {
  display: grid;
  gap: 6px;
  grid-auto-flow: column;
}
.phone-progress span {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
}
.phone-progress span.done { background: rgba(99,102,241,.45); }
.phone-progress span.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 0 16px rgba(99,102,241,.45);
}

.phone-step-bubble {
  border: 1px solid rgba(99,102,241,.12);
  border-radius: 12px;
  background: #fff;
  padding: 8px 9px;
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
}

.phone-step-bubble .num {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #4338ca, #6366f1);
}

.install-os-toggle {
  margin-top: 12px;
  display: none;
  justify-content: center;
  gap: 8px;
}
.install-os-toggle button {
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 999px;
  background: #fff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
}

.install-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.install-controls button {
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
#install-prev-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
#install-next-btn {
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: #fff;
}
#install-step-counter {
  font-size: 12px;
  color: #475569;
}

.install-modal[data-step-ios="3"] [data-step-panel="ios-3"],
.install-modal[data-step-ios="4"] [data-step-panel="ios-4"],
.install-modal[data-step-android="2"] [data-step-panel="and-2"],
.install-modal[data-step-android="3"] [data-step-panel="and-3"] {
  opacity: 1;
  transform: translateY(0);
}

.install-modal[data-step-ios="2"] [data-step-target="ios-2"],
.install-modal[data-step-ios="3"] [data-step-target="ios-3"],
.install-modal[data-step-ios="4"] [data-step-target="ios-4"],
.install-modal[data-step-android="2"] [data-step-target="and-2"],
.install-modal[data-step-android="3"] [data-step-target="and-3"] {
  position: relative;
  z-index: 6;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 0 0 3px rgba(99,102,241,.35), 0 0 16px rgba(99,102,241,.55);
  animation: pulse-glow 1.8s infinite;
}

.install-modal[data-step-android="3"] [data-step-target="and-3"] {
  box-shadow: 0 0 0 3px rgba(5,150,105,.35), 0 0 16px rgba(5,150,105,.55);
}

@keyframes pulse-glow {
  0%, 100% { transform: translateY(-2px) scale(1.06); }
  50% { transform: translateY(-2px) scale(1.12); }
}

@keyframes bounce-arrow {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .install-phones {
    gap: 16px;
  }
  .phone-3d {
    width: 200px;
    height: 408px;
  }
}

@media (max-width: 760px) {
  .install-modal-dialog {
    width: calc(100vw - 16px);
    padding: 18px 12px 14px;
  }
  .install-modal-header h3 { font-size: 28px; }
  .install-phones { grid-template-columns: 1fr; }
  .install-os-toggle { display: flex; }
  .install-desktop-hint.desktop-visible { display: block; }
}
