/* AnındaBot Premium — Agency-grade visual layer */

:root {
  --premium-glow: rgba(37, 211, 102, 0.45);
  --premium-glass: rgba(16, 25, 22, 0.72);
  --premium-border-glow: rgba(37, 211, 102, 0.22);
}

/* ── Hero cinematic video background ── */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-kenburns {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  animation: premium-kenburns 22s ease-in-out infinite alternate;
  opacity: 0.55;
  filter: saturate(1.15) contrast(1.05);
}

.hero-video-kenburns::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 8, 7, 0.92) 0%,
    rgba(5, 8, 7, 0.55) 42%,
    rgba(5, 8, 7, 0.75) 100%
  );
}

#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(37, 211, 102, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 80% 70%, rgba(18, 140, 126, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(37, 211, 102, 0.08), transparent 60%);
  animation: premium-mesh-drift 14s ease-in-out infinite alternate;
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
  opacity: 0.35;
}

.hero-cinematic .hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

/* Premium phone / video mockup */
.phone-mockup-premium {
  width: min(320px, 88vw);
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(37, 211, 102, 0.15),
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(37, 211, 102, 0.12);
  animation: premium-phone-float 5s ease-in-out infinite;
  position: relative;
}

.phone-mockup-premium::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 42px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(37,211,102,0.5), transparent 40%, rgba(37,211,102,0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: premium-border-spin 6s linear infinite;
  pointer-events: none;
}

.phone-live-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45);
  z-index: 5;
  animation: premium-live-pulse 1.8s ease-in-out infinite;
}

.phone-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: premium-blink 1.2s step-end infinite;
}

.phone-chat-animated {
  min-height: 300px;
  max-height: 340px;
  overflow: hidden;
  position: relative;
}

.phone-chat-animated .chat-bubble {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: none;
}

.phone-chat-animated .chat-bubble.visible {
  animation: premium-bubble-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.phone-chat-animated .chat-bubble.typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 12px 16px;
  width: fit-content;
}

.phone-chat-animated .typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa-green, #25D366);
  animation: premium-typing 1.2s ease-in-out infinite;
}

.phone-chat-animated .typing-dot:nth-child(2) { animation-delay: 0.15s; }
.phone-chat-animated .typing-dot:nth-child(3) { animation-delay: 0.3s; }

/* Glass premium cards — landing */
.feature-card,
.price-card {
  backdrop-filter: blur(12px);
  background: linear-gradient(145deg, rgba(16,25,22,0.95), rgba(12,18,16,0.88)) !important;
}

.feature-card::before,
.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37,211,102,0.25), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-card { position: relative; overflow: hidden; }
.feature-card:hover::before,
.price-card:hover::before { opacity: 1; }

/* Panel premium glass */
.panel-app .panel-sidebar {
  background: linear-gradient(180deg, #0a100e 0%, #070c0a 100%);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.35);
}

.panel-app .panel-topbar {
  background: rgba(5, 8, 7, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(37, 211, 102, 0.08);
}

.panel-app .stat-card-v2,
.panel-app .panel-content-card,
.panel-app .card {
  backdrop-filter: blur(8px);
  background: linear-gradient(160deg, rgba(16, 25, 22, 0.98), rgba(12, 18, 16, 0.92));
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.panel-app .stat-card-v2:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.12);
  border-color: var(--premium-border-glow);
}

.panel-app .panel-nav-item.active {
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.18), rgba(37, 211, 102, 0.04));
  box-shadow: inset 3px 0 0 var(--wa-green, #25D366), 0 4px 20px rgba(37, 211, 102, 0.08);
}

.panel-app .tab-panel.active {
  animation: premium-tab-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-app .panel-main {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(37, 211, 102, 0.04), transparent 50%),
    var(--panel-bg, #050807);
}

/* Premium navbar landing */
nav {
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

nav.nav-scrolled {
  background: rgba(5, 8, 7, 0.96) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(37, 211, 102, 0.12) !important;
}

/* Section dividers */
.section-glow-line {
  height: 1px;
  max-width: 200px;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent, var(--wa-green), transparent);
  animation: premium-line-glow 3s ease-in-out infinite;
}

/* Keyframes */
@keyframes premium-kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}

@keyframes premium-mesh-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  100% { transform: translate(2%, -2%) scale(1.05); opacity: 1; }
}

@keyframes premium-phone-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.5deg); }
}

@keyframes premium-border-spin {
  to { filter: hue-rotate(0deg); }
}

@keyframes premium-live-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45); }
  50% { box-shadow: 0 4px 30px rgba(239, 68, 68, 0.7); }
}

@keyframes premium-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes premium-bubble-in {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes premium-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@keyframes premium-tab-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes premium-line-glow {
  0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes premium-gradient-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 .gradient-text {
  background: linear-gradient(120deg, #25D366, #6ee7a0, #128C7E, #25D366);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: premium-gradient-text 5s ease infinite;
}

/* Auth & register cinematic backgrounds */
.auth-page,
.register-shell,
.success-page,
.pending-app .panel-main,
.upgrade-shell {
  position: relative;
  overflow: hidden;
}

.auth-page::before,
.register-shell::before,
.success-page::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: 0;
  background: url('/assets/hero-bg-texture.png') center/cover no-repeat;
  animation: premium-kenburns 28s ease-in-out infinite alternate;
  opacity: 0.22;
  filter: saturate(1.2);
  pointer-events: none;
}

.auth-page::after,
.register-shell::after,
.success-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(37, 211, 102, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(18, 140, 126, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(5, 8, 7, 0.75), rgba(5, 8, 7, 0.92));
  pointer-events: none;
}

.auth-page > *,
.register-shell > *,
.success-page > * {
  position: relative;
  z-index: 1;
}

.auth-card,
.wizard-card,
.success-card {
  backdrop-filter: blur(16px) saturate(1.15);
  background: linear-gradient(160deg, rgba(16, 25, 22, 0.96), rgba(10, 16, 14, 0.9)) !important;
  border-color: rgba(37, 211, 102, 0.12) !important;
  box-shadow:
    0 0 0 1px rgba(37, 211, 102, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(37, 211, 102, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.auth-card:hover,
.wizard-card:hover,
.success-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(37, 211, 102, 0.15),
    0 32px 90px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(37, 211, 102, 0.1);
}

/* Landing platform pills & sector cards */
.platform-pill,
.sector-card,
.flow-card,
.step,
.platform-grid,
.sectors-grid,
.integration-flow,
.steps {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.platform-pill:hover,
.sector-card:hover,
.flow-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.12);
}

.price-card.featured {
  box-shadow:
    0 0 0 1px rgba(37, 211, 102, 0.25),
    0 24px 70px rgba(37, 211, 102, 0.15) !important;
  animation: premium-featured-pulse 4s ease-in-out infinite;
}

@keyframes premium-featured-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.25), 0 24px 70px rgba(37, 211, 102, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.4), 0 28px 80px rgba(37, 211, 102, 0.22); }
}

/* Super admin tailwind pages */
body.min-h-screen.bg-\[\#050807\] {
  background:
    radial-gradient(ellipse 70% 50% at 50% -15%, rgba(37, 211, 102, 0.1), transparent 55%),
    #050807 !important;
}

#dashboardApp .rounded-2xl.border {
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#dashboardApp .rounded-2xl.border:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.08);
}

#dashboardApp header {
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero badge shimmer */
.hero-badge {
  animation: premium-badge-shimmer 3s ease-in-out infinite;
}

@keyframes premium-badge-shimmer {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 211, 102, 0.15); }
  50% { box-shadow: 0 0 30px rgba(37, 211, 102, 0.3); }
}

/* Panel mockup on landing */
.panel-mock {
  animation: premium-phone-float 6s ease-in-out infinite;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 60px rgba(37, 211, 102, 0.08);
}
