/* VC Tools — motion, polish & enhanced controls */

:root {
  --vc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --vc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --vc-dur-fast: 0.18s;
  --vc-dur-med: 0.32s;
  --vc-dur-slow: 0.55s;
  --vc-glow: 0 0 24px rgba(255, 107, 0, 0.35);
  --vc-glow-sm: 0 0 14px rgba(255, 107, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --vc-dur-fast: 0.01ms;
    --vc-dur-med: 0.01ms;
    --vc-dur-slow: 0.01ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Smooth page boot ──────────────────── */
html.vc-smooth-boot body {
  opacity: 0;
}

html.vc-smooth-ready body {
  opacity: 1;
  transition: opacity 0.45s var(--vc-ease-out);
}

.vc-stat .n[data-vc-count] {
  font-variant-numeric: tabular-nums;
  min-width: 1.5ch;
}

/* ── Ambient background motion ─────────── */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 20% 15%, rgba(255, 107, 0, 0.09), transparent 60%),
    radial-gradient(ellipse 35% 28% at 85% 25%, rgba(255, 146, 72, 0.06), transparent 55%),
    radial-gradient(ellipse 30% 25% at 50% 90%, rgba(255, 107, 0, 0.04), transparent 50%);
  animation: vc-ambient-drift 18s ease-in-out infinite alternate;
}

@keyframes vc-ambient-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 1.5%) scale(1.03); }
}

/* ── Logo — full square, never stretched ─ */
.vc-brand-ic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 107, 0, 0.25);
  transition: transform var(--vc-dur-med) var(--vc-ease-spring), box-shadow var(--vc-dur-med);
}

.vc-brand-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

/* Large hero logo */
.vc-brand-hero {
  display: block;
  width: clamp(96px, 18vw, 140px);
  height: clamp(96px, 18vw, 140px);
  margin: 0 0 20px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  filter: drop-shadow(0 8px 32px rgba(255, 107, 0, 0.35));
  animation: vc-logo-glow 4s ease-in-out infinite alternate;
}

@keyframes vc-logo-glow {
  0% { filter: drop-shadow(0 8px 28px rgba(255, 107, 0, 0.28)); }
  100% { filter: drop-shadow(0 12px 40px rgba(255, 107, 0, 0.5)); }
}

.vc-auth-logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 6px 24px rgba(255, 107, 0, 0.3));
}

.vc-topbrand:hover .vc-brand-ic,
.nav-logo:hover .vc-brand-ic {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 28px rgba(255, 107, 0, 0.45);
}

.nav-logo .vc-brand-ic,
.nav-logo-icon.vc-brand-ic {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-basis: 40px;
  border-radius: 10px;
}

.vc-footer-mark.vc-brand-ic {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-basis: 36px;
  border-radius: 9px;
}

/* ── Buttons ───────────────────────────── */
.vc-btn,
.vc-plan-cta,
.vc-buy-btn,
.btn,
.nav-tab,
.vc-period-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--vc-dur-fast) var(--vc-ease-out),
    box-shadow var(--vc-dur-fast),
    border-color var(--vc-dur-fast),
    background var(--vc-dur-fast),
    color var(--vc-dur-fast);
}

.vc-btn::after,
.vc-plan-cta::after,
.vc-buy-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--vc-ripple-x, 50%) var(--vc-ripple-y, 50%), rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.vc-btn:active::after,
.vc-plan-cta:active::after,
.vc-buy-btn:active::after {
  opacity: 1;
  transition: opacity 0.05s;
}

.vc-btn.primary,
.vc-plan-cta.primary {
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.vc-btn.primary:hover,
.vc-plan-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.vc-btn:not(.primary):hover,
.vc-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ── Period picker — sliding pill ──────── */
.vc-period-pick {
  position: relative;
  isolation: isolate;
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.vc-period-pick .vc-period-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.22), rgba(255, 146, 72, 0.12));
  border: 1px solid rgba(255, 107, 0, 0.35);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.38s var(--vc-ease-out), width 0.38s var(--vc-ease-out);
  z-index: 0;
  pointer-events: none;
}

.vc-period-btn {
  position: relative;
  z-index: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.vc-period-btn.active {
  color: var(--text2) !important;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.35);
}

/* ── Cards — hover & reveal ──────────── */
.vc-feat-card,
.vc-t-compact,
.vc-plan-card-inner,
.vc-plat-card,
.vc-info-card,
.vc-home-t-card,
.vc-t-card {
  transition:
    transform var(--vc-dur-med) var(--vc-ease-out),
    border-color var(--vc-dur-med),
    box-shadow var(--vc-dur-med);
}

.vc-feat-card:hover,
.vc-t-compact:hover,
.vc-plat-card:hover,
.vc-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 107, 0, 0.12);
}

.vc-t-compact.featured:hover {
  box-shadow: 0 20px 48px rgba(255, 107, 0, 0.18), 0 0 0 1px rgba(255, 107, 0, 0.25);
}

.vc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--vc-ease-out),
    transform 0.7s var(--vc-ease-out);
}

.vc-reveal.vc-in {
  opacity: 1;
  transform: none;
}

.vc-reveal-d1 { transition-delay: 0.08s; }
.vc-reveal-d2 { transition-delay: 0.16s; }
.vc-reveal-d3 { transition-delay: 0.24s; }
.vc-reveal-d4 { transition-delay: 0.32s; }

/* ── Landing hero ──────────────────────── */
.vc-slide-hero h1 {
  animation: vc-hero-in 0.9s var(--vc-ease-out) both;
}

.vc-slide-hero .vc-eyebrow {
  animation: vc-fade-up 0.7s var(--vc-ease-out) 0.05s both;
}

.vc-slide-hero .vc-slide-lead {
  animation: vc-fade-up 0.7s var(--vc-ease-out) 0.12s both;
}

.vc-slide-hero .vc-cta {
  animation: vc-fade-up 0.7s var(--vc-ease-out) 0.2s both;
}

.vc-slide-hero .vc-hero-stats {
  animation: vc-fade-up 0.7s var(--vc-ease-out) 0.28s both;
}

@keyframes vc-hero-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes vc-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.vc-slide-glow {
  animation: vc-glow-pulse 8s ease-in-out infinite alternate;
}

@keyframes vc-glow-pulse {
  0% { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0.65; transform: scale(1.06); }
}

.vc-hero-stats .n.acc {
  animation: vc-stat-glow 3s ease-in-out infinite alternate;
}

@keyframes vc-stat-glow {
  0% { text-shadow: none; }
  100% { text-shadow: 0 0 20px rgba(255, 107, 0, 0.45); }
}

/* ── Slide rail — progress line ────────── */
.vc-slide-rail {
  gap: 0;
  padding: 8px 0;
}

.vc-slide-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  border-radius: 2px;
  z-index: 0;
}

.vc-slide-rail {
  position: fixed;
}

.vc-slide-rail .vc-rail-progress {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 2px;
  height: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--accent), rgba(255, 146, 72, 0.6));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
  transition: height 0.45s var(--vc-ease-out);
  z-index: 0;
}

.vc-slide-rail button {
  position: relative;
  z-index: 1;
}

.vc-slide-rail button span {
  transition: transform 0.35s var(--vc-ease-spring), background 0.25s, box-shadow 0.25s;
}

.vc-slide-rail button.active span {
  animation: vc-rail-ping 2s ease infinite;
}

@keyframes vc-rail-ping {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 0, 0.5); }
  50% { box-shadow: 0 0 18px rgba(255, 107, 0, 0.75); }
}

.vc-scroll-hint {
  animation: vc-bob-glow 2.6s ease-in-out infinite;
}

@keyframes vc-bob-glow {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.7;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.4));
  }
}

/* ── Header glass ────────────────────── */
.vc-land-head,
.vc-tariffs-topbar,
.navbar {
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, rgba(255, 107, 0, 0.15));
}

/* ── Auth card ───────────────────────── */
.vc-card {
  animation: vc-card-in 0.65s var(--vc-ease-out) both;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 107, 0, 0.06);
}

@keyframes vc-card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.vc-field input {
  transition: border-color var(--vc-dur-fast), box-shadow var(--vc-dur-fast), transform var(--vc-dur-fast);
}

.vc-field input:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
  transform: translateY(-1px);
}

/* ── App range sliders ───────────────── */
.range-slider {
  height: 28px;
  margin-top: 8px;
}

.range-slider .track {
  height: 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--inset-surface) 80%, transparent);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.range-slider .track-fill {
  background: linear-gradient(90deg, #ff8128, var(--accent), #ff5500);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.45);
  transition: width 0.12s var(--vc-ease-out), left 0.12s var(--vc-ease-out);
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  background: linear-gradient(145deg, #ffb347, var(--accent));
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 107, 0, 0.4);
  transition: transform 0.15s var(--vc-ease-spring), box-shadow 0.15s;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 107, 0, 0.55);
}

.range-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(145deg, #ffb347, var(--accent));
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 107, 0, 0.4);
}

/* ── Table rows ──────────────────────── */
tbody tr.data-row {
  transition: background 0.15s, transform 0.15s;
}

tbody tr.data-row:hover {
  transform: translateX(2px);
}

.nav-tab {
  transition: background 0.2s, color 0.2s, transform 0.2s var(--vc-ease-out);
}

.nav-tab:hover {
  transform: translateY(-1px);
}

.nav-tab.active {
  box-shadow: inset 0 -2px 0 var(--accent), 0 4px 16px rgba(255, 107, 0, 0.12);
}

/* ── Modals & overlays ───────────────── */
.modal,
.vc-profile-card,
.vc-adm {
  animation: vc-modal-in 0.35s var(--vc-ease-out) both;
}

@keyframes vc-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.overlay {
  animation: vc-fade-in 0.25s ease both;
}

@keyframes vc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Mobile nav polish ───────────────── */
.vc-mob-nav a {
  transition: transform 0.2s var(--vc-ease-spring), background 0.2s, color 0.2s;
}

.vc-mob-nav a.active {
  transform: translateY(-2px);
}

.vc-mob-nav a.active svg {
  filter: drop-shadow(0 0 6px rgba(255, 107, 0, 0.5));
}

/* ── Landing table preview glow ──────── */
.lpv-tbl-wrap {
  animation: vc-table-float 6s ease-in-out infinite alternate;
}

@keyframes vc-table-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.lpv-tbl tbody tr {
  transition: background 0.2s;
}

.lpv-profit b {
  animation: vc-profit-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes vc-profit-pulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.15); }
}

/* ── Toast ───────────────────────────── */
#toast.show {
  animation: vc-toast-in 0.4s var(--vc-ease-spring) both;
}

@keyframes vc-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
