
/* ===== LANDING TYPOGRAPHY: Tajawal Arabic-first, brand-aware ===== */
:root {
  --font-arabic: "Tajawal", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-brand: ui-rounded, "Segoe UI Rounded", "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.landing-page,
.landing-page * {
  font-family: var(--font-arabic) !important;
}

.brand-word {
  display: inline-block;
  font-family: var(--font-brand) !important;
  font-weight: 800;
  letter-spacing: -0.025em;
  direction: ltr;
  unicode-bidi: isolate;
}


/* ==========================================
   IPOSTER360 – Premium Arabic Dark Theme CSS
   ========================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #0F0F18;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 58, 237, 0.5);

  --purple: #7C3AED;
  --indigo: #4F46E5;
  --pink: #EC4899;
  --purple-light: #A78BFA;
  --pink-light: #F9A8D4;

  --grad-primary: linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #EC4899 100%);
  --grad-hover: linear-gradient(135deg, #8B5CF6 0%, #6366F1 50%, #F43F5E 100%);
  --grad-glow: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(79,70,229,0.3), rgba(236,72,153,0.3));

  --text-primary: #F8F9FF;
  --text-secondary: #C4C9DC;
  --text-muted: #6B7280;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.25);
  --shadow-pink-glow: 0 0 40px rgba(236,72,153,0.2);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LIGHT THEME (SUNNY MODE) OVERRIDES ===== */
.light-theme {
  --bg-primary: #F3F4F6 !important;
  --bg-secondary: #FFFFFF !important;
  --bg-card: rgba(0, 0, 0, 0.03) !important;
  --bg-card-hover: rgba(0, 0, 0, 0.06) !important;
  --border: rgba(0, 0, 0, 0.08) !important;
  --border-hover: rgba(124, 58, 237, 0.5) !important;

  --text-primary: #1F2937 !important;
  --text-secondary: #4B5563 !important;
  --text-muted: #9CA3AF !important;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.1) !important;
  --shadow-pink-glow: 0 0 30px rgba(236, 72, 153, 0.08) !important;
}

.light-theme .navbar {
  background: rgba(243, 244, 246, 0.75) !important;
  border-bottom: 1px solid var(--border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.light-theme .navbar.scrolled {
  background: rgba(243, 244, 246, 0.85) !important;
  border-bottom: 1px solid var(--border) !important;
}

.light-theme .mobile-menu {
  background: rgba(243, 244, 246, 0.98) !important;
  border-left: 1px solid var(--border) !important;
}

.light-theme .sidebar {
  background: var(--bg-secondary) !important;
  border-left: 1px solid var(--border) !important;
}

.light-theme body {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

.light-theme .composer-card,
.light-theme .stat-card,
.light-theme .dashboard-section,
.light-theme .channel-card,
.light-theme .advanced-panel,
.light-theme .analytics-card,
.light-theme .preview-card,
.light-theme .composer-left,
.light-theme .composer-right,
.light-theme .main-header,
.light-theme .card,
.light-theme .chart-container {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

.light-theme input,
.light-theme textarea,
.light-theme select {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

.light-theme .menu-item a {
  color: var(--text-secondary) !important;
}

.light-theme .menu-item.active a,
.light-theme .menu-item a:hover {
  background: rgba(124, 58, 237, 0.08) !important;
  color: var(--purple) !important;
}

.light-theme .posts-table th {
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border) !important;
}

.light-theme .posts-table td {
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--border) !important;
}

.light-theme .comparison-table th {
  background: rgba(0, 0, 0, 0.02) !important;
  color: var(--text-primary) !important;
}

.light-theme .comparison-table td {
  border-bottom: 1px solid var(--border) !important;
}

.light-theme .comparison-table tr:hover td {
  background: rgba(0, 0, 0, 0.01) !important;
}

.light-theme .pricing-card {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
}

.light-theme .pricing-card.pricing-featured {
  border-color: var(--purple) !important;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1) !important;
}

.light-theme .footer {
  background: #F9FAFB !important;
  border-top: 2px solid transparent !important;
  border-image: linear-gradient(90deg, transparent, #A78BFA 30%, #F9A8D4 70%, transparent) 1 !important;
}

.light-theme .footer::before {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.04) 60%, transparent 100%) !important;
}

.light-theme .footer-col h3 {
  background: var(--grad-primary) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}


.light-theme .footer-bottom {
  background: rgba(124, 58, 237, 0.02) !important;
  border-top: 1px solid rgba(0,0,0,0.06) !important;
}

.light-theme .navbar-logo,
.light-theme .sidebar-logo,
.light-theme .logo-text {
  color: var(--text-primary) !important;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-arabic);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* ===== CANVAS PARTICLES ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-end-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-end-actions .btn-primary {
  white-space: nowrap;
}

.btn-ghost {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--grad-primary);
  color: white;
  font-family: Tahoma, Arial, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hover);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-primary span, .btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(124,58,237,0.4), 0 0 60px rgba(124,58,237,0.2);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(124,58,237,0.6), 0 0 80px rgba(124,58,237,0.3);
}

.btn-xl {
  font-size: 0.9rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-lg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: Tahoma, Arial, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card);
  transform: translateY(-2px);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  z-index: 999;
  transform: translateY(-100%);
  transition: var(--transition-slow);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem;
  width: 100%;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* ===== SECTION BASE ===== */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-2 {
  background: linear-gradient(135deg, #EC4899, #F43F5E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== AOS ANIMATIONS ===== */
[data-aos] {
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

[data-aos].aos-visible {
  opacity: 1;
}

/* Default / fade-up */
[data-aos], [data-aos="fade-up"] {
  transform: translateY(30px);
}
[data-aos].aos-visible, [data-aos="fade-up"].aos-visible {
  transform: translateY(0);
}

/* fade-right */
[data-aos="fade-right"] {
  transform: translateX(30px);
}
[data-aos="fade-right"].aos-visible {
  transform: translateX(0);
}

/* fade-left */
[data-aos="fade-left"] {
  transform: translateX(-30px);
}
[data-aos="fade-left"].aos-visible {
  transform: translateX(0);
}

/* Custom premium slow scroll animations */
[data-aos="fade-right-slow"] {
  transform: translateX(35px);
}
[data-aos="fade-right-slow"].aos-visible {
  transform: translateX(0);
}

[data-aos="fade-left-slow"] {
  transform: translateX(-35px);
}
[data-aos="fade-left-slow"].aos-visible {
  transform: translateX(0);
}

[data-aos="fade-up-slow"] {
  transform: translateY(35px);
}
[data-aos="fade-up-slow"].aos-visible {
  transform: translateY(0);
}

[data-aos="fade-down-slow"] {
  transform: translateY(-35px);
}
[data-aos="fade-down-slow"].aos-visible {
  transform: translateY(0);
}

[data-aos="zoom-in-slow"] {
  transform: scale(0.65);
}
[data-aos="zoom-in-slow"].aos-visible {
  transform: scale(1);
}

[data-aos="zoom-out-slow"] {
  transform: scale(1.3);
}
[data-aos="zoom-out-slow"].aos-visible {
  transform: scale(1);
}

[data-aos="rotate-right-slow"] {
  transform: translateX(150px) rotate(4deg) scale(0.95);
}
[data-aos="rotate-right-slow"].aos-visible {
  transform: translateX(0) rotate(0deg) scale(1);
}

[data-aos="rotate-left-slow"] {
  transform: translateX(-150px) rotate(-4deg) scale(0.95);
}
[data-aos="rotate-left-slow"].aos-visible {
  transform: translateX(0) rotate(0deg) scale(1);
}

[data-aos="bounce-up-slow"] {
  transform: translateY(150px);
}
[data-aos="bounce-up-slow"].aos-visible {
  transform: translateY(0);
  transition: opacity 1.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 3rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(236,72,153,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeSlideIn 0.8s ease both, float-text-badge 5s ease-in-out infinite 0.8s;
}

@keyframes float-text-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  animation: fadeSlideIn 0.8s ease 0.1s both, float-text-title 6s ease-in-out infinite 0.9s;
}

@keyframes float-text-title {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem;
  animation: fadeSlideIn 0.8s ease 0.2s both;
  min-height: 3em;
  position: relative;
}

.hero-subtitle::after {
  content: '|';
  display: inline-block;
  color: var(--purple-light);
  animation: blink-cursor 0.8s step-end infinite;
  margin-right: 2px;
  font-weight: 300;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
  animation: fadeSlideIn 0.8s ease 0.3s both;
}

/* ===== FLOATING PLATFORM ICONS ===== */
.platforms-float {
  position: relative;
  width: 400px;
  height: 100px;
  margin: 0 auto 3rem;
  animation: fadeSlideIn 0.8s ease 0.4s both;
}

.float-item {
  position: absolute;
  width: 52px;
  height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
}

.float-item:hover {
  transform: translateY(-8px) scale(1.1);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.f1 { left: 0; top: 25px; animation: float1 4s ease-in-out infinite; }
.f2 { left: 60px; top: 5px; animation: float2-shake 3.5s ease-in-out infinite; }
.f3 { left: 120px; top: 30px; animation: float1 4.5s ease-in-out infinite 0.3s; }
.f4 { left: 180px; top: 0; animation: float2 3.8s ease-in-out infinite 0.5s; }
.f5 { left: 240px; top: 25px; animation: float1 4.2s ease-in-out infinite 0.2s; }
.f6 { left: 300px; top: 5px; animation: float2 3.6s ease-in-out infinite 0.4s; }
.f7 { left: 340px; top: 40px; animation: float1 4.8s ease-in-out infinite 0.1s; }
.f8 { left: 20px; top: 60px; animation: float2 4.1s ease-in-out infinite 0.6s; }

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

@keyframes float2-shake {
  0%, 100% { transform: translateY(-8px) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(-3deg); }
  50% { transform: translateY(4px) rotate(0deg); }
  75% { transform: translateY(-2px) rotate(3deg); }
}

/* wiggle animation for second platform card icon wrap (Instagram) */
.platforms-grid .platform-card:nth-child(2) .platform-icon-wrap {
  animation: wiggle-subtle 4s ease-in-out infinite;
}

@keyframes wiggle-subtle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-4deg) scale(1.03); }
  50% { transform: rotate(0deg) scale(1); }
  75% { transform: rotate(4deg) scale(1.03); }
}

/* ===== HERO STATS ===== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideIn 0.8s ease 0.5s both;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.03) 50%, transparent);
}

.steps-container {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  margin-bottom: 5rem;
}

.steps-flow-line {
  display: none;
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.step-card:hover::before { opacity: 1; }

.step-number {
  font-size: 5rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.15;
  position: absolute;
  top: -1rem;
  left: 1rem;
  line-height: 1;
}

.step-icon-wrap { margin-bottom: 1.5rem; }

.step-icon {
  width: 68px;
  height: 68px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.step-card:hover .step-icon {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  transform: rotate(-5deg);
}

.step-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.step-badge {
  display: inline-block;
  background: rgba(124,58,237,0.1);
  color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

.step-badge-ai {
  background: rgba(236,72,153,0.1);
  color: var(--pink-light);
  border-color: rgba(236,72,153,0.2);
}

.step-badge-fire {
  background: rgba(245,158,11,0.1);
  color: #FCD34D;
  border-color: rgba(245,158,11,0.2);
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--purple-light);
  font-size: 1.8rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: -2rem;
}

/* ===== COMPOSER DEMO ===== */
.composer-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.composer-header {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.composer-dots {
  display: flex;
  gap: 6px;
}

.composer-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.composer-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.composer-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.composer-left {
  padding: 1.5rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.composer-right {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.composer-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.composer-upload-zone:hover {
  border-color: var(--border-hover);
  background: rgba(124,58,237,0.05);
}

.upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.composer-upload-zone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.composer-upload-zone span {
  font-size: 0.8rem;
  color: var(--purple-light);
  font-weight: 600;
}

.caption-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cap-tool-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.cap-tool-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.ai-btn {
  background: rgba(124,58,237,0.15) !important;
  color: var(--purple-light) !important;
  border-color: rgba(124,58,237,0.3) !important;
}

.ai-btn:hover {
  background: rgba(124,58,237,0.3) !important;
  border-color: var(--purple) !important;
}

.caption-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  padding: 0.75rem;
  resize: vertical;
  min-height: 100px;
  direction: rtl;
  transition: var(--transition);
}

.caption-textarea:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.caption-textarea::placeholder { color: var(--text-muted); }

.selector-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.platform-toggles {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ptoggle {
  cursor: pointer;
}

.ptoggle input { display: none; }

.ptoggle-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  opacity: 0.4;
  filter: grayscale(1);
}

.ptoggle input:checked + .ptoggle-btn {
  opacity: 1;
  filter: grayscale(0);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 12px rgba(124,58,237,0.3);
}

.ptoggle-fb,
.ptoggle-ig,
.ptoggle-x,
.ptoggle-snap,
.ptoggle-tt,
.ptoggle-yt,
.ptoggle-li,
.ptoggle-pn {
  background: #ffffff;
}

.ptoggle-btn .social-logo {
  width: 24px;
  height: 24px;
}

.ptoggle-btn .social-logo-x {
  background: transparent;
  padding: 0;
}

.composer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-publish {
  flex: 1;
  background: var(--grad-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-publish:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-publish:active { transform: translateY(0); }

.btn-schedule {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: center;
}

.btn-schedule:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.preview-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

.previews-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.preview-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  flex: 1;
}

.preview-platform-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.preview-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== PLATFORMS GRID ===== */
.platforms-section {
  background: linear-gradient(180deg, transparent, rgba(79,70,229,0.03) 50%, transparent);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.platform-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.platform-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.platform-card:hover::after { transform: scaleX(1); transform-origin: left; }

.platform-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.social-logo {
  display: block;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}

.social-logo-x {
  background: #ffffff;
  border-radius: 22%;
  padding: 2px;
}

.platform-brand-tile {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.platform-brand-tile .social-logo {
  width: 38px;
  height: 38px;
}

.platform-brand-tile .social-logo-x {
  background: transparent;
  padding: 0;
}

.platform-card:hover .platform-icon-wrap {
  transform: rotate(-8deg) scale(1.1);
}

.platform-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.platform-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.platform-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #22C55E;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ===== FEATURES GRID ===== */
.features-section {
  background: linear-gradient(180deg, transparent, rgba(236,72,153,0.03) 50%, transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.feature-big {
  grid-column: span 1;
  grid-row: span 2;
}

.feature-big-2 {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.feature-icon-xl {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-pill {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.feature-pill span {
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

.speed-bar {
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  height: 8px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.speed-fill {
  height: 100%;
  width: 0;
  background: var(--grad-primary);
  border-radius: 100px;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.speed-label {
  font-size: 0.85rem;
  color: var(--purple-light);
  font-weight: 700;
  margin-top: 0.75rem;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  overflow: hidden;
}

.comparison-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

th:first-child, td:first-child {
  text-align: right;
}

th {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.highlight-col {
  background: rgba(124,58,237,0.08);
  color: var(--text-primary);
  font-weight: 700;
}

.highlight-col th {
  color: var(--purple-light);
}

.check { color: #22C55E; font-weight: 700; }
.cross { color: #EF4444; }
.half { color: #F59E0B; }

tr:hover td { background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: none; }

/* ===== PRICING ===== */
.pricing-section {
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.04) 50%, transparent);
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.toggle-switch { cursor: pointer; }
.toggle-switch input { display: none; }

.toggle-track {
  width: 52px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-track {
  background: var(--grad-primary);
  border-color: transparent;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  right: auto;
  left: 3px;
}

.save-badge {
  display: inline-block;
  background: rgba(34,197,94,0.15);
  color: #22C55E;
  border: 1px solid rgba(34,197,94,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-featured {
  background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(79,70,229,0.08));
  border-color: rgba(124,58,237,0.4);
  transform: scale(1.03);
}

.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.pricing-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.price-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.pricing-features .disabled {
  color: var(--text-muted);
  opacity: 0.6;
}

.btn-pricing-primary {
  display: block;
  text-align: center;
  background: var(--grad-primary);
  color: white;
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.btn-pricing-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(124,58,237,0.6);
}

.btn-pricing-outline {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}

.btn-pricing-outline:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: linear-gradient(180deg, transparent, rgba(236,72,153,0.03) 50%, transparent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.testimonial-stars { font-size: 1.1rem; margin-bottom: 1rem; }

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 6rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.2) 0%, rgba(236,72,153,0.1) 50%, transparent 70%);
  pointer-events: none;
}

.cta-container { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2.5rem;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== FOOTER ===== */
/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: scale(1.05) rotate(15deg);
  border-color: var(--purple);
  color: var(--purple-light);
  box-shadow: var(--shadow-glow);
}

/* Specific positions based on parent */
.nav-container .theme-toggle-btn {
  margin-left: 0.5rem;
}

.top-bar .theme-toggle-btn {
  margin-left: 1rem;
}

.auth-card .theme-toggle-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

/* ===== FOOTER ===== */
.footer {
  background: #08080D;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #7C3AED 30%, #EC4899 70%, transparent) 1;
  padding: 2rem 0 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Premium footer background glows */
.footer::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.18) 0%, rgba(236, 72, 153, 0.1) 45%, rgba(79, 70, 229, 0.04) 70%, transparent 100%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.footer-brand .logo { margin-bottom: 0.75rem; }

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.social-link .social-logo {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.social-link .social-logo-x {
  padding: 3px;
}

/* Colorful social icons - always show brand colors */
#footer-fb {
  border-color: rgba(24, 119, 242, 0.3);
  background: rgba(24, 119, 242, 0.08);
}
#footer-fb:hover {
  border-color: #1877F2;
  background: rgba(24, 119, 242, 0.2);
  box-shadow: 0 0 18px rgba(24, 119, 242, 0.35);
  transform: translateY(-3px) scale(1.05);
}

#footer-ig {
  border-color: rgba(228, 64, 95, 0.3);
  background: rgba(228, 64, 95, 0.08);
}
#footer-ig:hover {
  border-color: #E4405F;
  background: rgba(228, 64, 95, 0.2);
  box-shadow: 0 0 18px rgba(228, 64, 95, 0.35);
  transform: translateY(-3px) scale(1.05);
}

#footer-x {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
#footer-x:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  transform: translateY(-3px) scale(1.05);
}


.light-theme #footer-x:hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#footer-tt {
  border-color: rgba(0, 242, 254, 0.2);
  background: rgba(0, 242, 254, 0.05);
}
#footer-tt:hover {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.15);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.25);
  transform: translateY(-3px) scale(1.05);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), rgba(236,72,153,0.3), transparent);
  margin: 0 0 2.5rem 0;
  position: relative;
  z-index: 2;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--purple-light);
  padding-right: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.25rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  background: rgba(124, 58, 237, 0.03);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-bottom .footer-heart {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--purple-light);
  font-weight: 700;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  left: auto;
}

.toast.show { transform: translateY(0); }

.toast-icon { font-size: 1.5rem; }

.toast strong {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: #22C55E;
  margin-bottom: 0.2rem;
}

.toast p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: var(--grad-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 100;
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px) scale(1.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-big { grid-column: span 1; grid-row: span 1; }
  .feature-big-2 { grid-column: span 1; grid-row: span 1; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-4px); }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .footer-container { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-end-actions { gap: 0.35rem; }
  .nav-end-actions .btn-primary {
    font-size: 0.72rem;
    padding: 0.38rem 0.65rem;
  }
  .hamburger { display: flex; }

  .hero-title { font-size: 2rem; }
  .platforms-float {
    width: 290px;
    height: 120px;
  }
  .float-item {
    width: 42px;
    height: 42px;
  }
  .float-item img, .float-item svg {
    width: 22px !important;
    height: 22px !important;
  }
  .f1 { left: 10px; top: 5px; }
  .f2 { left: 75px; top: 20px; }
  .f3 { left: 140px; top: 5px; }
  .f4 { left: 205px; top: 20px; }
  .f5 { left: 40px; top: 55px; }
  .f6 { left: 105px; top: 70px; }
  .f7 { display: flex !important; left: 170px; top: 55px; }
  .f8 { display: flex !important; left: 235px; top: 70px; }

  .steps-container { flex-direction: column; gap: 1.5rem; }
  .step-connector { transform: rotate(90deg); align-self: center; }

  .composer-body { grid-template-columns: 1fr; }
  .composer-left { border-left: none; border-bottom: 1px solid var(--border); }

  /* 2 per row on mobile */
  .platforms-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  
  .feature-card, .platform-card {
    padding: 1rem 0.85rem;
  }
  
  .feature-icon-xl, .feature-icon, .platform-icon-wrap {
    transform: scale(0.8);
    margin-bottom: 0.5rem;
  }
  
  .feature-card h3, .platform-card h3 {
    font-size: 0.9rem;
  }
  
  .feature-card p, .platform-card p {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* Pricing: 1 col on mobile to avoid overflow */
  .pricing-grid { grid-template-columns: 1fr; max-width: 340px; }

  .stat-divider { display: none; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }

  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-col { align-items: center; text-align: center; }

  .section { padding: 3.5rem 0; }
  
  .testimonial-card { padding: 1.25rem; }
  .testimonial-text { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .platforms-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  
  .feature-card, .platform-card {
    padding: 1rem 0.75rem;
  }
  
  .feature-icon-xl, .feature-icon, .platform-icon-wrap {
    transform: scale(0.75);
    margin-bottom: 0.5rem;
  }
  
  .feature-card h3, .platform-card h3 {
    font-size: 0.9rem;
  }
  
  .feature-card p, .platform-card p {
    font-size: 0.75rem;
  }

  .footer-links { grid-template-columns: 1fr; }
  .composer-demo { border-radius: var(--radius-md); }
  .hero-actions { flex-direction: column; }
  .btn-xl { width: 100%; justify-content: center; }
}

/* ===== PUBLIC SUBPAGES PREMIUM STYLING ===== */
.subpage-hero {
  padding: 5.5rem 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 12, 20, 0.4) 0%, rgba(8, 8, 12, 0) 100%);
}

.subpage-hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.subpage-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subpage-title {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 950 !important;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.subpage-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.subpage-container {
  max-width: 850px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

/* Elegant background glows for subpages */
.subpage-bg-glow-1 {
  position: fixed;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.09) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}

.subpage-bg-glow-2 {
  position: fixed;
  bottom: 10%;
  left: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.07) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 15s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.1) translate(30px, -30px); opacity: 1.2; }
}

.subpage-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.subpage-content h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 1.5rem;
  border-right: 3px solid var(--purple);
  padding-right: 12px;
  display: inline-block;
}

/* Premium Why Cards for About / Features Grid */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.why-card-icon-wrap {
  width: 52px;
  height: 52px;
  position: relative;
  margin-bottom: 0.25rem;
}

.why-card-icon-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  opacity: 0.15;
  filter: blur(8px);
  transition: var(--transition);
}

.why-card:hover .why-card-icon-glow {
  opacity: 0.6;
  filter: blur(12px);
  transform: scale(1.1);
}

.why-card-icon {
  width: 100%;
  height: 100%;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.why-card:hover .why-card-icon {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.why-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0;
  transition: var(--transition);
}

.why-card:hover h4 {
  color: var(--purple-light);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Light theme overrides for subpages */
.light-theme .subpage-hero {
  background: linear-gradient(180deg, rgba(243, 244, 246, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
}
.light-theme .subpage-hero-glow {
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}

#footer-snap {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}
#footer-snap:hover {
  border-color: #FFFC00;
  background: rgba(255, 252, 0, 0.2);
  box-shadow: 0 0 18px rgba(255, 252, 0, 0.35);
  transform: translateY(-3px) scale(1.05);
}

/* ===== SUBPAGE MULTI-CARD SYSTEM ===== */
.subpage-cards-wrap {
  max-width: 850px;
  margin: 0 auto 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.subpage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: var(--transition);
  position: relative;
}

.subpage-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.subpage-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .subpage-container {
    padding: 0 1rem;
    margin: 0 0 3rem;
  }
  .subpage-cards-wrap {
    margin: 0 1rem 4rem;
    gap: 1.5rem;
  }
  .subpage-card {
    padding: 2rem 1.5rem;
  }
  .subpage-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.floating-whatsapp:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp img {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .scroll-top {
    width: 40px;
    height: 40px;
    bottom: 1.5rem;
    left: 1.5rem;
  }
  .scroll-top svg {
    width: 18px;
    height: 18px;
  }
  .floating-whatsapp {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
  .floating-whatsapp img {
    width: 26px;
    height: 26px;
  }
}


/* Iposter 360 supplied brand mark */
.brand-logo-image {
  display: block;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.brand-logo-navbar {
  height: 34px;
  max-width: 92px;
}

.brand-logo-footer {
  height: 52px;
  max-width: 115px;
}

@media (max-width: 768px) {
  .brand-logo-navbar {
    height: 30px;
    max-width: 82px;
  }

  .brand-logo-footer {
    height: 44px;
    max-width: 98px;
  }
}


/* ===== LANDING PERFORMANCE OVERRIDES ===== */
/* Critical hero styles are inlined in index.blade.php; keep the loaded stylesheet stable. */
.hero {
  background:
    radial-gradient(ellipse at 50% 10%, rgba(124,58,237,0.15), transparent 58%),
    radial-gradient(ellipse at 90% 90%, rgba(236,72,153,0.10), transparent 42%);
}
.hero::before,
.hero::after {
  content: none !important;
  display: none !important;
}
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-actions,
.platforms-float,
.hero-stats {
  animation: none !important;
}
.hero-subtitle::after {
  content: none !important;
  display: none !important;
}
[data-aos] {
  will-change: auto;
}

/* Skip rendering work for sections until they approach the viewport. */
.how-it-works,
.platforms-section,
.features-section,
.demo-section,
.cta-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.skip-link {
  position: fixed;
  top: .5rem;
  right: .5rem;
  z-index: 2000;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: #111;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 768px) {
  #particles-canvas { display: none !important; }
  .navbar,
  .mobile-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
