/* ── Global Hidden Elements (Enabled in Media Queries) ────────── */
.cart-modal,
.floating-cart-btn,
.floating-contact-bar,
.op-backdrop,
.op-close-btn {
  display: none;
}

/* ================================================================
   calculator-new.css - VioParty Pricing Calculator
   Clean rewrite. 3-column layout: services | options | cart
   ================================================================ */

/* ── Wrapper: 3 fixed-width columns, content-hugging ────────── */
.calc-wrapper {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

/* ── Col 1: Service list (Standalone Card) ───────────────────── */
.services-area {
  width: 620px;
  flex-shrink: 0;
  border: 1px solid rgba(108, 92, 231, 0.1);
  border-radius: 24px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); /* Softer, airy purple gradient */
  box-shadow: 0 10px 40px rgba(108, 92, 231, 0.06);
  display: flex;
  flex-direction: column;
}

/* Sub-columns within services area */
.services-content {
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.category-group {
  border-bottom: none; /* Removed dividers */
}
.category-group:last-child {
  border-bottom: none;
}

.category-header {
  padding: 24px 20px 8px 20px; /* More breathing room */
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #6d6d8d; /* Muted gray-purple for light background */
  background: transparent;
  backdrop-filter: none;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-header::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--color-primary, #6c5ce7); /* Primary color indicator back for contrast */
  border-radius: 10px;
  opacity: 0.6;
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 20px 20px 20px;
  background: transparent;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px; /* Reduced vertical, increased horizontal */
  cursor: pointer;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.service-item:hover {
  background: #fff;
  border-color: var(--color-primary, #6c5ce7);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.08);
  z-index: 1;
}

/* Highlighted when selected in col2 */
.service-item.is-selected {
  background: #fff; /* Keep white background as requested */
  border-color: var(--color-primary, #6c5ce7);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.06);
}
.service-item.is-selected::after {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: linear-gradient(to bottom, #6c5ce7, #a29bfe);
  border-radius: 0 4px 4px 0;
}

.svc-emoji {
  display: none;
}
.svc-info {
  flex: 1;
  min-width: 0;
}
.svc-name {
  font-size: 0.95rem; /* Increased from 0.83rem */
  font-weight: 700;
  color: var(--color-text-heading, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.service-item.in-cart .svc-name {
  color: var(--color-primary, #6c5ce7);
}

.svc-price-hint {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b7280;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
  transition: all 0.2s;
}
.service-item.in-cart .svc-price-hint {
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary, #6c5ce7);
}

/* Checkmark circle */
/* ── Service toggle (clean standard) ───────────────────────────── */
.svc-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  cursor: pointer;
}

.svc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.svc-toggle .track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 20px;
  transition: background 0.25s ease;
}

.svc-toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Checked state: green track, knob slides right */
.svc-toggle input:checked ~ .track {
  background: #16a34a;
}
.svc-toggle input:checked ~ .knob {
  transform: translateX(18px);
}

/* ── Col 2: Options panel (Detail View Style) ───────────────── */
.options-panel {
  width: 0;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    width 0.25s ease,
    opacity 0.25s ease;
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, #FFFFFF 30%);
  border: 1px solid #edf2f7;
  border-radius: 20px;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.options-panel.is-open {
  width: 250px; /* Increased from 240px for more room */
  opacity: 1;
  border-color: rgba(108, 92, 231, 0.2);
  margin-left: 10px;
}

.op-header {
  padding: 10px 16px;
  background: transparent;
  border-bottom: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.op-header-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.op-close-btn {
  display: none; /* Only show on mobile bottom sheet */
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  color: #64748b;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.op-backdrop {
  display: none;
}
.op-sub-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary, #6b7280);
  margin-bottom: 4px;
}
.op-title {
  font-size: 1.15rem; /* Increased from 0.95rem */
  font-weight: 800;
  color: var(--color-text-heading, #111);
}

.op-body {
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Option cards - made more 'descriptive' */
.opt-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #fdfdfd;
  user-select: none;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.opt-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(108, 92, 231, 0.06);
}
.opt-card.is-selected {
  border-color: var(--color-primary, #6c5ce7);
  background: #fff;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.1);
  transform: translateY(-1px);
}

@keyframes dropInFade {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.opt-card.drop-in {
  opacity: 0;
  animation: dropInFade 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* UV Checkbox Style for Options */
.uv-checkbox-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transition:
    border-color 0.3s ease,
    border-radius 0.3s ease,
    background-color 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uv-checkmark {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.opt-card.is-selected .uv-checkbox-icon {
  border-color: #6c5ce7;
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  background-color: #6c5ce7;
}

.opt-card.is-selected .uv-checkmark {
  stroke-dashoffset: 0;
}

.opt-card.is-selected .opt-label {
  color: #6c5ce7;
}

.opt-body {
  flex: 1;
  min-width: 0;
}
.opt-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-heading, #111);
  transition: color 0.3s ease;
}
.opt-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary, #6c5ce7);
  margin-top: 2px;
}

/* Hour stepper */
.opt-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.opt-hour-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border, #e5e7eb);
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--color-text-heading, #111);
  transition:
    border-color 0.15s,
    color 0.15s;
}
.opt-hour-btn:hover {
  border-color: var(--color-primary, #6c5ce7);
  color: var(--color-primary, #6c5ce7);
}
.opt-hour-val {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

/* Contact note */
.op-contact-note {
  margin: 12px 16px;
  padding: 10px 13px;
  border-radius: 0px;
  background: #f5f3ff;
  border-left: 3px solid var(--color-primary, #6c5ce7);
  font-size: 0.8rem;
  color: var(--color-text-secondary, #6b7280);
  line-height: 1.5;
}

/* Combo hint in col2 */
.op-combo {
  margin: 8px 16px 0;
  padding: 8px 12px;
  border-radius: 0px;
  background: #fffbea;
  border: 1px solid #fde68a;
  font-size: 0.76rem;
  color: #78350f;
  line-height: 1.4;
}

/* ── Col 3: Cart (The Hero Panel) ───────────────────────────── */
.cart-sidebar {
  border: 1px solid #eef2ff;
  border-radius: 20px;
  background: #fff;
  width: 380px;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.cart-box {
  padding: 0;
}

.cart-header-area {
  padding: 15px 18px 8px 18px; /* Adjusted padding for alignment */
  background: transparent;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #edf2f7; /* Underline effect */
  margin-bottom: 5px;
}
.cart-heading {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-heading, #111);
  letter-spacing: -0.01em;
}
.cart-heading span {
  color: var(--color-text-secondary, #64748b);
  font-weight: 500;
  font-size: 0.9rem;
}

.cart-body-inner {
  padding: 20px 24px 24px;
}

.d-cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  max-height: 280px;
  overflow-y: auto;
}

.d-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px 0;
  color: var(--color-text-secondary, #6b7280);
  font-size: 0.8rem;
  text-align: center;
}

.d-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fdfdff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.d-cart-item:hover {
  background: #f8faff;
  border-color: #6c5ce7;
}

.d-item-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111;
}
.d-item-detail {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 0px;
}
.d-item-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6c5ce7;
  margin-left: auto;
}

.cart-remove-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
}
.cart-remove-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: #fff1f2;
}

.d-divider {
  height: 1px;
  background: var(--color-border, #e5e7eb);
  margin: 12px 0;
}

/* Voucher */
.summary-discounts {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.voucher-box {
  display: flex;
  gap: 6px;
}
.voucher-input {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.voucher-input:focus {
  border-color: var(--color-primary, #6c5ce7);
}
.voucher-btn {
  flex-shrink: 0;
  padding: 7px 11px;
  font-size: 0.76rem;
}
.voucher-msg {
  font-size: 0.72rem;
  color: transparent;
  min-height: 1em;
}
.voucher-msg.error {
  color: #dc2626;
}
.voucher-msg.success {
  color: #16a34a;
}

@keyframes slideReveal {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fixed-combo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 0px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  font-size: 0.76rem;
  opacity: 0;
  animation: slideReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.fixed-combo-row.disabled {
  display: none;
}
.fixed-combo-label {
  color: #166534;
  font-weight: 700;
}
.fixed-combo-value {
  font-weight: 800;
}

/* --- Combo Hint Banner (Calculator Header) --- */
.combo-banner-hint {
  animation: fadeIn 0.8s ease-out both;
}
.combo-text-link {
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}
.combo-text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.combo-text-link:hover {
  color: var(--color-primary-dark);
}
.combo-text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.combo-banner-hint .icon {
  font-size: 1.1rem;
  animation: pulseEmoji 2s infinite ease-in-out;
}

@keyframes pulseEmoji {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* --- Combo Grid & Pricing Cards (Shared) --- */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding-top: 1rem;
  align-items: stretch;
}

.pricing-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, #FFFFFF 25%);
  box-shadow: 0px 47px 47px rgba(0, 0, 0, 0.02), 0px 12px 26px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.pricing-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.pricing-card .form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card .banner {
  font-size: 2.5rem;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.pricing-card .title {
  font-weight: 800;
  font-size: 1.25rem;
  text-align: center;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  padding: 0 1rem;
  display: block;
}

.pricing-card .description {
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
  color: var(--color-text-secondary);
  padding: 0 1.5rem;
  margin-bottom: 1.25rem;
  min-height: 3rem;
}

.pricing-card .combo-rule {
  margin: 0 1.25rem 1.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--color-primary-soft);
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.pricing-card .combo-rule__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #059669; /* Emeral 600 */
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card .combo-rule__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.pricing-card .benefits {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
}

.pricing-card .benefits-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-card .benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card .benefits ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

.pricing-card .benefits ul li span:first-child {
  width: 20px;
  height: 20px;
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card .benefits ul li span:first-child::before {
  content: "✓";
  font-weight: 900;
}

.pricing-card .modal--footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.02);
}

.pricing-card .price-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pricing-card .price-original {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.pricing-card .price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-primary);
  line-height: 1;
}

.pricing-card .upgrade-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--color-cta);
  border-radius: 100px;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.pricing-card .upgrade-btn:hover {
  background: var(--color-cta-dark);
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 71, 87, 0.2);
}

@media (max-width: 480px) {
  .pricing-card .modal--footer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
  .pricing-card .upgrade-btn {
    justify-content: center;
  }
}

/* Total */
.d-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.d-total-label {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}
.d-total-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #6c5ce7;
  font-family: "Josefin Sans", sans-serif;
}

.d-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.d-note {
  font-size: 0.7rem;
  color: var(--color-text-secondary, #6b7280);
  margin-top: 11px;
  line-height: 1.5;
  text-align: center;
}

/* ── Animated Copy Button Style (Expansion Logic) ────────────────── */
.btn-copy-animated {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.08); 
  color: #15803d;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  font-size: 0.85rem;
  width: 100%;
  height: 3.2em;
  padding: 0.35em;
  padding-left: 1.25em;
  padding-right: 3.5em; /* Space for icon-box */
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  margin-top: 8px;
  text-decoration: none;
}

.btn-copy-animated .icon-box {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.6em;
  width: 2.6em;
  border-radius: 11px;
  box-shadow: 0.1em 0.1em 0.6em rgba(34, 197, 94, 0.2);
  right: 0.3em;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-copy-animated:hover .icon-box {
  width: calc(100% - 0.6em);
}

.btn-copy-animated .icon-box svg {
  width: 1.2em;
  height: 1.2em;
  transition: transform 0.3s;
  color: #15803d;
}

.btn-copy-animated:hover .icon-box svg {
  transform: scale(1.1);
}

.btn-copy-animated:active .icon-box {
  transform: scale(0.95);
}

.btn-copy-animated:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}

@keyframes press {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes bounceSheet {
  50% {
    transform: rotate(10deg) translate(8px, -15px) scale(1.1);
  }
  to {
    transform: rotate(20deg) translate(20px, -30px) scale(0.8);
    opacity: 0;
  }
}

/* ── Mobile cart ─────────────────────────────────────────────── */
.mobile-cart-inline {
  display: none;
  margin-top: 1.25rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.mi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--color-primary, #6c5ce7);
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.mi-label {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.85;
}
.mi-total {
  font-size: 1.05rem;
  font-weight: 800;
}
.mi-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}
.mi-arrow {
  transition: transform 0.3s;
}
.mobile-cart-inline.open .mi-arrow {
  transform: rotate(180deg);
}
.mi-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-cart-inline.open .mi-expand {
  max-height: 700px;
}
.mi-expand-inner {
  padding: 14px 18px;
}
.mi-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.mi-item:last-child {
  border-bottom: none;
}
.mi-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}
.mi-item-detail {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.4;
}
.mi-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}
.m-empty {
  padding: 40px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.m-empty::before {
  content: "🛒";
  font-size: 2rem;
  opacity: 0.5;
}
.mi-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-heading, #111);
}
.mi-item-detail {
  font-size: 0.72rem;
  color: var(--color-text-secondary, #6b7280);
}
.mi-item-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary, #6c5ce7);
  white-space: nowrap;
}
.m-empty {
  font-size: 0.82rem;
  color: var(--color-text-secondary, #6b7280);
  padding: 10px 0;
}
.mi-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}
.mi-note {
  font-size: 0.72rem;
  color: var(--color-text-secondary, #6b7280);
  margin-top: 10px;
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .calc-wrapper {
    grid-template-columns: 1fr 270px;
  }
  .services-area {
    width: 220px;
  }
  .options-panel.is-open {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .calc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .services-area {
    width: 100%;
    max-height: none;
    overflow: visible;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #eef2ff;
    border-radius: 24px;
    padding: 10px 15px 20px 15px;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.04);
  }
  .services-content {
    padding: 0;
  }
  .category-header {
    padding: 20px 0 10px 0;
    font-size: 0.9rem;
    color: #475569;
    opacity: 1;
  }
  .category-header::before {
    background: var(--color-primary, #6c5ce7);
    opacity: 0.6;
  }
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }
  .service-item {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: 100%;
    min-height: 100px;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .service-item.is-selected {
    background: #fff;
    border-color: var(--color-primary, #6c5ce7);
    border-width: 1.5px;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15);
    transform: translateY(-2px);
    z-index: 2;
  }
  .svc-info {
    width: 100%;
  }
  .svc-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.88rem;
    line-height: 1.45; /* Increased for Vietnamese diacritics */
    padding-top: 3px;
    padding-bottom: 2px;
  }
  .svc-toggle {
    align-self: flex-end;
    margin-top: auto;
  }

  /* Backdrop Overlay */
  .op-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .op-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Bottom Sheet Overlay */
  .options-panel {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    margin: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    border-radius: 24px 24px 0 0;
    border-top: 2px solid #eef2ff;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
    background: #fff;
    z-index: 1001;
    max-height: 85vh;
    transform: translateY(100%);
    opacity: 1 !important; /* Managed by transform */
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .options-panel.is-open {
    transform: translateY(0);
  }
  .op-close-btn {
    display: flex;
  } /* Reveal close button */

  .cart-sidebar {
    display: none;
  }

  /* Mobile Cart Modal & FAB */
  .mobile-cart-inline,
  .floating-contact-bar {
    display: none !important;
  }
  
  .floating-contact-bar {
    display: flex !important; /* Restore for mobile */
  }

  .floating-cart-btn {
    display: flex;
    position: fixed;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    z-index: 1800;
    min-height: 54px;
    max-width: calc(100vw - 28px);
    background: #fff;
    color: var(--color-text-primary, #1f2937);
    border: 1px solid rgba(108, 92, 231, 0.22);
    border-radius: 999px;
    padding: 7px 8px 7px 7px;
    box-shadow:
      0 16px 40px rgba(15, 23, 42, 0.18),
      0 8px 18px rgba(108, 92, 231, 0.18);
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 800;
    line-height: 1;
    transition:
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.25s ease,
      bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.2s ease;
    transform: translateY(200%);
    opacity: 0;
    pointer-events: none;
  }

  .floating-cart-btn.has-items {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .floating-cart-btn.has-items:hover {
    box-shadow:
      0 18px 44px rgba(15, 23, 42, 0.2),
      0 10px 22px rgba(108, 92, 231, 0.22);
  }

  .floating-cart-btn:active {
    transform: translateY(0) scale(0.96);
  }

  .m-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: var(--color-primary, #6c5ce7);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  }

  .m-cart-label {
    color: var(--color-text-secondary, #64748b);
    font-size: 0.72rem;
    line-height: 1.05;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: normal;
  }

  .m-cart-total {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--color-primary-soft, #f4f1ff);
    color: var(--color-primary, #6c5ce7);
    font-size: 0.95rem;
    font-weight: 900;
    white-space: nowrap;
  }

  /* Modal */
  .cart-modal {
    display: block; /* Override global hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .cart-modal.open {
    visibility: visible;
  }
  .cart-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .cart-modal.open .cart-modal__overlay {
    opacity: 1;
  }
  .cart-modal__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .cart-modal.open .cart-modal__content {
    transform: translateY(0);
  }
  .cart-modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .cart-modal__header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: #1a1c1c;
  }
  .cart-modal__close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .cart-modal__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
  }
  .cart-modal__divider {
    height: 1px;
    background: #f1f5f9;
    margin: 20px 0;
  }
  .cart-modal__total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 18px 20px;
    background: #f8faff;
    border: 1px solid #eef2ff;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  }
  .cart-modal__total-row span:first-child {
    font-weight: 700;
    color: #475569;
    font-size: 0.95rem;
  }
  .cart-modal__total-row .mi-total {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    text-shadow: 0 1px 2px rgba(108, 92, 231, 0.1);
  }
  .cart-modal__footer {
    padding: 20px 24px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #f1f5f9;
  }
  .cart-modal__footer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body,
  html {
    padding-bottom: 0px;
  }
}

/* ── Animated CTA Button (Expansion) ────────────────────────── */
.btn-cta-animated {
  background: var(--color-primary, #6c5ce7);
  color: white;
  font-family: inherit;
  padding: 0.35em;
  padding-left: 1.25em;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 1.6em -0.6em var(--color-primary-dark, #4b1aad);
  overflow: hidden;
  position: relative;
  height: 3.2em;
  padding-right: 3.5em;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin-top: 5px;
  text-decoration: none;
  justify-content: flex-start;
}

.btn-cta-animated .icon-box {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.6em;
  width: 2.6em;
  border-radius: 11px;
  box-shadow: 0.1em 0.1em 0.6em 0.2em rgba(0, 0, 0, 0.1);
  right: 0.3em;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cta-animated:hover .icon-box {
  width: calc(100% - 0.6em);
}

.btn-cta-animated .icon-box svg {
  width: 1.3em;
  height: 1.3em;
  transition: transform 0.3s;
  color: var(--color-primary, #6c5ce7);
}

.btn-cta-animated:hover .icon-box svg {
  transform: translateX(0.1em);
}

.btn-cta-animated:active .icon-box {
  transform: scale(0.95);
}
