/* =============================================
   PigeonStory - Digital Invitation Website
   Design System & Styles
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --primary: #003366;
  --primary-light: #1a5276;
  --primary-dark: #001a33;
  --secondary: #C9B07A;
  --secondary-light: #d4c08e;
  --accent: #C9B07A;
  --accent-light: #d9c99a;

  /* Neutrals */
  --dark: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --white: #ffffff;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #001a33 0%, #003366 50%, #00264d 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 51, 102, 0.06) 0%, rgba(201, 176, 122, 0.06) 100%);
  --gradient-cta: linear-gradient(135deg, #003366 0%, #004d99 100%);
  --gradient-gold: linear-gradient(135deg, #C9B07A 0%, #a8934f 50%, #d4c08e 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-bg-white: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(0, 51, 102, 0.3);

  /* Transitions */
  --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);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-card);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.section-badge i {
  font-size: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title span {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--dark-600);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   NAVBAR (Renamed to avoid Bootstrap conflict)
   ============================================= */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.main-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  z-index: 1002;
  /* Ensure above overlay if needed */
  position: relative;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--dark);
}

.nav-logo i {
  font-size: 1.3rem;
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85); /* Back to white for Index/Hero */
  padding: 8px 18px;
  border-radius: 50px;
  transition: var(--transition);
}

/* Page specific contrast: Catalog & Theme Detail have white bg at top */
.page-catalog .main-navbar:not(.scrolled) .nav-link,
.page-theme-detail .main-navbar:not(.scrolled) .nav-link {
  color: var(--dark); /* Changed to black/dark */
}

.main-navbar.scrolled .nav-link {
  color: var(--dark-600);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* Hover/Active states when text is dark */
.page-catalog .main-navbar:not(.scrolled) .nav-link:hover,
.page-catalog .main-navbar:not(.scrolled) .nav-link.active,
.page-theme-detail .main-navbar:not(.scrolled) .nav-link:hover,
.page-theme-detail .main-navbar:not(.scrolled) .nav-link.active,
.main-navbar.scrolled .nav-link:hover,
.main-navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: rgba(0, 51, 102, 0.08); /* Soft blue tint */
}

.nav-cta {
  background: var(--gradient-cta) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 10px 24px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white); /* White for Hero */
  border-radius: 2px;
  transition: var(--transition);
}

/* Dark toggle for pages on white bg */
.page-catalog .main-navbar:not(.scrolled) .nav-toggle span,
.page-theme-detail .main-navbar:not(.scrolled) .nav-toggle span,
.main-navbar.scrolled .nav-toggle span {
  background: var(--dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-40px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  /* display: grid;  <-- REMOVED: Managed by Bootstrap */
  /* grid-template-columns: 1fr 1fr; <-- REMOVED */
  /* gap: 60px; <-- REMOVED */
  /* align-items: center; <-- REMOVED */
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--secondary-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Updated Highlight Color for Contrast - FIXED */
.hero-title .highlight {
  color: var(--secondary-light) !important;
  /* Use the exact badge color variable */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  background-clip: unset !important;
  text-shadow: 0 0 20px rgba(201, 176, 122, 0.4) !important;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Dynamic Text Animation */
.dynamic-text-container {
  display: inline-block;
  min-width: 120px;
  text-align: left;
}

.dynamic-text {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

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

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  animation: slideInRight 1s ease-out 0.3s backwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  color: var(--white);
}

.hero-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-cta);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.hero-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.hero-card-float {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  backdrop-filter: blur(20px);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-card-float.top-left {
  top: -20px;
  left: -30px;
  animation-delay: 0s;
}

.hero-card-float.bottom-right {
  bottom: -20px;
  right: -30px;
  animation-delay: 2s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-card-float i {
  font-size: 1.2rem;
  color: var(--secondary);
}

/* =============================================
   PHONE MOCKUP CAROUSEL - FIXED
   ============================================= */
.phone-mockup {
  position: relative;
  width: 280px !important;
  height: 560px !important;
  margin: 0 auto;
  z-index: 10;
  transform: translateY(0);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  /* Prevent flex crushing */
  max-width: 100%;
}

.phone-mockup:hover {
  transform: translateY(-10px);
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 45px;
  box-shadow:
    0 0 0 4px #334155,
    0 0 0 8px #0f172a,
    0 30px 60px rgba(0, 0, 0, 0.6);
  padding: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Notch */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  z-index: 20;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  /* Ensure images stay inside */
  mask-image: radial-gradient(white, black);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.phone-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.phone-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  z-index: 1;
}

.phone-slide.active {
  opacity: 1;
  z-index: 5;
}

.phone-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  /* Override Bootstrap */
  object-fit: cover !important;
  object-position: top center;
  margin: 0 !important;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--white);
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 176, 122, 0.4);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* =============================================
   THEME CARDS (Catalog)
   ============================================= */
.catalog-section {
  padding: var(--section-padding);
}

.catalog-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--gray-100);
  color: var(--dark-600);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--gradient-cta);
  color: var(--white);
  border-color: transparent;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.theme-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(124, 58, 237, 0.15);
}

.theme-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  /* Portrait 4:5 (e.g. 1080x1350) */
  overflow: hidden;
  background: var(--gradient-card);
}

.theme-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.theme-card:hover .theme-card-image img {
  transform: scale(1.08);
}

.theme-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gradient-cta);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.theme-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.theme-card:hover .theme-card-overlay {
  opacity: 1;
}

.theme-card-overlay .btn {
  transform: translateY(20px);
  transition: var(--transition);
}

.theme-card:hover .theme-card-overlay .btn {
  transform: translateY(0);
}

.theme-card-body {
  padding: 24px;
}

.theme-card-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.theme-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.theme-card-desc {
  font-size: 0.9rem;
  color: var(--dark-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.theme-card-actions {
  display: flex;
  gap: 10px;
}

.theme-card-actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* Placeholder image styling */
.theme-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gradient-card);
  color: var(--primary);
}

.theme-placeholder i {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.theme-placeholder span {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Theme card link (entire card clickable) */
.theme-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.theme-card-link:hover {
  color: inherit;
}

/* Price tag on theme cards */
.theme-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.theme-card-price span {
  font-size: 0.8rem;
  color: var(--dark-600);
  font-weight: 500;
}

.theme-card-price strong {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Price tag on theme detail page */
.theme-detail-price-tag {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(236, 72, 153, 0.06) 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-detail-price-tag .price-label {
  font-size: 0.9rem;
  color: var(--dark-600);
}

.theme-detail-price-tag .price-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
}

/* =============================================
   PRICING SECTION
   ============================================= */
.pricing-section {
  padding: var(--section-padding);
  background: var(--gray-100);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1050px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition-slow);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
  border-color: var(--primary);
  background: var(--white);
}

.pricing-card.popular::before {
  content: 'TERPOPULER';
  position: absolute;
  top: 24px;
  right: -32px;
  background: var(--gradient-cta);
  color: var(--white);
  padding: 6px 40px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(45deg);
}

.pricing-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.pricing-card:nth-child(1) .pricing-card-icon {
  background: rgba(148, 163, 184, 0.15);
  color: var(--gray);
}

.pricing-card:nth-child(2) .pricing-card-icon {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
}

.pricing-card:nth-child(3) .pricing-card-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--secondary);
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--dark-600);
  margin-bottom: 24px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
}

.pricing-price .currency {
  font-size: 1.2rem;
  vertical-align: top;
  margin-right: 4px;
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 400;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--dark-600);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-feature-item:last-child {
  border-bottom: none;
}

.pricing-feature-item .check {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.pricing-feature-item .check.yes {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.pricing-feature-item .check.no {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.pricing-card .btn {
  width: 100%;
}

/* =============================================
   COMPARISON TABLE (Pricelist page)
   ============================================= */
.comparison-section {
  padding: var(--section-padding);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 48px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 700px;
}

.comparison-table thead th {
  padding: 24px 20px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--dark);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table thead th:first-child {
  text-align: left;
  background: var(--dark-800);
}

.comparison-table thead th.popular-col {
  background: var(--primary-dark);
  position: relative;
}

.comparison-table tbody td {
  padding: 16px 20px;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--dark-600);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--dark);
}

.comparison-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.03);
}

.comparison-table .check-icon {
  color: #22c55e;
  font-size: 1.1rem;
}

.comparison-table .cross-icon {
  color: #e2e8f0;
  font-size: 1.1rem;
}

.comparison-table tfoot td {
  padding: 24px 20px;
  background: var(--gray-100);
  text-align: center;
}

/* =============================================
   THEME DETAIL PAGE
   ============================================= */
.theme-detail {
  padding-top: 100px;
  padding-bottom: 80px;
}

.theme-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.theme-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gradient-card);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-detail-image img {
  width: 100%;
  height: auto;
}

.theme-detail-info {
  padding-top: 20px;
}

.theme-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-card);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.theme-detail-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 16px;
}

.theme-detail-desc {
  font-size: 1.05rem;
  color: var(--dark-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

.theme-detail-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   FEATURES ROW (Homepage)
   ============================================= */
.features-section {
  padding: var(--section-padding);
  background: var(--gray-100);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns on tablet for better symmetry (2x2) */
  }

  .features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    /* Keep 3 columns for steps */
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile */
  }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition-slow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--dark);
}

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

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-logo i {
  color: var(--secondary);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-desc {
  margin-top: 8px;
  font-size: 0.85rem !important;
  opacity: 0.7;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   SCROLL TO TOP FLOAT
   ============================================= */
.scroll-top-float {
  position: fixed;
  bottom: 100px;
  right: 33px;
  /* Centered with WA (28px + 5px) */
  left: auto;
  /* explicit override */
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.2rem;
  z-index: 9998;
  /* Just below WA button */
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  text-decoration: none;
}

.scroll-top-float.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-float:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
}

/* =============================================
   FLOATING WHATSAPP
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--secondary);
  /* Theme Gold Color */
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(201, 176, 122, 0.4);
  /* Gold shadow */
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(201, 176, 122, 0.5);
  color: var(--white);
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 176, 122, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(201, 176, 122, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(201, 176, 122, 0);
  }
}

/* Tooltip Animation Pulse */
@keyframes tooltip-pulse {

  0%,
  80% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(10px);
  }

  85%,
  95% {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }

  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(10px);
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: var(--dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  /* Periodically show "Butuh Bantuan?" every 8 seconds */
  animation: tooltip-pulse 12s infinite ease-in-out;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
  /* Override animation on hover to keep it visible */
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-50%) translateX(0) !important;
  animation: none;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   PAGE HEADER (For inner pages)
   ============================================= */
.page-header {
  background: var(--gradient-hero);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.page-header-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
}

/* =============================================
   CATALOG FILTER
   ============================================= */
.catalog-section {
  padding: 80px 0;
  background: var(--gray-100);
  min-height: 60vh;
}

/* FLOATING SEGMENTED CONTROL STYLE */
.catalog-filter {
  position: sticky;
  top: 100px;
  /* Increased gap from navbar (Desktop) */
  z-index: 99;

  /* Segmented Control Container Look */
  background: var(--white);
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  /* Soft floating shadow */
  border: 1px solid rgba(0, 0, 0, 0.02);

  display: flex;
  align-items: center;
  gap: 4px;
  /* Tighter gap for segmented feel */
  overflow-x: auto;

  /* Centering & Sizing */
  width: fit-content;
  max-width: 90%;
  margin: 0 auto 40px auto;

  /* Layout behavior */
  justify-content: flex-start;
  /* Always start from left for scrolling */
  flex-wrap: nowrap;
  /* Force single line */

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.catalog-filter::-webkit-scrollbar {
  display: none;
}

/* Button Styles - Segmented Control Items */
.filter-btn {
  white-space: nowrap;
  flex-shrink: 0;

  /* Default: Transparent/Text-only */
  background: transparent;
  color: var(--dark-600);
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  /* Pill shape matches container */
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  /* No shadow by default */
  font-family: var(--font-body);
}

.filter-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--primary);
  transform: none;
  /* Segmented controls usually don't jump */
  box-shadow: none;
}

.filter-btn.active {
  background: var(--primary);
  /* or Green #00a550 if requested like image */
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.25);
  transform: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .catalog-filter {
    top: 90px;
    /* Gap from navbar on mobile */
    max-width: 95%;
    margin-bottom: 30px;
  }
}

/* =============================================
   RESPONSIVE - TABLET
   ============================================= */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 380px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .theme-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Tablet Only: Hero Title Single Line */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero-title br {
    display: none !important;
  }

  .hero-title {
    font-size: 2.4rem !important;
    line-height: 1.2;
  }
}

/* =============================================
   RESPONSIVE - MOBILE
   ============================================= */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 1100;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--white) !important;
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }

  .nav-logo-img {
    height: 24px;
    /* Smaller logo on mobile - Adjusted to prevent collision */
    width: auto;
    object-fit: contain;
  }

  .nav-logo {
    max-width: 70%;
    /* Prevent collision with toggle button */
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-card-float {
    display: none;
  }

  .themes-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 cols on tablet */
    gap: 24px;
  }

  /* Show 9 items on tablet (override desktop hiding) */
  .theme-card:nth-child(9) {
    display: block !important;
  }
}

/* Custom Homepage Grid for Strict Item Counts */
.themes-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* Default Desktop: Hide 9th item (Show only 8) */
@media (min-width: 1025px) {
  .themes-grid-home .theme-card:nth-child(n+9) {
    display: none;
  }
}

/* Tablet Override */
@media (max-width: 1024px) {
  .themes-grid-home {
    grid-template-columns: repeat(3, 1fr);
    /* 3 cols tablet */
  }

  /* Ensure all items up to 9 are visible on tablet */
  .themes-grid-home .theme-card:nth-child(n+1) {
    display: block !important;
  }
}

/* Mobile Override */
@media (max-width: 600px) {
  .themes-grid-home {
    grid-template-columns: 1fr;
    /* 1 col mobile */
  }

  /* Show only 4 items on mobile */
  .themes-grid-home .theme-card:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 600px) {
  .themes-grid {
    grid-template-columns: 1fr;
    /* 1 col on mobile */
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .scroll-top-float {
    bottom: 86px;
    right: 25px;
    /* Centered with WA (20px + 5px) */
    left: auto;
    /* explicit override */
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .theme-detail-actions {
    flex-direction: column;
  }

  .catalog-filter {
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 4px; /* Balanced padding */
    margin-bottom: 32px;
    display: flex;
    align-items: center; /* Center buttons vertically */
  }

  .catalog-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 10px 18px; /* Balanced padding */
    font-size: 0.85rem;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Reset line height for better centering */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .pricing-card {
    padding: 28px 20px;
  }
}

/* =============================================
   MOBILE OVERLAY (when menu open)
   ============================================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =============================================
   CARD BUTTONS (Lihat Paket / Preview)
   ============================================= */
.theme-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.theme-card-buttons-row {
  display: flex;
  gap: 8px;
  height: 46px;
  /* Enforce strict height for the row */
}

.theme-card-buttons-row .btn-card {
  width: auto;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex !important;
  /* Force flex to center text vertically */
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  /* Horizontal padding only */
}

.btn-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  flex: 0 0 46px;
  height: 100%;
  /* Fill container height */
  padding: 0;
  background: var(--gray-100);
  color: var(--dark-600);
  font-size: 1.1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-card-icon:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-card {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn-card-primary {
  background: var(--gradient-cta);
  color: var(--white);
}

.btn-card-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-card-outline {
  background: transparent;
  color: var(--dark-600);
  border: 1.5px solid var(--gray-200);
}

.btn-card-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124, 58, 237, 0.04);
}

/* =============================================
   MODAL: Paket Harga Popup
   ============================================= */
/* =============================================
   MODAL: Premium Card Layout
   ============================================= */
/* =============================================
   MODAL: Explicit Scroll Container (Fail-Safe)
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Container: Let content flow naturally, but constrain width */
.modal-container {
  background: var(--white);
  width: 90%;
  max-width: 440px;
  /* Removed strict height/flex to avoid mobile bugs */
  position: relative;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  /* Safety cap */
}

@media (min-width: 768px) {
  .modal-container {
    max-width: 480px;
  }
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  font-size: 1.2rem;
  color: var(--dark-600);
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* 1. HEADER (Static Block) */
.modal-section-header {
  flex-shrink: 0;
  padding: 32px 32px 0 32px;
  background: var(--white);
  text-align: center;
  z-index: 10;
}

.modal-product-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--dark-600);
  margin-bottom: 24px;
  display: block;
}
.modal-tabs {
  display: flex;
  background: var(--gray-100);
  padding: 4px;
  border-radius: 50px;
  margin-bottom: 24px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  gap: 4px;
}

.modal-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.modal-tab {
  flex: 1;
  flex-shrink: 0;
  min-width: fit-content;
  white-space: nowrap;
  border: none;
  background: transparent;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-600);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-tab {
  position: relative;
}

.pop-indicator {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 6px;
  height: 6px;
  background: #f43f5e;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
}

.popular-ribbon {
  display: inline-flex;
  align-items: center;
  background: #fff1f2;
  color: #e11d48;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border: 1px solid #fecdd3;
}

.popular-ribbon-card {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-cta);
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.pricing-card.popular {
  border: 2px solid var(--secondary);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .pricing-card.popular {
    transform: none;
  }
}

/* WRAPPER: Simple block, toggled by JS */
.modal-tab-wrapper {
  display: none;
  flex-direction: column;
  /* Flex: 1 is optional here if parent is flex column, but crucial part is max-height on body */
  flex: 1;
  overflow: hidden;
}

/* 2. BODY (The Explicit Scroll Container) */
.modal-section-body {
  /* Crucial: Explicit Max Height for Scrolling */
  max-height: 50vh;
  overflow-y: auto;
  padding: 0 32px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  /* Prevent body scroll chain */
}

/* Taller scroll area on desktop */
@media (min-width: 768px) {
  .modal-section-body {
    max-height: 55vh;
  }
}

.modal-section-body::-webkit-scrollbar {
  width: 5px;
}

.modal-section-body::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 3px;
}

/* Package Title & Price Group */
.pkg-header-group {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--gray-200);
}

.pkg-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1;
}

.pkg-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.06);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
}

.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.pkg-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--dark-600);
  line-height: 1.5;
}

.pkg-feature-item i {
  color: var(--primary);
  /* Revert to primary/leaf color */
  margin-top: 4px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* 3. FOOTER (Static Block) */
.modal-section-footer {
  flex-shrink: 0;
  padding: 20px 32px 32px 32px;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  z-index: 10;
}

.btn-order-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #25D366;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-order-whatsapp:hover {
  background: #1ebc57;
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* =============================================
   IMAGE PREVIEW MODAL
   ============================================= */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  /* High z-index to be on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.image-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
  animation: zoomModal 0.3s ease-out;
}

@keyframes zoomModal {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10001;
}

.image-modal-close:hover,
.image-modal-close:focus {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

#modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  right: 0;
}

/* =============================================
   HIDE FLOAT BUTTONS ON MOBILE MENU 
   ============================================= */
body.menu-open .scroll-top-float,
body.menu-open .whatsapp-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
  transition: opacity 0.3s ease;
}

/* =============================================
   ADD ONS SECTION
   ============================================= */
.addons-section {
    padding: var(--section-padding);
    background: #f8fafc; /* Slight contrast from white */
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.addon-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.addon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.addon-icon {
    width: 48px;
    height: 48px;
    background: rgba(201, 176, 122, 0.15); /* Secondary light alpha */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.addon-card:hover .addon-icon {
    background: var(--gradient-gold);
    color: var(--white);
    transform: rotate(5deg);
}

.addon-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.addon-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-800);
    margin-bottom: 8px;
    line-height: 1.3;
}

.addon-desc {
    font-size: 0.9rem;
    color: var(--dark-600);
    margin-bottom: 20px;
    flex: 1; /* Pushes price to bottom */
}

.addon-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    padding-top: 16px;
    border-top: 1px dashed var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.addon-price::before {
    content: 'Harga:';
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

/* =============================================
   Accessibility - Visually Hidden (for screen readers)
   ============================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}