/* ==========================================================================
   Mixtiles Premium Stylesheet (Hebrew & RTL Optimized)
   ========================================================================== */

/* Design System Tokens */
:root {
  --color-accent: #EB2371;
  --color-accent-hover: #D72A6E;
  --color-accent-glow: rgba(235, 35, 113, 0.25);
  --color-dark: #2B0514;
  --color-text: #472C35;
  --color-muted: #958289;
  --color-border: #EBE7E7;
  --color-bg-warm-gradient: linear-gradient(180deg, #FBF6F6 0%, #FBF9F9 100%);
  --color-bg-warm: #FBF9F9;
  --color-white: #FFFFFF;
  --color-overlay: rgba(0, 0, 0, 0.15);
  
  --font-primary: 'Heebo', 'Rubik', 'Secular One', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 
    0 100px 80px rgba(0, 0, 0, 0.06),
    0 41.778px 33.422px rgba(0, 0, 0, 0.04),
    0 22.336px 17.869px rgba(0, 0, 0, 0.035),
    0 12.522px 10.017px rgba(0, 0, 0, 0.03),
    0 6.65px 5.32px rgba(0, 0, 0, 0.02),
    0 2.767px 2.214px rgba(0, 0, 0, 0.01);
}

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-warm);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

/* ==========================================================================
   Header component
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  color: var(--color-white);
  background-color: transparent;
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--color-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 100%;
  height: 72px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.menu-trigger, .cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.menu-trigger:hover, .cart-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.scrolled .menu-trigger:hover, .scrolled .cart-btn:hover {
  background-color: rgba(43, 5, 20, 0.05);
}

.logo-link {
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.logo-link:hover {
  opacity: 0.85;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop-header-btn {
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--color-accent-glow);
  transition: var(--transition-smooth);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
}

.scrolled .shop-header-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.shop-header-btn:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 6px 16px var(--color-accent-glow);
  transform: translateY(-1px);
}

.shop-header-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Sidebar Drawer (RTL - slides from right side for RTL consistency)
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: -320px; /* slide from right (RTL standard) */
  width: 320px;
  height: 100vh;
  max-height: 100vh;
  background-color: var(--color-white);
  z-index: 210;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.open {
  right: 0;
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Aligns close button to left in RTL */
  gap: 16px;
  flex-shrink: 0;
}

.close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-muted);
  transition: var(--transition-smooth);
}

.close-btn:hover {
  background-color: var(--color-bg-warm);
  color: var(--color-dark);
}

.drawer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
}

.drawer-nav {
  flex: 1;
  padding: 16px 0 32px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.drawer-nav::-webkit-scrollbar {
  width: 5px;
}
.drawer-nav::-webkit-scrollbar-track {
  background: transparent;
}
.drawer-nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.drawer-nav.is-scrolling::-webkit-scrollbar-thumb,
.drawer-nav:hover::-webkit-scrollbar-thumb,
.drawer-nav:active::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
}

.drawer-nav ul li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition-smooth);
  border-right: 4px solid transparent;
}

.drawer-nav ul li a:hover {
  background-color: var(--color-bg-warm);
  color: var(--color-accent);
  border-right-color: var(--color-accent);
}

.menu-icon {
  color: var(--color-muted);
  transition: var(--transition-smooth);
}

.drawer-nav ul li a:hover .menu-icon {
  color: var(--color-accent);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  width: 100%;
  background-color: var(--color-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.video-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 2;
}

.hero-play-icon {
  position: relative;
  z-index: 3;
  color: rgba(255, 255, 255, 0.4);
  width: 90px;
  height: 90px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  animation: pulse-ring 2s infinite;
}

.hero-media-placeholder:hover .hero-play-icon {
  color: var(--color-white);
  border-color: var(--color-white);
  transform: scale(1.05);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
  margin-top: 60px;
}

.hero-content h1 {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.primary-cta-btn {
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 16px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--color-accent-glow);
  transition: var(--transition-smooth);
}

.primary-cta-btn:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 12px 32px var(--color-accent-glow);
  transform: translateY(-2px);
}

.primary-cta-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   Social Proof Section
   ========================================================================== */
.social-proof-section {
  padding: 48px 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.social-proof-title {
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 32px;
}

.section-container {
  width: 100%;
  max-width: 100%;
  padding: 0 40px;
  margin-left: auto;
  margin-right: auto;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-item {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-muted);
  opacity: 0.65;
  transition: var(--transition-smooth);
}

.logo-item:hover {
  opacity: 1;
  color: var(--color-dark);
}

/* ==========================================================================
   Interactive Features Section (Meet Magnetic Hanging)
   ========================================================================== */
.features-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background-color: var(--color-bg-warm);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}

.feature-info {
  display: flex;
  flex-direction: column;
}

@media (min-width: 769px) {
  .feature-info {
    height: 100%;
    min-height: 75vh;
  }
}

.feature-info h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.2;
}

.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

@media (min-width: 769px) {
  .feature-tabs {
    margin-top: auto;
    margin-bottom: auto;
  }
}

.feature-tab {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.feature-tab.active {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.tab-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: var(--transition-smooth);
}

.feature-tab.active .tab-title {
  color: var(--color-accent);
}

.tab-progress-bar {
  width: 40%;
  height: 2px;
  background-color: var(--color-border);
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-tab.active .tab-progress-bar {
  opacity: 1;
}

.tab-progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--color-accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card {
  width: 100%;
  max-width: 75vh;
  aspect-ratio: 1;
  background-color: var(--color-white);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: var(--transition-bounce);
}

.visual-demo-frame {
  flex: 1;
  background-color: var(--color-bg-warm);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.visual-slides-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-photo-placeholder {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  background-color: var(--color-bg-warm);
}

/* ==========================================================================
   Full-Width Video Banner Sections (Shared Design System)
   ========================================================================== */
.fullwidth-video-banner-section,
.museum-quality-section,
.hanging-demo-section {
  position: relative;
  height: 88vh;
  min-height: 550px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0b0f19;
}

.banner-video-wrapper,
.museum-video-wrapper,
.hanging-demo-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner-video,
.museum-video,
.hanging-demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-dark-overlay,
.museum-dark-overlay,
.hanging-demo-dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 2;
}

.banner-overlay-content,
.museum-overlay,
.hanging-demo-overlay {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  padding: 32px 24px;
  max-width: 1100px;
}

.banner-overlay-content h2,
.museum-overlay h2,
.hanging-demo-overlay h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
  line-height: 1.35;
  color: #ffffff;
}

/* ==========================================================================
   Community / Testimonials Slider
   ========================================================================== */
.community-section {
  padding: 100px 0;
  background-color: var(--color-white);
}

.community-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 60px;
}

.carousel-container {
  position: relative;
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.carousel-track {
  display: flex;
  gap: clamp(12px, 1.8vw, 24px);
  justify-content: space-between;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-bounce);
  border: 1px solid var(--color-border);
}

/* Hide scroll buttons when all cards/images are visible without overflow */
.carousel-container:not(.has-overflow) .carousel-nav-btn {
  display: none !important;
}

.testimonial-card {
  flex: 0 0 calc(25% - 18px);
  max-width: calc(25% - 18px);
  background-color: var(--color-white);
  border-radius: 14px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-media-placeholder {
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  background-color: #000;
}

.aspect-ratio-shield {
  display: block;
  padding-top: 177.78%; /* 9:16 Vertical Video Aspect Ratio (720x1280) */
}

.card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Premium placeholders instead of blank spaces */
.temp-gradient-1 { background: linear-gradient(135deg, #f3a6c5 0%, #ff758c 100%); }
.temp-gradient-2 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.temp-gradient-3 { background: linear-gradient(135deg, #f8c291 0%, #e77f67 100%); }
.temp-gradient-4 { background: linear-gradient(135deg, #81ecec 0%, #00cec9 100%); }

.card-meta {
  padding: 20px;
}

.card-author {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-bounce);
  border: 1px solid var(--color-border);
}

.carousel-nav-btn:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-btn { left: 8px; }
.next-btn { right: 8px; }

/* ==========================================================================
   Value Propositions (Grid)
   ========================================================================== */
.value-props-section {
  padding: 100px 0;
  background-color: var(--color-bg-warm-gradient);
}

.mobile-how-to-steps {
  display: none;
}

.value-props-section h2 {
  font-size: clamp(1.2rem, 4.5vw, 2.5rem);
  white-space: nowrap;
  font-weight: 800;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 60px;
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.prop-item {
  background-color: #FBF6F6;
  padding: 48px 32px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.prop-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.prop-icon {
  color: var(--color-accent);
  margin-bottom: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(235, 35, 113, 0.05);
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.prop-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.prop-item p {
  color: var(--color-muted);
}

/* ==========================================================================
   FAQs Section
   ========================================================================== */
.faq-section {
  padding: 100px 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.faq-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-white);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--color-muted);
}

.faq-trigger {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: right;
  transition: var(--transition-smooth);
}

.faq-trigger:hover {
  color: var(--color-accent);
}

.faq-icon-wrapper {
  color: var(--color-muted);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-icon-wrapper {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1); /* Quick collapse transition */
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Allow open expanding */
  transition: max-height 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.faq-answer p {
  padding: 0 24px 24px 24px;
  color: var(--color-text);
  font-size: 1.05rem;
  border-top: 1px solid transparent;
}

/* ==========================================================================
   Modal Dialog Layout (Glassmorphic & RTL Centered)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(43, 5, 20, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 90%;
  max-width: 440px;
  background-color: var(--color-white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-bounce);
}

.upload-options-grid-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .upload-options-grid-responsive {
    gap: 10px;
  }
  .upload-option-card {
    padding: 8px !important;
  }
  .upload-option-card span {
    font-size: 0.8rem !important;
  }
  .modal-card {
    padding: 24px 16px;
  }
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.modal-header h2,
#createClassFormWrapper h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-dark);
}

#createClassFormWrapper h2 {
  margin-bottom: 24px;
}

.close-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-muted);
  background-color: var(--color-bg-warm);
  transition: var(--transition-smooth);
}

.close-modal-btn:hover {
  background-color: var(--color-border);
  color: var(--color-dark);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Premium Floating Label Form Field */
.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-size: 1.1rem;
  color: var(--color-dark);
  background-color: var(--color-white);
  transition: var(--transition-smooth);
  text-align: right;
  direction: rtl;
}

/* Remove up/down spinner arrows for number input */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

.form-group input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
}

.form-group label {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--color-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
  background-color: var(--color-white);
  padding: 0 6px;
  border-radius: 4px;
}

/* Float label top on focus or when input is not empty */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
  top: 0;
  right: 14px;
  font-size: 0.82rem;
  color: var(--color-accent);
  font-weight: 700;
  background-color: var(--color-white);
}

.error-msg {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-top: 6px;
  display: none;
  font-weight: 600;
}

.form-group.invalid input {
  border-color: var(--color-accent);
}

.form-group.invalid .error-msg {
  display: block;
}

.modal-footer {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 12px var(--color-accent-glow);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 6px 18px var(--color-accent-glow);
}

.btn-secondary {
  background-color: var(--color-bg-warm);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-border);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  html { font-size: 15px; }
  .feature-grid { gap: 40px; }
  .testimonial-card { flex: 0 0 calc(50% - 12px); }
  .props-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  
  .header-container { padding: 0 16px; }
  .shop-header-btn { display: none; } /* Hide compact header cta on mobile */

  .hero-content h1 { font-size: 2.75rem; }
  
  .feature-grid {
    display: block;
  }
  
  .feature-info .feature-tabs,
  .feature-visual {
    display: none !important;
  }

  .mobile-how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 20px;
  }

  .mobile-step-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-step-title {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.35;
    text-align: right;
  }

  .mobile-step-img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
  }
  
  .feature-info h2 { font-size: 2rem; text-align: center; margin-bottom: 24px; }
  
  .carousel-container {
    width: 98%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  
  .carousel-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-x: visible;
    padding: 10px 0;
  }

  .testimonial-card {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  .carousel-nav-btn { display: none !important; }

  .value-props-section h2 {
    font-size: clamp(0.95rem, 4.8vw, 1.6rem);
    white-space: nowrap;
    margin-bottom: 32px;
  }

  .fullwidth-video-banner-section,
  .museum-quality-section,
  .hanging-demo-section {
    height: auto;
    min-height: unset;
    aspect-ratio: 16 / 9;
    width: 100%;
  }

  .banner-overlay-content,
  .museum-overlay,
  .hanging-demo-overlay {
    padding: 16px 12px;
  }

  .banner-overlay-content h2,
  .museum-overlay h2,
  .hanging-demo-overlay h2 {
    font-size: clamp(1.1rem, 4.2vw, 1.8rem);
    line-height: 1.3;
  }

  .props-grid { grid-template-columns: 1fr; gap: 24px; }
  .prop-item { padding: 36px 24px; }
}

/* ==========================================================================
   Supabase & Class Creation Additional Styles
   ========================================================================== */
.drawer-auth-section {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
}

.logged-out-state p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 16px;
  font-weight: 500;
  text-align: center;
}

.google-login-btn {
  width: 100%;
  height: 50px;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  background-color: var(--color-white);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(235, 35, 113, 0.12);
}

.google-login-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--color-accent-glow);
}

.google-login-btn:hover .google-icon path {
  fill: #ffffff !important;
}

.google-login-btn:active {
  transform: scale(0.98);
}

.google-icon {
  flex-shrink: 0;
  transition: fill 0.3s ease;
}

.logged-in-state {
  padding: 12px 24px 16px 24px;
}

.auth-trigger-btn {
  width: calc(100% - 32px);
  margin: 0 16px;
  padding: 12px 20px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(235, 35, 113, 0.2);
}

.auth-trigger-btn:hover {
  background-color: #d0185b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(235, 35, 113, 0.35);
}

.auth-modal-card {
  background-color: #ffffff;
  border-radius: 28px;
  max-width: 420px;
  width: 90%;
  padding: 32px 28px;
  direction: rtl;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  position: relative;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  direction: rtl;
  text-align: right;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f36b00;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}

.user-email {
  font-size: 0.95rem;
  font-weight: 800;
  color: #2c0e18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.user-logout-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2c0e18;
  text-decoration: underline;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.user-logout-link:hover {
  color: var(--color-accent);
}

.drawer-menu-list {
  padding: 16px 0;
}

.drawer-menu-list li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition-smooth);
  border-right: 4px solid transparent;
}

.drawer-secondary-list {
  padding: 6px 0 !important;
}

.drawer-secondary-list li a {
  padding: 8px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.drawer-menu-list li a:hover {
  background-color: var(--color-bg-warm);
  color: var(--color-accent);
  border-right-color: var(--color-accent);
}

.drawer-menu-list li a:hover .menu-icon {
  color: var(--color-accent);
}

/* Template Selection inside creation form */
.template-selection-container {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.template-option {
  cursor: pointer;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 12px;
  background-color: var(--color-white);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.template-option:hover {
  border-color: var(--color-muted);
}

.template-option.active {
  border-color: var(--color-accent);
  background-color: rgba(235, 35, 113, 0.02);
  box-shadow: 0 4px 12px rgba(235, 35, 113, 0.05);
}

.template-preview {
  width: 100%;
  height: 52px;
  border-radius: 8px;
  background-color: var(--color-bg-warm);
  padding: 6px;
  display: grid;
  gap: 4px;
  transition: var(--transition-smooth);
}

.template-option.active .template-preview {
  background-color: rgba(235, 35, 113, 0.08);
}

.mosaic-preview {
  grid-template-columns: repeat(3, 1fr);
}

.mosaic-preview span {
  background-color: var(--color-white);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.mosaic-preview span:nth-child(1) { grid-column: span 2; }
.mosaic-preview span:nth-child(4) { grid-column: span 2; }

.grid-preview {
  grid-template-columns: repeat(2, 1fr);
}

.grid-preview span {
  background-color: var(--color-white);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.template-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  transition: var(--transition-smooth);
}

.template-option.active .template-title {
  color: var(--color-accent);
}

/* Success View */
.success-alert-badge {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #34A853;
}

.success-alert-badge h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
}

.success-alert-badge p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.generated-link-box {
  display: flex;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg-warm);
  margin-bottom: 28px;
}

#generatedClassLink {
  flex: 1;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 600;
  direction: ltr;
  text-align: left;
  background-color: transparent;
}

.copy-link-btn {
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  color: var(--color-muted);
  border-left: 2px solid var(--color-border);
  transition: var(--transition-smooth);
}

.copy-link-btn:hover {
  color: var(--color-accent);
  background-color: var(--color-bg-warm);
}

.copy-link-btn.copied {
  background-color: #34A853;
  color: var(--color-white);
  border-left-color: #34A853;
}

/* Palette Selection inside creation form */
.palette-selection-container {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.palettes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.palette-option {
  cursor: pointer;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 10px;
  background-color: var(--color-white);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.palette-option:hover {
  border-color: var(--color-muted);
}

.palette-option.active {
  border-color: var(--color-accent);
  background-color: rgba(235, 35, 113, 0.02);
  box-shadow: 0 4px 12px rgba(235, 35, 113, 0.05);
}

.palette-preview-container {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background-color: var(--color-bg-warm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palette-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.palette-colors-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
}

.palette-colors-fallback span {
  width: 14.2857%;
  height: 100%;
  flex-shrink: 0;
}

.palette-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  transition: var(--transition-smooth);
  text-align: center;
}

.palette-option.active .palette-title {
  color: var(--color-accent);
}

/* Branded Circular Loader/Spinner */
.branded-spinner-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  width: 100%;
}

.branded-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(235, 35, 113, 0.1);
  border-top: 4px solid var(--color-accent);
  border-radius: 50%;
  animation: branded-spin 1s infinite linear;
}

@keyframes branded-spin {
  to { transform: rotate(360deg); }
}

.sign-option {
  cursor: pointer;
  border: none;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.sign-option:hover .sign-preview-container {
  filter: grayscale(40%) opacity(0.7);
}

.sign-option.active .sign-preview-container {
  filter: none;
  box-shadow: none;
}

.sign-preview-container {
  width: 100%;
  height: auto;
  border: none;
  background-color: transparent;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  filter: grayscale(100%) opacity(0.45);
  position: relative;
}

.sign-preview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.sign-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  transition: var(--transition-smooth);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.sign-option.active .sign-title {
  color: var(--color-accent);
}

.upload-option-card {
  transition: all 0.2s ease;
}

.upload-option-card:hover {
  border-color: var(--color-accent) !important;
  box-shadow: 0 4px 12px rgba(235, 35, 113, 0.08) !important;
  transform: translateY(-2px);
}

.upload-option-card.selected {
  border-color: var(--color-accent) !important;
  background-color: rgba(235, 35, 113, 0.03) !important;
  box-shadow: 0 4px 16px rgba(235, 35, 113, 0.15) !important;
}

.name-req-option-btn.selected {
  border-color: var(--color-accent) !important;
  background-color: rgba(235, 35, 113, 0.04) !important;
  box-shadow: 0 4px 12px rgba(235, 35, 113, 0.12) !important;
}

.name-req-option-btn.selected div {
  border-color: var(--color-accent) !important;
  background-color: rgba(235, 35, 113, 0.08) !important;
}

.name-req-option-btn:hover:not(.selected) {
  border-color: var(--color-dark) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Admin Functions & Impersonation Banner Styles
   ========================================================================== */
.admin-function-card:hover {
  border-color: var(--color-accent) !important;
  background-color: rgba(235, 35, 113, 0.03) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-impersonation-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 16px 24px;
  margin: 0 auto 28px auto;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  direction: rtl;
}

.admin-impersonation-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-impersonation-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(235, 35, 113, 0.2);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-impersonation-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.admin-impersonation-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.admin-impersonation-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  white-space: nowrap;
}

.admin-impersonation-back-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background-color: #0d1322;
  color: #94a3b8;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: inherit;
  direction: rtl;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(-4px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-contact-list svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer-action-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-cta-btn {
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 15px var(--color-accent-glow);
}

.footer-cta-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #94a3b8;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.mobile-step-badge {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(235, 35, 113, 0.3);
  flex-shrink: 0;
}
