/* ----- Bundle preview card with floating badges ----- */
.app-card__visual--bundle {
  min-height: 580px;
}
.bundle-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  isolation: isolate;
}
.bundle-stage::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(58, 80, 191, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.bundle-badge {
  position: absolute;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 10px 30px -15px rgba(10, 22, 56, 0.15);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  z-index: 5;
  opacity: 0;
}
.bundle-badge__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Bundle floating animations default-paused — start when .apps section is visible */
.bundle-badge,
.bundle-toast {
  animation-play-state: paused;
}
.apps.is-in .bundle-badge,
.apps.is-in .bundle-toast {
  animation-play-state: running;
}

.bundle-badge--1 {
  top: 4%;
  left: -32px;
  animation: floatBadge1 7s 1.5s infinite;
}
.bundle-badge--2 {
  bottom: 32%;
  left: -50px;
  animation: floatBadge2 7s 1.5s infinite;
}
.bundle-badge--3 {
  bottom: 6%;
  right: -28px;
  animation: floatBadge3 7s 1.5s infinite;
}
@keyframes floatBadge1 {
  0%, 3%    { opacity: 0; transform: translateY(20px); }
  12%, 78%  { opacity: 1; transform: translateY(0); }
  30%       { transform: translateY(-4px); }
  50%       { transform: translateY(2px); }
  85%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes floatBadge2 {
  0%, 8%    { opacity: 0; transform: translateY(20px); }
  18%, 78%  { opacity: 1; transform: translateY(0); }
  40%       { transform: translateY(-5px); }
  85%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes floatBadge3 {
  0%, 5%    { opacity: 0; transform: translateY(20px); }
  15%, 78%  { opacity: 1; transform: translateY(0); }
  35%       { transform: translateY(-3px); }
  55%       { transform: translateY(2px); }
  85%, 100% { opacity: 0; transform: translateY(15px); }
}

.bundle-toast {
  position: absolute;
  top: 10%;
  right: -40px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 30;
  opacity: 0;
  transform: translateX(40px);
  animation: toastIn 7s 1.5s infinite;
  white-space: nowrap;
}
.bundle-toast__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bundle-toast small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}
@keyframes toastIn {
  0%, 48%   { opacity: 0; transform: translateX(60px); }
  53%, 78%  { opacity: 1; transform: translateX(0); }
  85%, 100% { opacity: 0; transform: translateX(40px); }
}

.bundle-click-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--success);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  animation: clickPulse 7s 1.5s infinite;
}
@keyframes clickPulse {
  0%, 38%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  40%       { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  55%       { opacity: 0; transform: translate(-50%, -50%) scale(2); }
  100%      { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

.bundle-sparkles {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  pointer-events: none;
}
.bundle-sparkles span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  opacity: 0;
}
.bundle-sparkles span:nth-child(1) { animation: spark 7s 1.5s infinite; --tx: -30px; --ty: -30px; }
.bundle-sparkles span:nth-child(2) { animation: spark 7s 1.5s infinite; --tx:  30px; --ty: -30px; background: var(--brand-3); }
.bundle-sparkles span:nth-child(3) { animation: spark 7s 1.5s infinite; --tx: -35px; --ty:   0px; }
.bundle-sparkles span:nth-child(4) { animation: spark 7s 1.5s infinite; --tx:  35px; --ty:   5px; background: var(--brand-3); }
.bundle-sparkles span:nth-child(5) { animation: spark 7s 1.5s infinite; --tx:   0px; --ty: -40px; }
.bundle-sparkles span:nth-child(6) { animation: spark 7s 1.5s infinite; --tx: -20px; --ty:  25px; background: var(--brand-3); }
@keyframes spark {
  0%, 40% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  44%     { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2); }
  60%     { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 20px)) scale(0); }
  100%    { opacity: 0; }
}

.bundle {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 60px -25px rgba(10, 22, 56, 0.25), 0 10px 30px -15px rgba(10, 22, 56, 0.15);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: bundleIn 1.2s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes bundleIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bundle__head {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.bundle__title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 22px;
}
.bundle__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}
.bundle__sub {
  grid-column: 1;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.bundle__save {
  grid-row: 1;
  grid-column: 2;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.bundle__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
}
.bundle__items::before {
  content: '+';
  position: absolute;
  left: 50%;
  top: 36px;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-soft);
  z-index: 1;
}
.bundle__item {
  text-align: center;
}
.bundle__thumb {
  width: 100%;
  height: 88px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.bundle__thumb svg {
  width: 50%;
  height: 70%;
}
.bundle__thumb--perfume { background: #fdf4e3; }
.bundle__thumb--shoe    { background: #f3ede1; }
.bundle__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.25;
}
.bundle__price {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.bundle__totals {
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-bottom: 16px;
}
.bundle__totals li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 4px 0;
}
.bundle__totals-grand {
  font-weight: 700;
  color: var(--ink) !important;
  font-size: 0.95rem !important;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 8px !important;
}

.bundle__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bundle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 10px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform var(--t-base) var(--ease);
}
.bundle__btn:hover { transform: translateY(-1px); }
.bundle__btn--buy {
  background: var(--ink);
  color: #fff;
}
.bundle__btn--cart {
  background: #fff;
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}


/* ----- Bundle responsive (extracted from Apps responsive block) ----- */
@media (max-width: 520px) {
  .bundle { padding: 20px; }
  .bundle__actions { grid-template-columns: 1fr; }
}
