@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&family=Outfit:wght@300..800&display=swap');

/* ==========================================================================
   CLOUDSUD INTERACTIVE DEMOS SPECIFIC STYLESHEET
   ========================================================================== */

/* --- Header Back to Services Button --- */
.demo-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 50px !important;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast) !important;
}

.demo-back-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .demo-back-btn .back-text {
    display: none;
  }
  .demo-back-btn {
    padding: 0.4rem 0.65rem !important;
  }
}

/* --- Theme 1: Restaurant Vibe (Cozy & Warm) --- */
body.restaurant-theme {
  --bg-base: #faf7f2; /* warm ivory */
  --bg-surface: #ffffff;
  --bg-surface-elevated: rgba(255, 255, 255, 0.9);
  --bg-nav: rgba(250, 247, 242, 0.9);
  
  --primary: #8c2d19; /* warm terracotta/burgundy */
  --primary-glow: rgba(140, 45, 25, 0.08);
  --secondary: #d4a373; /* warm gold */
  --secondary-glow: rgba(212, 163, 115, 0.08);
  
  --text-primary: #2b2520; /* warm charcoal-brown */
  --text-secondary: #564c45;
  --text-muted: #8e837a;
  
  --border-color: rgba(86, 76, 69, 0.12);
  --border-hover: rgba(140, 45, 25, 0.35);
  
  --font-family-body: 'Plus Jakarta Sans', sans-serif;
  --font-family-title: 'Playfair Display', serif;
}

/* Theme 1 - Restaurant Custom Styles */
body.restaurant-theme .menu-item-card {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(43, 37, 32, 0.04);
  border: 1px solid rgba(86, 76, 69, 0.1);
}
body.restaurant-theme .menu-item-card:hover {
  box-shadow: 0 12px 28px rgba(140, 45, 25, 0.08);
  border-color: rgba(140, 45, 25, 0.25);
}
body.restaurant-theme .booking-card {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(43, 37, 32, 0.05);
  border: 1px solid rgba(86, 76, 69, 0.15);
}
body.restaurant-theme .story-card {
  border-radius: 16px;
  border: 1px solid rgba(86, 76, 69, 0.12);
  box-shadow: 0 8px 24px rgba(43, 37, 32, 0.03);
}
body.restaurant-theme .btn-primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-family: var(--font-family-title);
  font-weight: 600;
  border: 1px solid var(--primary) !important;
}
body.restaurant-theme .btn-primary:hover {
  background: #732211 !important;
  border-color: #732211 !important;
}
body.restaurant-theme .menu-tab-btn {
  border-radius: 6px;
}
body.restaurant-theme input,
body.restaurant-theme select,
body.restaurant-theme textarea {
  border-radius: 6px !important;
  border: 1px solid rgba(86, 76, 69, 0.2) !important;
  background-color: #faf7f2 !important;
  color: var(--text-primary) !important;
}
body.restaurant-theme input:focus,
body.restaurant-theme select:focus,
body.restaurant-theme textarea:focus {
  border-color: var(--primary) !important;
  outline: none !important;
}

/* --- Theme 2: Retail Florist Vibe (Fresh & Botanical) --- */
body.retail-theme {
  --bg-base: #f3f6f3; /* soft sage-cream */
  --bg-surface: #ffffff;
  --bg-surface-elevated: rgba(255, 255, 255, 0.9);
  --bg-nav: rgba(243, 246, 243, 0.9);
  
  --primary: #3d5a45; /* deep forest green */
  --primary-glow: rgba(61, 90, 69, 0.08);
  --secondary: #8da491; /* soft sage */
  --secondary-glow: rgba(141, 164, 145, 0.08);
  
  --text-primary: #1c271e; /* dark green-black */
  --text-secondary: #404f43;
  --text-muted: #758679;
  
  --border-color: rgba(64, 79, 67, 0.12);
  --border-hover: rgba(61, 90, 69, 0.3);
  
  --font-family-body: 'Montserrat', sans-serif;
  --font-family-title: 'Playfair Display', serif;
}

/* Theme 2 - Florist Custom Styles */
body.retail-theme .shop-item-card {
  border-radius: 24px 4px 24px 4px;
  border: 1px solid rgba(61, 90, 69, 0.12);
  box-shadow: 0 6px 20px rgba(61, 90, 69, 0.04);
}
body.retail-theme .shop-item-card:hover {
  border-color: rgba(61, 90, 69, 0.35);
  box-shadow: 0 12px 28px rgba(61, 90, 69, 0.08);
}
body.retail-theme .shop-item-img-box {
  border-radius: 22px 3px 0 0;
}
body.retail-theme .shop-item-btn {
  border-radius: 30px;
  border-color: var(--primary);
  color: var(--primary);
}
body.retail-theme .shop-item-btn:hover {
  background: var(--primary);
  color: #ffffff;
}
body.retail-theme .cart-icon-btn {
  border-radius: 30px;
}
body.retail-theme .story-card {
  border-radius: 32px 6px 32px 6px;
  border: 1px solid rgba(61, 90, 69, 0.12);
  box-shadow: 0 8px 24px rgba(61, 90, 69, 0.03);
}
body.retail-theme .btn-primary {
  border-radius: 30px !important;
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  color: #ffffff !important;
}
body.retail-theme .btn-primary:hover {
  background: #2b3f30 !important;
  border-color: #2b3f30 !important;
}
body.retail-theme input,
body.retail-theme select,
body.retail-theme textarea {
  border-radius: 12px !important;
  border: 1px solid rgba(61, 90, 69, 0.18) !important;
  color: var(--text-primary) !important;
}
body.retail-theme input:focus,
body.retail-theme select:focus,
body.retail-theme textarea:focus {
  border-color: var(--primary) !important;
  outline: none !important;
}

/* --- Theme 3: Freelance Editorial Vibe (Dark & Bold) --- */
body.freelance-theme {
  --bg-base: #0a0b0d; /* deep black */
  --bg-surface: #14161a;
  --bg-surface-elevated: rgba(20, 22, 26, 0.95);
  --bg-nav: rgba(10, 11, 13, 0.9);
  
  --primary: #d97706; /* amber orange */
  --primary-glow: rgba(217, 119, 6, 0.15);
  --secondary: #6366f1; /* indigo */
  --secondary-glow: rgba(99, 102, 241, 0.15);
  
  --text-primary: #f9fafb; /* off white */
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(217, 119, 6, 0.4);
  
  --font-family-body: 'Plus Jakarta Sans', sans-serif;
  --font-family-title: 'Space Grotesk', sans-serif;
}

/* Theme 3 - Freelance Custom Styles */
body.freelance-theme .calc-box,
body.freelance-theme .story-card,
body.freelance-theme .calc-summary-panel {
  border-radius: 4px;
  border: 2px solid var(--text-primary);
  box-shadow: 6px 6px 0px var(--primary);
  background: #121318;
}
body.freelance-theme .calc-option-card {
  border-radius: 4px;
  border: 2px solid var(--border-color);
  box-shadow: none;
  transition: all 0.15s ease;
}
body.freelance-theme .calc-option-card:hover {
  border-color: var(--primary);
  background: rgba(217, 119, 6, 0.05);
}
body.freelance-theme .calc-option-card.active {
  border-color: var(--primary);
  background: rgba(217, 119, 6, 0.1);
  box-shadow: 3px 3px 0px var(--primary);
}
body.freelance-theme .btn-primary {
  border-radius: 4px !important;
  border: 2px solid var(--text-primary) !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 4px 4px 0px #ffffff !important;
  font-weight: 700;
}
body.freelance-theme .btn-primary:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px #ffffff !important;
}
body.freelance-theme .btn-secondary,
body.freelance-theme .demo-back-btn {
  border-radius: 4px !important;
  border: 2px solid var(--text-primary) !important;
  background: #14161a !important;
  color: var(--text-primary) !important;
  box-shadow: 4px 4px 0px var(--primary) !important;
}
body.freelance-theme .btn-secondary:hover,
body.freelance-theme .demo-back-btn:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px var(--primary) !important;
  background: #14161a !important;
  color: var(--primary) !important;
}
body.freelance-theme input,
body.freelance-theme select,
body.freelance-theme textarea {
  border-radius: 4px !important;
  border: 2px solid var(--border-color) !important;
  background: #08090a !important;
  color: #ffffff !important;
}
body.freelance-theme input:focus,
body.freelance-theme select:focus,
body.freelance-theme textarea:focus {
  border-color: var(--primary) !important;
  outline: none !important;
}
body.freelance-theme .calc-checkbox {
  border-radius: 4px;
}

/* --- Theme 4: Profile Portfolio Vibe (Clean & Modern Outfit) --- */
body.profile-theme {
  --bg-base: #f5f5f7; /* stone */
  --bg-surface: #ffffff;
  --bg-surface-elevated: rgba(255, 255, 255, 0.9);
  --bg-nav: rgba(245, 245, 247, 0.9);
  
  --primary: #4f46e5; /* modern blue-indigo */
  --primary-glow: rgba(79, 70, 229, 0.08);
  --secondary: #06b6d4; /* cyan */
  --secondary-glow: rgba(6, 182, 212, 0.08);
  
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --border-color: rgba(31, 41, 55, 0.08);
  --border-hover: rgba(79, 70, 229, 0.3);
  
  --font-family-body: 'Plus Jakarta Sans', sans-serif;
  --font-family-title: 'Outfit', sans-serif;
}

/* Theme 4 - Profile Custom Styles */
body.profile-theme .profile-card,
body.profile-theme .story-card,
body.profile-theme .portfolio-card {
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -5px rgba(31, 41, 55, 0.05);
}
body.profile-theme .profile-card {
  padding: 3.5rem 2.5rem;
}
body.profile-theme .portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.2);
}
body.profile-theme .portfolio-img-box {
  border-radius: 16px 16px 0 0;
}
body.profile-theme .portfolio-tag {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
}
body.profile-theme .btn-primary {
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2) !important;
}
body.profile-theme .btn-primary:hover {
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.35) !important;
}
body.profile-theme .btn-secondary,
body.profile-theme .demo-back-btn {
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(31, 41, 55, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
body.profile-theme .btn-secondary:hover,
body.profile-theme .demo-back-btn:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1) !important;
}
body.profile-theme input,
body.profile-theme select,
body.profile-theme textarea {
  border-radius: 10px !important;
  border: 1px solid rgba(31, 41, 55, 0.1) !important;
  background: rgba(255, 255, 255, 0.65) !important;
  color: var(--text-primary) !important;
}
body.profile-theme input:focus,
body.profile-theme select:focus,
body.profile-theme textarea:focus {
  border-color: var(--primary) !important;
  background: #ffffff !important;
  outline: none !important;
}
body.profile-theme .menu-tab-btn {
  border-radius: 10px;
}

/* --- Demo Hero & Layout --- */
.demo-hero {
  padding: 3rem 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.demo-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Interactive Elements & Modals --- */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.demo-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-content {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: var(--glass-border-hover);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.demo-modal.active .demo-modal-content {
  transform: scale(1);
}

.demo-modal-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.demo-modal-icon svg {
  width: 32px;
  height: 32px;
}

.demo-modal-title {
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.demo-modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --- Demo Page 1: Restaurant Menu & Booking --- */
.menu-section {
  margin-bottom: 4rem;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.menu-tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.menu-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.menu-item-card {
  background: var(--bg-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: var(--glass-border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.menu-item-img-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}

.menu-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.menu-item-card:hover .menu-item-img {
  transform: scale(1.04);
}

.menu-item-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.menu-item-title {
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.menu-item-price {
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.booking-card {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: var(--glass-border);
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.booking-card-title {
  font-family: var(--font-family-title);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* --- Demo Page 2: Retail Shop & Cart Drawer --- */
.shop-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.cart-icon-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family-title);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.cart-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.cart-counter {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  font-weight: 700;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.shop-item-card {
  background: var(--bg-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: var(--glass-border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

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

.shop-item-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fbfbfd;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.shop-item-card:hover .shop-item-img {
  transform: scale(1.03);
}

.shop-item-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.shop-item-title {
  font-family: var(--font-family-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.shop-item-price {
  font-family: var(--font-family-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.shop-item-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.shop-item-btn:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Slide-out Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: var(--bg-surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  border-left: 1px solid var(--border-color);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  font-family: var(--font-family-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.cart-drawer-close:hover {
  background: var(--bg-base);
}

.cart-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 4rem;
  font-size: 0.9rem;
}

.cart-drawer-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.cart-drawer-img-box {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.cart-drawer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-drawer-info {
  flex-grow: 1;
}

.cart-drawer-item-title {
  font-family: var(--font-family-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.cart-drawer-item-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.cart-drawer-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-base);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.cart-qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cart-qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-base);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.cart-total-val {
  color: var(--primary);
}

.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Demo Page 3: Freelance Rates Calculator --- */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.calc-box {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: var(--glass-border);
}

.calc-box-title {
  font-family: var(--font-family-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.calc-options-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.calc-option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-option-card:hover {
  border-color: var(--primary-glow);
  background: var(--grad-card-hover);
}

.calc-option-card.active {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.calc-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.calc-option-card.active .calc-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.calc-checkbox svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
}

.calc-option-card.active .calc-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.calc-option-info {
  flex-grow: 1;
}

.calc-option-title {
  font-family: var(--font-family-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.calc-option-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.calc-option-price {
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.calc-summary-panel {
  background: var(--bg-surface-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  padding: 2.5rem;
  border: var(--glass-border);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.calc-total-box {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.calc-total-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.calc-total-amount {
  font-family: var(--font-family-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* --- Demo Page 4: Profile & Filter Grid --- */
.profile-wrapper {
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.profile-card {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  border: var(--glass-border);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.profile-card-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: var(--primary-glow);
  filter: blur(40px);
  border-radius: 50%;
  pointer-events: none;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  background: #f0f0f0;
}

.profile-name {
  font-family: var(--font-family-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.profile-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.profile-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.profile-social-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-base);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.profile-social-item a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.profile-social-item a svg {
  width: 18px;
  height: 18px;
}

.portfolio-filter-section {
  margin-bottom: 4rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: var(--glass-border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
}

.portfolio-card.hidden {
  opacity: 0;
  transform: scale(0.9);
  position: absolute;
  pointer-events: none;
  display: none;
}

.portfolio-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fbfbfd;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.04);
}

.portfolio-info {
  padding: 1rem;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.portfolio-title {
  font-family: var(--font-family-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 768px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .calc-summary-panel {
    position: static;
  }
  
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

/* --- Story & Bio Sections --- */
.story-section {
  padding: 2.5rem 0;
  margin-bottom: 1rem;
}

.story-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.story-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: var(--glass-border);
  position: relative;
  overflow: hidden;
}

.story-title {
  font-family: var(--font-family-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.story-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.story-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.story-text p {
  margin-bottom: 1rem;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Mock email links inside demo footers --- */
.email-mock-link {
  color: var(--primary) !important;
  text-decoration: underline !important;
  transition: opacity var(--transition-fast) !important;
  font-weight: 600;
}
.email-mock-link:hover {
  opacity: 0.8 !important;
}

