/* Forge - Premium Supercharged Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;800&family=Inter:wght@300;400;500;600;700&family=Lexend:wght@300;400;600;800&family=Outfit:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;700&family=Syne:wght@400;700;800&display=swap');

:root {
  --glass-blur: 16px;
  --glass-bg-opacity: 0.6;
  --glass-border-opacity: 0.4;
  --glass-border-width: 1px;
  --glass-radius: 16px;
  --glow-color: #635bff;
  --font-family-headings: 'Outfit', sans-serif;
  --font-family-body: 'Inter', sans-serif;
}

/* Custom Font Family Classes */
.font-inter { font-family: 'Inter', sans-serif; }
.font-outfit { font-family: 'Outfit', sans-serif; }
.font-syne { font-family: 'Syne', sans-serif; }
.font-space { font-family: 'Space Grotesk', sans-serif; }
.font-lexend { font-family: 'Lexend', sans-serif; }
.font-bricolage { font-family: 'Bricolage Grotesque', sans-serif; }

body {
  font-family: var(--font-family-body);
  background-color: #09090b;
  color: #fafafa;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: #ffffff;
}

/* Minimal Flat Background Layer */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-color: #09090b;
  transition: background 0.8s ease;
}

/* -------------------- 20+ PREMIUM FEATURES: ANIMATED BACKGROUNDS -------------------- */

/* 1. Animated Gradient Drift */
.bg-gradient-drift {
  background: radial-gradient(circle at 10% 20%, rgba(99, 91, 255, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
              #09090b;
  background-size: 200% 200%;
  animation: gradientDrift 15s ease infinite;
}

@keyframes gradientDrift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 2. Dotted Neon Grid Mesh */
.bg-grid-mesh {
  background-color: #050508;
  background-image: 
    linear-gradient(to right, rgba(99, 91, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 91, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  position: relative;
}
.bg-grid-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(99, 91, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* 3. Glowing Neon Wave / Particle Mesh */
.bg-neon-wave {
  background: linear-gradient(125deg, #09090b 0%, #110e24 50%, #050508 100%);
  overflow: hidden;
  position: relative;
}
.bg-neon-wave::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background-image: radial-gradient(rgba(99, 91, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  transform: rotate(15deg);
  animation: particleShift 30s linear infinite;
  pointer-events: none;
}

@keyframes particleShift {
  0% { background-position: 0 0; }
  100% { background-position: 500px 1000px; }
}

/* -------------------- DYNAMIC GLASSMORPHISM CONFIGURATOR -------------------- */
.liquid-glass-mimic {
  background: rgba(24, 24, 27, var(--glass-bg-opacity, 0.6));
  backdrop-filter: blur(var(--glass-blur, 16px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 16px));
  border: var(--glass-border-width, 1px) solid rgba(255, 255, 255, var(--glass-border-opacity, 0.1));
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: var(--glass-radius, 16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-mimic:hover {
  background: rgba(32, 32, 36, calc(var(--glass-bg-opacity, 0.6) + 0.08));
  border-color: rgba(255, 255, 255, calc(var(--glass-border-opacity, 0.1) + 0.1));
  transform: translateY(-2px);
}

/* Editor Dotted Canvas */
.editor-canvas-container {
  background-size: 20px 20px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  border-radius: 16px;
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #09090b;
}

.grid-stack-item-content {
  border-radius: var(--glass-radius, 16px);
  overflow: hidden !important;
}

/* Editor grid items: prevent text overlap on resize */
.grid-stack .grid-stack-item-content {
  overflow: hidden !important;
  min-width: 0;
}

.grid-stack .grid-stack-item-content * {
  min-width: 0;
}

/* --- Public Renderer Grid: CSS grid to match editor layout --- */
.renderer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.renderer-block {
  min-width: 0;
  overflow: hidden;
}

.renderer-block > .grid-stack-item-content {
  height: auto !important;
  position: relative !important;
  display: flex;
  flex-direction: column;
  border-radius: var(--glass-radius, 16px);
}

.renderer-block > .grid-stack-item-content > * {
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* On small screens, force all blocks to span full width */
@media (max-width: 480px) {
  .renderer-grid {
    grid-template-columns: 1fr;
  }
  .renderer-block {
    grid-column: 1 / -1 !important;
  }
}

/* Resizing & handles */
.grid-stack-item > .ui-resizable-se {
  background-image: none !important;
  width: 12px;
  height: 12px;
  border-right: 2px solid #52525b;
  border-bottom: 2px solid #52525b;
  right: 6px;
  bottom: 6px;
  cursor: se-resize;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.grid-stack-item:hover > .ui-resizable-se {
  opacity: 0.6;
}

.grid-stack-placeholder > .placeholder-content {
  border: 1px dashed rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-radius: var(--glass-radius, 16px);
}

.drag-handle {
  cursor: grab;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.grid-stack-item:hover .drag-handle {
  opacity: 0.8;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Phone frame mockup */
.phone-mockup {
  width: 360px;
  height: 720px;
  border: 4px solid #27272a;
  border-radius: 36px;
  position: relative;
  background-color: #09090b;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.business-header-fixed {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.business-footer-fixed {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(9, 9, 11, 0.9);
}

/* -------------------- 20+ PREMIUM FEATURES: DYNAMIC ANIMATED WIDGETS -------------------- */

/* Countdown Timer layout styling */
.countdown-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  flex: 1;
}

/* Wave player simulated visualizer */
.wave-visualizer-bar {
  width: 3px;
  height: 12px;
  background-color: var(--glow-color);
  border-radius: 3px;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}
@keyframes wavePulse {
  0% { transform: scaleY(0.5); }
  100% { transform: scaleY(2.2); }
}

/* Pulsing Custom Neon Button styling */
.btn-glow-pulse {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(99, 91, 255, 0.3);
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 8px rgba(99, 91, 255, 0.3); }
  100% { box-shadow: 0 0 20px rgba(99, 91, 255, 0.6); }
}

/* Tip Jar input */
.tip-input-badge {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
}
.tip-input-badge.active-tip-badge,
.tip-input-badge:hover {
  background: var(--glow-color);
  color: white;
  border-color: var(--glow-color);
}

/* Accordion layout animation */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.active-accordion .accordion-content {
  max-height: 200px;
}

/* Carousel Banner indicators */
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}
.carousel-dot.active-dot {
  background: white;
  width: 14px;
  border-radius: 3px;
}

/* Tour list item decoration */
.tour-item {
  border-left: 2px solid var(--glow-color);
  background: rgba(255, 255, 255, 0.02);
}

/* Sticky floating music bar at bottom */
.floating-music-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 18, 20, 0.9);
}

/* Dynamic glow inputs */
.neon-input {
  background: rgba(9, 9, 11, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.neon-input:focus {
  outline: none;
  border-color: var(--glow-color);
  box-shadow: 0 0 10px rgba(99, 91, 255, 0.2);
}

/* Premium Tier Badges */
.badge-tier-pro {
  background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4) !important;
}

.badge-tier-business {
  background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%) !important;
  color: #09090b !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4) !important;
}

/* ==================== UPGRADE SUCCESS & BUSINESS ONBOARDING MODALS ==================== */

#upgrade-success-modal.flex:not(.hidden),
#business-onboarding-modal.flex:not(.hidden) {
  display: flex !important;
}

#success-card {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease-out;
}

#biz-onboard-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
}

.shadow-glow-purple {
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.25), 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.shadow-glow-gold {
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.25), 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

#biz-onboard-label-input {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#biz-onboard-label-input:focus {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2), inset 0 2px 4px rgba(0,0,0,0.6) !important;
}

#success-title {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  animation: textShine 4s infinite linear;
  background-size: 200% auto;
}

@keyframes textShine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Dynamic Tailwind Utility Shadow fallbacks */
.shadow-\[0_0_30px_rgba\(168\,85\,247\,0\.3\)\] {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3) !important;
}

.shadow-\[0_0_30px_rgba\(245\,158\,11\,0\.3\)\] {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3) !important;
}



