/* Apps/Games showcase – page-local motion & product themes */

.ag-page {
  --ag-void: #070b12;
  --ag-panel: #0f1724;
  --ecampus: #14b8a6;
  --ecampus-2: #a3e635;
  --block: #22d3ee;
  --block-2: #67e8f9;
  --smash: #f97316;
  --smash-2: #ef4444;
  background: var(--ag-void);
  color: #e8eef6;
}

.ag-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(34, 211, 238, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 20%, rgba(249, 115, 22, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 55% 90%, rgba(163, 230, 53, 0.12), transparent 55%),
    linear-gradient(165deg, #070b12 0%, #0b1a24 48%, #083344 100%);
}

.ag-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: ag-grid-drift 28s linear infinite;
}

.ag-hero__orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.55;
}

.ag-hero__orb--a {
  width: 18rem;
  height: 18rem;
  top: -4rem;
  right: 8%;
  background: rgba(34, 211, 238, 0.35);
  animation: ag-orb 12s ease-in-out infinite;
}

.ag-hero__orb--b {
  width: 14rem;
  height: 14rem;
  bottom: -3rem;
  left: 12%;
  background: rgba(249, 115, 22, 0.3);
  animation: ag-orb 16s ease-in-out infinite reverse;
}

.ag-hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.06em;
  width: max-content;
  max-width: 100%;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 800;
  overflow: visible;
}

.ag-hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: clamp(3.25rem, 12vw, 8.5rem);
  line-height: 0.92;
  /* No filter here: filter + background-clip:text clips glyphs in Chromium */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em; /* avoid last glyph clip */
}

.ag-hero-line--play {
  background-image: linear-gradient(105deg, #fff7ed 8%, #fb923c 42%, #ef4444 88%);
  animation: ag-title-pulse-play 4.5s ease-in-out infinite;
}

.ag-hero-line--learn {
  background-image: linear-gradient(105deg, #ecfeff 8%, #2dd4bf 45%, #a3e635 90%);
  animation: ag-title-pulse-learn 5s ease-in-out infinite;
  animation-delay: 0.35s;
}

.ag-hero-line--build {
  background-image: linear-gradient(105deg, #f0f9ff 8%, #22d3ee 48%, #67e8f9 92%);
  animation: ag-title-pulse-build 4.8s ease-in-out infinite;
  animation-delay: 0.7s;
}

@keyframes ag-title-pulse-play {
  0%, 100% { opacity: 0.92; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes ag-title-pulse-learn {
  0%, 100% { opacity: 0.92; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes ag-title-pulse-build {
  0%, 100% { opacity: 0.92; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.ag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ag-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.ag-chip__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}

.ag-chip--ecampus:hover { border-color: rgba(20, 184, 166, 0.55); }
.ag-chip--block:hover { border-color: rgba(34, 211, 238, 0.55); }
.ag-chip--smash:hover { border-color: rgba(249, 115, 22, 0.55); }
.ag-chip--ecampus .ag-chip__dot { background: linear-gradient(135deg, #14b8a6, #a3e635); }
.ag-chip--block .ag-chip__dot { background: linear-gradient(135deg, #22d3ee, #67e8f9); }
.ag-chip--smash .ag-chip__dot { background: linear-gradient(135deg, #f97316, #ef4444); }
.ag-chip__dot--muted { background: rgba(148, 163, 184, 0.85); }

.ag-stage {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ag-stage--ecampus {
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(20, 184, 166, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 80%, rgba(163, 230, 53, 0.12), transparent 50%),
    linear-gradient(180deg, #07151a 0%, #0b1220 55%, #081018 100%);
}

.ag-stage--block {
  background:
    radial-gradient(ellipse 55% 45% at 80% 30%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 70%, rgba(6, 182, 212, 0.12), transparent 50%),
    linear-gradient(180deg, #081018 0%, #0a1520 50%, #071018 100%);
}

.ag-stage--smash {
  background:
    radial-gradient(ellipse 55% 50% at 85% 25%, rgba(249, 115, 22, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 75%, rgba(239, 68, 68, 0.14), transparent 50%),
    linear-gradient(180deg, #120a08 0%, #1a0f0c 50%, #0d0807 100%);
}

.ag-stage--pipeline {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(6, 182, 212, 0.12), transparent 55%),
    linear-gradient(180deg, #0a1118 0%, #0d1520 100%);
}

.ag-card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 36, 0.72);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.75);
}

.ag-card--ecampus:hover { border-color: rgba(20, 184, 166, 0.45); }
.ag-card--block:hover { border-color: rgba(34, 211, 238, 0.45); }
.ag-card--smash:hover { border-color: rgba(249, 115, 22, 0.45); }

.ag-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ag-badge--teal {
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.16);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.35);
}

.ag-badge--lime {
  color: #d9f99d;
  background: rgba(163, 230, 53, 0.14);
  box-shadow: inset 0 0 0 1px rgba(190, 242, 100, 0.35);
}

.ag-badge--cyan {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.14);
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.35);
}

.ag-badge--amber {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.ag-badge--orange {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.4);
}

.ag-badge--red {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.ag-title-grad--ecampus {
  background: linear-gradient(90deg, #5eead4, #bef264);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-title-grad--block {
  background: linear-gradient(90deg, #67e8f9, #22d3ee 60%, #e0f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-title-grad--smash {
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.ag-btn:hover { transform: translateY(-2px); }

.ag-btn--ecampus {
  color: #042f2e;
  background: linear-gradient(135deg, #2dd4bf, #a3e635);
}

.ag-btn--block {
  color: #083344;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
}

.ag-btn--smash {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.ag-btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.ag-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.ag-feature {
  display: flex;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.88);
}

.ag-feature__dot {
  margin-top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.ag-shot {
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, border-color 0.3s ease;
}

.ag-shot:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(45, 212, 191, 0.45);
}

.ag-shot figcaption {
  padding: 0.55rem 0.75rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.ag-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  width: 9.5rem;
}

.ag-blocks span {
  display: block;
  aspect-ratio: 1;
  border-radius: 0.55rem;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.7);
  animation: ag-block-pop 2.8s ease-in-out infinite;
}

.ag-blocks span:nth-child(1) { background: #22d3ee; animation-delay: 0s; }
.ag-blocks span:nth-child(2) { background: #06b6d4; animation-delay: 0.12s; }
.ag-blocks span:nth-child(3) { background: #a5f3fc; animation-delay: 0.24s; }
.ag-blocks span:nth-child(4) { background: #0891b2; animation-delay: 0.18s; }
.ag-blocks span:nth-child(5) { background: rgba(255, 255, 255, 0.22); animation-delay: 0.3s; }
.ag-blocks span:nth-child(6) { background: #67e8f9; animation-delay: 0.06s; }
.ag-blocks span:nth-child(7) { background: #22d3ee; animation-delay: 0.36s; }
.ag-blocks span:nth-child(8) { background: #0e7490; animation-delay: 0.2s; }
.ag-blocks span:nth-child(9) { background: #67e8f9; animation-delay: 0.42s; }

.ag-smash-orb {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, #fb923c, #ef4444 70%);
  box-shadow:
    0 0 0 10px rgba(249, 115, 22, 0.18),
    0 20px 40px -16px rgba(239, 68, 68, 0.65);
  animation: ag-smash-pulse 1.8s ease-in-out infinite;
}

.ag-smash-orb::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 9999px;
  border: 2px solid rgba(251, 146, 60, 0.35);
  animation: ag-smash-ring 1.8s ease-out infinite;
}

.ag-pipeline-card {
  border-radius: 1.25rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 36, 0.65);
  padding: 1.35rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.ag-pipeline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(15, 23, 36, 0.9);
}

.ag-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: ag-reveal 0.75s ease-out forwards;
}

.ag-reveal-d1 { animation-delay: 0.1s; }
.ag-reveal-d2 { animation-delay: 0.2s; }
.ag-reveal-d3 { animation-delay: 0.3s; }

@keyframes ag-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

@keyframes ag-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 14px) scale(1.08); }
}

@keyframes ag-block-pop {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-5px) scale(1.06); filter: brightness(1.15); }
}

@keyframes ag-smash-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes ag-smash-ring {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes ag-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ag-hero__grid,
  .ag-hero__orb,
  .ag-hero-line--play,
  .ag-hero-line--learn,
  .ag-hero-line--build,

  .ag-blocks span,
  .ag-smash-orb,
  .ag-smash-orb::after,
  .ag-reveal,
  .ag-reveal-d1,
  .ag-reveal-d2,
  .ag-reveal-d3 {
    animation: none !important;
  }
  .ag-reveal,
  .ag-reveal-d1,
  .ag-reveal-d2,
  .ag-reveal-d3 {
    opacity: 1;
    transform: none;
  }
  .ag-card:hover,
  .ag-shot:hover,
  .ag-chip:hover,
  .ag-btn:hover,
  .ag-pipeline-card:hover {
    transform: none;
  }
}


/* ---------- Play Store style screenshot rail ---------- */
.ag-shot-band {
  position: relative;
}

.ag-shot-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ag-shot-nav:hover:not(:disabled) {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(45, 212, 191, 0.45);
}

.ag-shot-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ag-shot-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 1.25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 212, 191, 0.45) transparent;
}

@media (min-width: 640px) {
  .ag-shot-scroller {
    gap: 1.15rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.ag-shot-scroller::-webkit-scrollbar {
  height: 6px;
}
.ag-shot-scroller::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.4);
  border-radius: 9999px;
}

.ag-shot-phone {
  position: relative;
  flex: 0 0 auto;
  width: min(42vw, 11.5rem);
  scroll-snap-align: start;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #020617;
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.85),
    0 18px 40px -18px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .ag-shot-phone {
    width: 13.5rem;
  }
}

@media (min-width: 1024px) {
  .ag-shot-phone {
    width: 15rem;
  }
}

.ag-shot-phone.is-active {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(45, 212, 191, 0.35),
    0 22px 48px -16px rgba(20, 184, 166, 0.45);
}

.ag-shot-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}

.ag-shot-phone figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.65rem 0.55rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ecfeff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), transparent);
}

.ag-shot-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.ag-shot-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: rgba(148, 163, 184, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.ag-shot-dot.is-active {
  width: 1.35rem;
  background: #2dd4bf;
}

@media (prefers-reduced-motion: reduce) {
  .ag-shot-scroller {
    scroll-behavior: auto;
  }
  .ag-shot-phone {
    transition: none;
  }
}


/* ---------- Single-image side panel carousel ---------- */
.ag-shot-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ag-shot-panel--smash {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 1024px) {
  .ag-shot-panel--ecampus {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }
  .ag-shot-panel--smash {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
  }
}

.ag-shot-nav--smash:hover:not(:disabled) {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(251, 146, 60, 0.5);
}

.ag-shot-panel--smash .ag-shot-dot.is-active {
  background: #fb923c;
}

.ag-shot-panel--smash .ag-shot-phone.is-active {
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(249, 115, 22, 0.35),
    0 22px 48px -16px rgba(239, 68, 68, 0.4);
}

.ag-shot-stage {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: min(100%, 15.5rem);
  margin: 0 auto;
  aspect-ratio: 390 / 844;
  min-height: 22rem;
}

.ag-shot-panel .ag-shot-phone {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(18px) scale(0.97);
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.48s,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.ag-shot-stage.is-dir-prev .ag-shot-phone {
  transform: translateX(-18px) scale(0.97);
}

.ag-shot-panel .ag-shot-phone.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.ag-shot-panel .ag-shot-phone.is-enter {
  z-index: 3;
}

.ag-shot-panel .ag-shot-phone.is-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
}

.ag-shot-stage.is-dir-next .ag-shot-phone.is-leaving {
  transform: translateX(-28px) scale(0.96);
}

.ag-shot-stage.is-dir-prev .ag-shot-phone.is-leaving {
  transform: translateX(28px) scale(0.96);
}

.ag-shot-phone--zoomable {
  cursor: zoom-in;
}

.ag-shot-phone--zoomable:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.7);
  outline-offset: 3px;
}

.ag-shot-panel--smash .ag-shot-phone--zoomable:focus-visible {
  outline-color: rgba(251, 146, 60, 0.75);
}


/* ---------- Lightbox (milky backdrop + red close) ---------- */
body.ag-lightbox-open {
  overflow: hidden;
}

.ag-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ag-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.ag-lightbox[hidden] {
  display: none !important;
}

.ag-lightbox.is-open[hidden] {
  display: flex !important;
}

.ag-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.ag-lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(92vw, 28rem);
  max-height: min(92vh, 56rem);
  animation: ag-lightbox-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 48rem);
  height: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow:
    0 30px 80px -24px rgba(15, 23, 42, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  background: #0b1220;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-lightbox__img.is-shown {
  opacity: 1;
  transform: scale(1);
}

.ag-lightbox__cap {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ag-lightbox__close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: #dc2626;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(220, 38, 38, 0.7);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ag-lightbox__close:hover {
  background: #b91c1c;
  transform: scale(1.06);
}

.ag-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.ag-lightbox__nav:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.92);
}

.ag-lightbox__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ag-lightbox__nav--prev { left: -0.35rem; }
.ag-lightbox__nav--next { right: -0.35rem; }

@keyframes ag-lightbox-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-shot-panel .ag-shot-phone,
  .ag-lightbox,
  .ag-lightbox__img,
  .ag-lightbox__panel {
    transition: none !important;
    animation: none !important;
  }
}
