/*
Theme Name: Nobatet
Theme URI: https://noobatet.com/
Author: Antigravity
Description: بازطراحی اختصاصی سامانه نوبتت بر پایه لی‌اوت و رابط کاربری Flowora SaaS با حفظ پالت رنگی زمردی لوکس (Emerald Luxury UI/UX)
Version: 4.1.0
Text Domain: noobatet
*/

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

@font-face {
  font-family: 'PeydaFaNumWeb';
  src: url('/fonts/woff2/PeydaFaNumWeb-Regular.woff2') format('woff2'),
       url('/fonts/woff/PeydaFaNumWeb-Regular.woff') format('woff');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PeydaFaNumWeb';
  src: url('/fonts/woff2/PeydaFaNumWeb-Bold.woff2') format('woff2'),
       url('/fonts/woff/PeydaFaNumWeb-Bold.woff') format('woff');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surface & Canvas (بستر سرامیکی بسیار تمیز و روشن مطابق Flowora) */
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  
  /* Hairline Borders */
  --border-light: #eef2f6;
  --border-card: #e2e8f0;
  --border-hover: #00875a;
  
  /* Text Colors */
  --text-dark: #0f172a;
  --text-body: #475569;
  --text-muted: #94a3b8;
  
  /* Emerald & Gold Brand Accents */
  --primary: #00875a;
  --primary-dark: #00704a;
  --primary-light: #10b981;
  --primary-soft: #e8f5ef;
  --accent-gold: #f59e0b;
  --accent-gold-soft: #fef3c7;
  --accent-purple: #6366f1;
  --accent-purple-soft: #eef2ff;
  
  /* Shadows & Elevations */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  --shadow-hero-card: 0 30px 60px -15px rgba(0, 135, 90, 0.15), 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-floating: 0 20px 35px -8px rgba(15, 23, 42, 0.12);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  font-family: 'PeydaFaNumWeb', 'Peyda', Tahoma, system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box;
}
.material-symbols-outlined,
.material-symbols-outlined * {
  font-family: 'Material Symbols Outlined' !important;
}

body {
  direction: rtl;
  text-align: right;
  background-color: var(--bg-body);
  color: var(--text-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.8;
}

/* Material Symbols font fix */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

/* 1. Header Styles (هدر بیضی و معلق چسبان روی هیرو - Floating Pill) */
.floating-header-pill {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 
    0 10px 30px -5px rgba(15, 23, 42, 0.06),
    0 4px 12px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}

.floating-header-pill.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 
    0 20px 45px -10px rgba(15, 23, 42, 0.12),
    0 6px 18px -3px rgba(15, 23, 42, 0.06);
}

.flowora-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none !important;
  transition: var(--transition);
  padding: 6px 13px;
  border-radius: 9999px;
  white-space: nowrap;
}

.flowora-nav-link:hover {
  color: var(--primary);
  background: rgba(0, 135, 90, 0.08);
}

/* 2. Professional Enterprise SaaS Dashboard Window (طراحی جدی، باوقار و مهندسی‌شده) */
/* Dynamic Hero Background Mesh Glow */
.hero-gradient-mesh {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 650px;
  background: 
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 135, 90, 0.15) 0%, transparent 70%),
    radial-gradient(circle at 18% 20%, rgba(13, 148, 136, 0.09) 0%, transparent 55%),
    radial-gradient(circle at 82% 15%, rgba(16, 185, 129, 0.10) 0%, transparent 50%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-mockup-wrapper {
  position: relative;
  z-index: 10;
}

/* Smartphone Showcase Mockup (موکاپ خوش‌تراش، باریک و استاندارد گوشی هوشمند) */
.smartphone-mockup-frame {
  position: relative;
  background: #0f172a;
  border: 4px solid #334155;
  border-radius: 44px;
  box-shadow: 
    0 25px 50px -12px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 8px;
  width: 268px;
  max-width: 268px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.smartphone-screen {
  background: #ffffff;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.9);
  height: 100%;
  box-sizing: border-box;
}

.smartphone-dynamic-island {
  width: 76px;
  height: 16px;
  background: #000000;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Subtle, Elegant Ambient Glow (هاله نوری ملایم و حرفه‌ای زیر پنجره اپلیکیشن) */
.hero-ambient-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at 50% 30%, rgba(0, 135, 90, 0.08) 0%, rgba(15, 23, 42, 0.03) 60%, transparent 80%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* The Enterprise Window Shell: Fixed, stable & pixel-perfect */
.hero-dashboard-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 22px;
  box-shadow: 
    0 30px 70px -15px rgba(15, 23, 42, 0.12),
    0 12px 30px -6px rgba(15, 23, 42, 0.05),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Window Chrome Top Header (نوار کنترل پنجره نرم‌افزار) */
.saas-window-header {
  background: #f8fafc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saas-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.saas-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Table Hover & Transition */
.saas-table-row {
  transition: background-color 0.15s ease;
}

.saas-table-row:hover {
  background-color: #f8fafc;
}

/* Live Number Flash for Tickers */
.live-num-bump {
  display: inline-block;
  animation: numBump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #00875a !important;
}

@keyframes numBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); color: #00875a; }
  100% { transform: scale(1); }
}

/* 3. Flowora Buttons (دکمه‌های کپسولی شیک، دقیقاً مطابق Flowora) */
.btn-flowora-primary {
  background: var(--primary);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.28);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-flowora-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 135, 90, 0.38);
}

.btn-flowora-secondary {
  background: #ffffff;
  color: var(--text-dark) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-flowora-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 4. Flowora Feature Cards (کارت‌های ۴ گانه ویژگی‌ها) */
.flowora-feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.flowora-feature-card:hover {
  border-color: rgba(0, 135, 90, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* 5. Flowora Stats Bar (نوار آمار و ارقام سفید یکپارچه) */
.flowora-stats-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

/* 6. Flowora Split Showcase (سکشن تصویر و اپ موبایل) */
.showcase-photo-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.floating-photo-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-floating);
}

/* 7. Flowora Pricing & Testimonial Bento Cards */
.flowora-bento-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.flowora-bento-card:hover {
  box-shadow: var(--shadow-md);
}

.flowora-pricing-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 36px -8px rgba(0, 135, 90, 0.18);
  position: relative;
}

/* 8. Flowora Big Gradient Callout Banner (بنر بزرگ گرادیانی پایین صفحه) */
.flowora-gradient-banner {
  background: linear-gradient(135deg, #00875a 0%, #00704a 50%, #0f766e 100%);
  border-radius: 28px;
  box-shadow: 0 20px 45px -10px rgba(0, 135, 90, 0.35);
  position: relative;
  overflow: hidden;
}

/* 7. Flowora Testimonials Interactive Showcase & Transitions */
.testimonial-stage {
  position: relative;
  width: 100%;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  width: 100%;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

@keyframes testmSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(35px) scale(0.98);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes testmSlideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-35px) scale(0.98);
    filter: blur(4px);
  }
}

@keyframes testmSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-35px) scale(0.98);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes testmSlideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateX(35px) scale(0.98);
    filter: blur(4px);
  }
}

.testimonial-slide.slide-in-right {
  display: block;
  animation: testmSlideInRight 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.testimonial-slide.slide-in-left {
  display: block;
  animation: testmSlideInLeft 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.testimonial-slide.slide-out-left {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
  animation: testmSlideOutLeft 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.testimonial-slide.slide-out-right {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
  animation: testmSlideOutRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.testimonial-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  border-radius: 9999px;
  transition: width 0.1s linear;
}

.testimonial-nav-pill {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 8. Infinite Seamless Brands Marquee Ticker (لوپ بی انتها از راست به چپ) */
.marquee-wrapper {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2rem;
  padding-right: 2rem;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

#landing-view.hidden,
#onboarding-view.hidden,
#onboarding-loading-screen.hidden,
#floating-header.hidden,
#checkout-modal.hidden,
#consult-modal.hidden,
.ob-plan-check.hidden {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00875a;
}


/* Onboarding View Smooth Transitions */
.ob-fade-enter {
  animation: obFadeEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes obFadeEnter {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ob-shake {
  animation: obShake 400ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes obShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* ==================== ONBOARDING MOBILE RESPONSIVENESS ==================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

#onboarding-view {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch;
}

#onboarding-view * {
  box-sizing: border-box;
}

/* iOS Safari zooms focused inputs when computed font-size is under 16px */
@media (max-width: 640px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Touch target optimization */
  #onboarding-view button,
  #onboarding-view .btn-flowora-primary {
    min-height: 44px;
  }
}
