/* ============================================================
   NinjaSteam × Antigravity-inspired design system
   Pure black · cinematic type · glass · ambient light
   ============================================================ */

:root {
  --ag-bg: #000000;
  --ag-bg-elevated: #0a0a0a;
  --ag-surface: rgba(255, 255, 255, 0.03);
  --ag-surface-hover: rgba(255, 255, 255, 0.06);
  --ag-border: rgba(255, 255, 255, 0.08);
  --ag-border-strong: rgba(255, 255, 255, 0.16);
  --ag-text: #f5f5f5;
  --ag-text-muted: rgba(255, 255, 255, 0.55);
  --ag-text-dim: rgba(255, 255, 255, 0.32);
  --ag-white: #ffffff;
  --ag-accent: #a78bfa;
  --ag-accent-2: #2dd4bf;
  --ag-success: #34d399;
  --ag-font: "Inter", system-ui, -apple-system, sans-serif;
  --ag-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ag-radius: 20px;
  --ag-radius-lg: 28px;
  --ag-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ag-header: 72px;
}

/* ── Base override for landing ── */
.ag-body {
  font-family: var(--ag-font);
  background: var(--ag-bg) !important;
  color: var(--ag-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ag-body::before,
.ag-body::after {
  display: none !important;
}

.ag-body .bg-orbs {
  display: none !important;
}

/* ── Atmosphere ── */
.ag-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ag-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.28), transparent),
    radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.22), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.18), transparent),
    radial-gradient(1.5px 1.5px at 30% 50%, rgba(255,255,255,0.32), transparent),
    radial-gradient(1px 1px at 15% 15%, rgba(255,255,255,0.2), transparent);
  opacity: 0.7;
  animation: ag-twinkle 8s ease-in-out infinite alternate;
}

@keyframes ag-twinkle {
  from { opacity: 0.45; }
  to { opacity: 0.85; }
}

.ag-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.ag-glow--1 {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18) 0%, transparent 70%);
  animation: ag-drift-1 28s ease-in-out infinite;
}

.ag-glow--2 {
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  bottom: 10%;
  right: -10%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
  animation: ag-drift-2 32s ease-in-out infinite;
}

.ag-glow--3 {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  top: 45%;
  left: -8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: ag-drift-3 24s ease-in-out infinite;
}

@keyframes ag-drift-1 {
  0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
  50% { transform: translateX(-50%) translate(3vw, 4vh) scale(1.08); }
}

@keyframes ag-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4vw, -3vh) scale(1.12); }
}

@keyframes ag-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5vw, -2vh); }
}

.ag-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

/* ── Container ── */
.ag-container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ── Floating pill header ── */
.ag-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.25rem 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.ag-header__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1080px, 100%);
  height: 56px;
  padding: 0 0.5rem 0 1rem;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s var(--ag-ease), box-shadow 0.3s var(--ag-ease);
}

.ag-header.is-scrolled .ag-header__pill {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ag-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ag-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ag-white) !important;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.ag-logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.ag-logo--lg {
  font-size: 1.1rem;
}

.ag-logo--lg img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.ag-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.ag-nav__link {
  color: var(--ag-text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}

.ag-nav__link:hover,
.ag-nav__link.is-active {
  color: var(--ag-white) !important;
  background: rgba(255, 255, 255, 0.08);
}

.ag-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Buttons ── */
.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ag-font);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.25s var(--ag-ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
  line-height: 1.2;
}

.ag-btn--solid {
  background: var(--ag-white);
  color: #000 !important;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
}

.ag-btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2);
  color: #000 !important;
  filter: brightness(0.97);
}

.ag-btn--outline {
  background: transparent;
  color: var(--ag-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ag-btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ag-white) !important;
}

.ag-btn--ghost {
  background: transparent;
  color: var(--ag-text-muted) !important;
  border: 1px solid transparent;
  padding: 0.55rem 0.9rem;
}

.ag-btn--ghost:hover {
  color: var(--ag-white) !important;
  background: rgba(255, 255, 255, 0.05);
}

.ag-btn--lg {
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
}

.ag-btn--block {
  width: 100%;
}

.ag-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ag-border);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.ag-menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s;
}

/* ── Hero ── */
.ag-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--ag-header) + 3rem) 0 4rem;
}

.ag-hero__inner {
  max-width: 36rem;
}

.ag-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: var(--ag-success);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

.ag-hero__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ag-success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: ag-pulse 2s ease-in-out infinite;
}

@keyframes ag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); opacity: 0.85; }
}

.ag-hero__title {
  font-family: var(--ag-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.35rem;
  color: var(--ag-white);
}

.ag-line {
  display: block;
}

.ag-line--accent {
  background: linear-gradient(
    120deg,
    #fff 0%,
    #c4b5fd 40%,
    #5eead4 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ag-hero__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ag-text-muted);
  max-width: 28rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.ag-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}

.ag-hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ag-stat strong {
  display: block;
  font-family: var(--ag-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ag-white);
  line-height: 1.2;
}

.ag-stat span {
  font-size: 0.8rem;
  color: var(--ag-text-dim);
  font-weight: 500;
}

.ag-stat-div {
  width: 1px;
  height: 32px;
  background: var(--ag-border);
}

/* ── Hero visual / calculator ── */
.ag-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ag-calc {
  width: 100%;
  max-width: 400px;
  background: rgba(14, 14, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ag-radius-lg);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  position: relative;
}

.ag-calc::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(167, 139, 250, 0.25) 0%,
    transparent 40%,
    transparent 60%,
    rgba(45, 212, 191, 0.15) 100%
  );
  z-index: -1;
  opacity: 0.6;
  filter: blur(1px);
  pointer-events: none;
}

.ag-calc__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--ag-border);
  background: rgba(255, 255, 255, 0.02);
}

.ag-calc__chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.ag-calc__chrome span:nth-child(1) { background: #ff5f57; opacity: 0.85; }
.ag-calc__chrome span:nth-child(2) { background: #febc2e; opacity: 0.85; }
.ag-calc__chrome span:nth-child(3) { background: #28c840; opacity: 0.85; }

.ag-calc__chrome-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ag-text-dim);
  font-weight: 500;
}

.ag-calc__body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.ag-calc__row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  color: var(--ag-text-muted);
}

.ag-calc__fee {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ag-border);
  color: var(--ag-text-dim);
}

.ag-calc__chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.ag-chip {
  padding: 0.7rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--ag-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ag-text);
  font-family: var(--ag-font);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.22s var(--ag-ease);
  text-align: center;
}

.ag-chip:hover {
  border-color: var(--ag-border-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.ag-chip.is-active,
.ag-chip.active {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 16px rgba(255, 255, 255, 0.06);
}

.ag-calc__result {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--ag-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.15rem;
}

.ag-calc__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.ag-calc__line span {
  color: var(--ag-text-muted);
  font-size: 0.85rem;
}

.ag-calc__line strong {
  font-family: var(--ag-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ag-success);
  letter-spacing: -0.02em;
}

.ag-calc__line--pay {
  margin-bottom: 0;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--ag-border);
  margin-top: 0.5rem;
}

.ag-calc__line--pay strong {
  color: var(--ag-white);
  font-size: 1.2rem;
}

.ag-hero__float {
  position: absolute;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ag-text);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  animation: ag-float 5s ease-in-out infinite;
}

.ag-hero__float--1 {
  top: 12%;
  right: -4%;
  animation-delay: 0s;
}

.ag-hero__float--2 {
  bottom: 18%;
  left: -6%;
  animation-delay: -2.5s;
}

@keyframes ag-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Showcase ── */
.ag-showcase {
  position: relative;
  z-index: 1;
  padding: 6rem 0 2rem;
}

.ag-showcase__intro {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 5rem;
}

.ag-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-text-dim);
  margin-bottom: 0.85rem;
}

.ag-showcase__intro h2,
.ag-section__head h2,
.ag-cta h2 {
  font-family: var(--ag-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ag-white);
  margin-bottom: 1rem;
}

.ag-showcase__desc,
.ag-section__head p {
  color: var(--ag-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Feature rows */
.ag-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.ag-feature-row--reverse {
  direction: rtl;
}

.ag-feature-row--reverse > * {
  direction: ltr;
}

.ag-feature-row__text {
  max-width: 28rem;
}

.ag-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ag-accent);
  margin-bottom: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.ag-feature-row__text h3 {
  font-family: var(--ag-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--ag-white);
}

.ag-feature-row__text p {
  color: var(--ag-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Mockup window */
.ag-mockup {
  background: rgba(14, 14, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ag-radius-lg);
  overflow: hidden;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.ag-mockup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), transparent 50%, rgba(45, 212, 191, 0.06));
  pointer-events: none;
}

.ag-mockup__bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--ag-border);
  background: rgba(255, 255, 255, 0.02);
}

.ag-mockup__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.ag-mockup__bar span:nth-child(1) { background: #ff5f57; opacity: 0.8; }
.ag-mockup__bar span:nth-child(2) { background: #febc2e; opacity: 0.8; }
.ag-mockup__bar span:nth-child(3) { background: #28c840; opacity: 0.8; }

.ag-mockup__content {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.ag-mock-status {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.ag-mock-status__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ag-success);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.ag-mock-status strong {
  display: block;
  font-size: 1rem;
  color: var(--ag-white);
  margin-bottom: 0.15rem;
}

.ag-mock-status span {
  font-size: 0.8rem;
  color: var(--ag-text-dim);
}

.ag-mock-progress__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.ag-mock-progress__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ag-accent), var(--ag-accent-2));
}

.ag-mock-progress__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ag-text-dim);
  margin-bottom: 1.25rem;
}

.ag-mock-progress__labels .is-done {
  color: var(--ag-success);
  font-weight: 600;
}

.ag-mock-amount {
  font-family: var(--ag-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ag-success);
  text-align: center;
  padding: 0.75rem;
  background: rgba(52, 211, 153, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.ag-flags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.ag-flag-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ag-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ag-text);
  transition: background 0.2s, border-color 0.2s;
}

.ag-flag-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ag-border-strong);
}

.ag-flag-item span {
  font-size: 1.2rem;
}

.ag-mock-field {
  display: block;
  margin-bottom: 1rem;
}

.ag-mock-field > span {
  display: block;
  font-size: 0.75rem;
  color: var(--ag-text-dim);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.ag-mock-input {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ag-border);
  font-family: var(--ag-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ag-white);
  letter-spacing: -0.01em;
}

.ag-mock-secure {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--ag-success);
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
}

/* ── Sections ── */
.ag-section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.ag-section--tight {
  padding: 3rem 0 5rem;
}

.ag-section__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

/* Countries — override for landing */
.ag-body .countries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ag-body .country-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.15rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--ag-border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ag-text) !important;
  text-decoration: none !important;
  transition: all 0.3s var(--ag-ease);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.ag-body .country-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.ag-body .country-card:hover {
  border-color: var(--ag-border-strong);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: var(--ag-white) !important;
}

.ag-body .country-card:hover::after,
.ag-body .country-card.is-active::after {
  opacity: 1;
}

.ag-body .country-card.is-active {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.ag-body .country-card__flag {
  font-size: 1.65rem;
  line-height: 1;
}

.ag-body .country-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.ag-body .country-card__code {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ag-text-dim);
  text-transform: uppercase;
}

/* ── Bento ── */
.ag-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.ag-bento__card {
  padding: 1.65rem;
  border-radius: var(--ag-radius);
  border: 1px solid var(--ag-border);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.35s var(--ag-ease);
  position: relative;
  overflow: hidden;
}

.ag-bento__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ag-bento__card:hover {
  border-color: var(--ag-border-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.ag-bento__card:hover::before {
  opacity: 1;
}

.ag-bento__card--wide {
  grid-column: span 2;
}

.ag-bento__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ag-border);
  margin-bottom: 1.1rem;
}

.ag-bento__card h3 {
  font-family: var(--ag-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  color: var(--ag-white);
}

.ag-bento__card p {
  color: var(--ag-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Steps ── */
.ag-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ag-step {
  text-align: left;
  padding: 1.5rem 1.35rem;
  border-radius: var(--ag-radius);
  border: 1px solid var(--ag-border);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s var(--ag-ease);
  position: relative;
}

.ag-step:hover {
  border-color: var(--ag-border-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.ag-step__num {
  font-family: var(--ag-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ag-text-dim);
  margin-bottom: 1rem;
}

.ag-step h3 {
  font-family: var(--ag-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--ag-white);
}

.ag-step p {
  font-size: 0.875rem;
  color: var(--ag-text-muted);
  line-height: 1.55;
}

/* ── Reviews ── */
.ag-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.ag-review {
  padding: 1.5rem;
  border-radius: var(--ag-radius);
  border: 1px solid var(--ag-border);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.3s var(--ag-ease);
  display: flex;
  flex-direction: column;
}

.ag-review:hover {
  border-color: var(--ag-border-strong);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}

.ag-review__stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.ag-review > p {
  color: var(--ag-text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.ag-review__author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ag-review__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(45, 212, 191, 0.3));
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.ag-review__author strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ag-white);
  font-weight: 600;
}

.ag-review__author span {
  font-size: 0.75rem;
  color: var(--ag-text-dim);
}

/* ── CTA ── */
.ag-cta {
  position: relative;
  text-align: center;
  padding: 4.5rem 2rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.ag-cta__glow {
  position: absolute;
  width: 60%;
  height: 80%;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.ag-cta .ag-eyebrow,
.ag-cta h2,
.ag-cta__text,
.ag-cta__actions,
.ag-cta__trust {
  position: relative;
  z-index: 1;
}

.ag-cta__text {
  color: var(--ag-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.ag-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.ag-cta__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--ag-text-dim);
  font-weight: 500;
}

/* ── Footer ── */
.ag-footer {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--ag-border);
  margin-top: 2rem;
}

.ag-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.ag-footer__brand p {
  color: var(--ag-text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 18rem;
}

.ag-footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-text-dim);
  margin-bottom: 1rem;
}

.ag-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ag-footer ul a {
  color: var(--ag-text-muted) !important;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: color 0.2s;
}

.ag-footer ul a:hover {
  color: var(--ag-white) !important;
}

.ag-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ag-border);
}

.ag-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.ag-footer__legal a {
  color: var(--ag-text-dim) !important;
  font-size: 0.8rem;
  text-decoration: none !important;
}

.ag-footer__legal a:hover {
  color: var(--ag-text-muted) !important;
}

.ag-footer__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--ag-text-dim);
}

/* ── Scroll reveal ── */
.ag-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ag-ease),
    transform 0.8s var(--ag-ease),
    filter 0.8s var(--ag-ease);
}

.ag-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.ag-reveal--delay-1 { transition-delay: 0.08s; }
.ag-reveal--delay-2 { transition-delay: 0.16s; }
.ag-reveal--delay-3 { transition-delay: 0.24s; }
.ag-reveal--delay-4 { transition-delay: 0.32s; }

/* Hero items visible immediately on load via JS class */
.ag-hero .ag-reveal.is-visible {
  transition-duration: 0.9s;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .ag-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--ag-header) + 2rem);
    gap: 3rem;
    text-align: center;
  }

  .ag-hero__inner {
    max-width: 100%;
    margin: 0 auto;
  }

  .ag-hero__lead {
    margin-inline: auto;
  }

  .ag-hero__cta {
    justify-content: center;
  }

  .ag-hero__stats {
    justify-content: center;
  }

  .ag-hero__float {
    display: none;
  }

  .ag-feature-row,
  .ag-feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
    margin-bottom: 4rem;
  }

  .ag-feature-row__text {
    max-width: 100%;
    text-align: center;
  }

  .ag-bento {
    grid-template-columns: 1fr 1fr;
  }

  .ag-bento__card--wide {
    grid-column: span 2;
  }

  .ag-steps {
    grid-template-columns: 1fr 1fr;
  }

  .ag-reviews {
    grid-template-columns: 1fr;
  }

  .ag-body .countries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ag-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .ag-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ag-border);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }

  .ag-nav.is-open {
    display: flex;
  }

  .ag-nav__link {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .ag-header__pill {
    position: relative;
    border-radius: 20px;
    height: auto;
    min-height: 56px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
  }

  .ag-menu-toggle {
    display: flex;
  }

  .ag-btn--ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  .ag-bento {
    grid-template-columns: 1fr;
  }

  .ag-bento__card--wide {
    grid-column: span 1;
  }

  .ag-steps {
    grid-template-columns: 1fr;
  }

  .ag-body .countries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ag-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .ag-hero__title {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }

  .ag-stat-div {
    display: none;
  }

  .ag-cta {
    padding: 3rem 1.25rem;
    border-radius: 24px;
  }

  .ag-header__actions .ag-btn--solid {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .ag-glow,
  .ag-stars,
  .ag-hero__float,
  .ag-hero__live {
    animation: none !important;
  }
}

/* ============================================================
   Site-wide component restyle (all pages under .ag-body)
   ============================================================ */

.ag-body {
  padding-top: 0;
}

.ag-body main {
  position: relative;
  z-index: 1;
  min-height: 50vh;
  padding-top: calc(var(--ag-header) + 0.5rem);
}

.ag-body main:has(.ag-hero) {
  padding-top: 0;
}

/* Dual class nav: support both app.js (.open, .active) and ag styles */
.ag-nav.open,
.ag-nav.is-open {
  display: flex;
}

.ag-nav__link.active,
.ag-nav__link.is-active {
  color: var(--ag-white) !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Page hero */
.ag-body .page-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.ag-body .page-hero h1 {
  font-family: var(--ag-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 0.65rem;
}

.ag-body .page-hero p {
  color: var(--ag-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.ag-body .page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ag-border);
  color: var(--ag-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Buttons dual map */
.ag-body .btn--primary {
  background: #fff;
  color: #000 !important;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
  font-weight: 700;
  border: none;
}

.ag-body .btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2);
  color: #000 !important;
  filter: brightness(0.97);
}

.ag-body .btn--secondary,
.ag-body .btn--ghost {
  border-radius: 999px;
}

.ag-body .btn--lg {
  border-radius: 999px;
  padding: 0.95rem 1.75rem;
}

/* Cards */
.ag-body .card,
.ag-body .card--glass {
  background: rgba(14, 14, 16, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ag-body .card__title {
  font-family: var(--ag-display);
  letter-spacing: -0.02em;
}

/* Inputs */
.ag-body .input,
.ag-body .select,
.ag-body select.input {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid var(--ag-border) !important;
  border-radius: 14px !important;
  color: #fff !important;
}

.ag-body .input:focus,
.ag-body .select:focus {
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

/* Topup page polish */
.ag-body .topup-page {
  padding-bottom: 4rem;
}

.ag-body .topup-hero h1 {
  font-family: var(--ag-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.ag-body .topup-hero__sub {
  color: var(--ag-text-muted);
}

.ag-body .topup-card {
  border-radius: 28px !important;
}

.ag-body .form-step {
  background: #fff !important;
  color: #000 !important;
  font-weight: 800;
}

.ag-body .region-tabs {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--ag-border);
}

.ag-body .receive-box {
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
}

.ag-body .checkout-rows {
  border-color: var(--ag-border);
}

/* FAQ */
.ag-body .faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ag-body .faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--ag-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.ag-body .faq-item:hover,
.ag-body .faq-item[open] {
  border-color: var(--ag-border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.ag-body .faq-item summary {
  font-family: var(--ag-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  color: #fff;
  list-style: none;
}

.ag-body .faq-item .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--ag-text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* Catalog */
.ag-body .catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.ag-body .catalog-card,
.ag-body .package-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--ag-border);
  border-radius: 20px;
  transition: all 0.3s var(--ag-ease);
}

.ag-body .catalog-card:hover,
.ag-body .package-card:hover {
  border-color: var(--ag-border-strong);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ag-body .rates-table {
  width: 100%;
  border-collapse: collapse;
}

.ag-body .rates-table th,
.ag-body .rates-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--ag-border);
  text-align: left;
  font-size: 0.9rem;
}

.ag-body .rates-table th {
  color: var(--ag-text-dim);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Order track */
.ag-body .track-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  flex-wrap: wrap;
}

.ag-body .track-form .input {
  flex: 1;
  min-width: 200px;
}

/* Legal */
.ag-body .legal {
  max-width: 760px;
  padding: 1.5rem 0 4rem;
}

.ag-body .legal-nav a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.ag-body .legal-nav a.is-active {
  background: #fff !important;
  color: #000 !important;
  border-color: transparent;
}

.ag-body .legal__head h1 {
  font-family: var(--ag-display);
  letter-spacing: -0.03em;
}

/* Flag icons in country cards */
.ag-body .flag-icon,
.ag-body .flag-icon--lg {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.ag-body .flag-icon--sm {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  vertical-align: middle;
}

.ag-body .country-card__flag {
  display: flex;
}

/* Sections spacing under ag */
.ag-body .section {
  position: relative;
  z-index: 1;
}

/* Hide old sticky header if any leftover */
.ag-body > .header:not(.ag-header) {
  display: none;
}

/* Compact footer variant for inner pages */
.ag-footer--compact {
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}

.ag-footer--compact .ag-footer__bottom {
  border-top: none;
  padding-top: 0;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 0.75rem;
}

/* text-center utility */
.ag-body .text-center {
  text-align: center;
}

.ag-body .mt-3 {
  margin-top: 1.5rem;
}

.ag-body .hidden {
  display: none !important;
}

/* Link docs */
.ag-body a.link-doc {
  color: var(--ag-accent-2) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ag-body a.link-doc:hover {
  color: #fff !important;
}

/* Badge */
.ag-body .badge {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--ag-success);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

/* Inner page main top padding fix for fixed header */
.ag-body .topup-page {
  padding-top: 0.5rem;
}

/* ============================================================
   Order page — mobile fixes
   ============================================================ */

.ag-body .order-page {
  padding-bottom: 3rem;
  /* Extra top space under fixed pill header + iOS safe area */
  padding-top: 0.25rem;
  min-height: 70vh;
}

.ag-body .order-page__inner {
  max-width: 560px;
  margin: 0 auto;
  width: min(560px, calc(100% - 1.5rem));
  position: relative;
  z-index: 2;
}

.ag-body .order-page .page-hero {
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

.ag-body .order-result {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 1.35rem 1.15rem !important;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.ag-body .order-id {
  max-width: 100%;
  word-break: break-all;
  font-size: 0.85rem;
  line-height: 1.4;
}

.ag-body .order-id-inline {
  font-size: 0.75rem !important;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}

.ag-body .order-summary-rows {
  text-align: left;
  background: rgba(0, 0, 0, 0.45);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--ag-border);
}

.ag-body .order-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.ag-body .order-actions .btn {
  min-height: 44px;
  min-width: 140px;
}

.ag-body .order-pay-btn {
  min-height: 48px;
  font-size: 1rem !important;
}

.ag-body .recent-orders {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.ag-body .recent-orders__title {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #fff;
}

.ag-body .recent-orders__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ag-body .recent-order-link {
  text-decoration: none !important;
  color: inherit !important;
}

/* Track form: stack on narrow phones */
@media (max-width: 560px) {
  .ag-body .track-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    max-width: 100%;
  }

  .ag-body .track-form .input {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    font-size: 16px; /* prevent iOS zoom on focus */
  }

  .ag-body .track-form__btn,
  .ag-body .track-form .btn {
    width: 100%;
    min-height: 48px;
  }

  .ag-body .order-page .page-hero h1 {
    font-size: 1.65rem;
  }

  .ag-body .order-result h2 {
    font-size: 1.35rem;
  }

  .ag-body .status-timeline {
    margin: 1.25rem 0;
  }

  .ag-body main {
    /* Fixed header: padding + safe area */
    padding-top: calc(var(--ag-header) + 0.75rem + env(safe-area-inset-top, 0px));
  }
}

/* Ensure header never steals full-screen clicks on mobile */
.ag-header {
  height: auto;
  max-height: none;
}

/* Nav open rule only when toggled — don't override mobile display:none globally */
.ag-nav.open:not(.is-open) {
  /* handled below */
}

/* Fix cascade: open state must win only when open */
@media (max-width: 960px) {
  .ag-nav.open,
  .ag-nav.is-open {
    display: flex !important;
  }

  .ag-nav:not(.open):not(.is-open) {
    display: none !important;
  }
}

/* Safe area for fixed header on notched phones */
.ag-header {
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
}


/* SEO content blocks */
.seo-content__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.seo-card {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--ag-border);
  background: rgba(255, 255, 255, 0.025);
}
.seo-card h3 {
  font-family: var(--ag-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}
.seo-card p,
.seo-card li {
  color: var(--ag-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.65rem;
}
.seo-card a {
  color: var(--ag-accent-2) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-card ul {
  margin: 0.5rem 0 1rem 1.1rem;
  color: var(--ag-text-muted);
}
.seo-card .ag-btn {
  margin-top: 0.5rem;
  text-decoration: none !important;
}
@media (max-width: 720px) {
  .seo-content__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Burger menu hard fix (mobile) ===== */
.ag-header {
  pointer-events: none;
  z-index: 300 !important;
}
.ag-header__pill {
  pointer-events: auto;
  overflow: visible !important;
  z-index: 301;
}
.ag-menu-toggle,
.menu-toggle {
  position: relative;
  z-index: 320 !important;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .ag-menu-toggle,
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .ag-nav,
  .nav.ag-nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    padding: 0.75rem !important;
    margin: 0 !important;
    background: rgba(12, 12, 14, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
    z-index: 310 !important;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ag-nav.is-open,
  .ag-nav.open,
  .nav.ag-nav.is-open,
  .nav.ag-nav.open,
  .nav.open,
  .nav.is-open {
    display: flex !important;
  }

  .ag-nav:not(.open):not(.is-open) {
    display: none !important;
  }

  .ag-nav__link,
  .nav__link {
    width: 100% !important;
    text-align: center !important;
    padding: 0.9rem 1rem !important;
    min-height: 44px;
    border-radius: 12px !important;
    font-size: 1rem !important;
  }

  /* Hide secondary header CTA on very small screens if crowding burger */
  .ag-header__actions .ag-btn--ghost {
    display: none !important;
  }
}

.ag-menu-toggle.is-active span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.ag-menu-toggle.is-active span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}
.ag-menu-toggle span {
  transition: transform 0.2s ease;
}
