/* ============================================
   BACKGROUND EFFECTS v2 — Panel & Canvas
   ============================================ */

/* ─── HIDDEN PANEL ─────────────────────────────── */
#bg-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% - 20px));
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: auto;
  max-width: 520px;
}

#bg-panel.open {
  transform: translateX(-50%) translateY(0);
}

#bg-panel-handle {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.handle-bar {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: background 0.3s ease, width 0.3s ease;
}

#bg-panel:hover .handle-bar,
#bg-panel.open .handle-bar {
  background: rgba(255, 255, 255, 0.35);
  width: 40px;
}

#bg-panel-content {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 12px 20px 20px;
}

#bg-panel-label {
  font-family: monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  margin-bottom: 12px;
}

#bg-panel-options {
  display: flex;
  gap: 6px;
}

/* ─── OPTION BUTTONS ───────────────────────────── */
.bg-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  min-width: 64px;
  color: inherit;
  font: inherit;
}

.bg-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-option.active {
  background: rgba(140, 198, 63, 0.08);
  border-color: rgba(140, 198, 63, 0.25);
}

.bg-option-icon {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
  line-height: 1;
  height: 20px;
  display: flex;
  align-items: center;
}

.bg-option.active .bg-option-icon {
  color: #8CC63F;
}

.bg-option-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.bg-option.active .bg-option-name {
  color: rgba(255, 255, 255, 0.65);
}

/* ─── GLASS ROW ────────────────────────────────── */
#bg-panel-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 12px 0 10px;
}

#bg-panel-label-glass {
  font-family: monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  margin-bottom: 8px;
}

#bg-glass-options {
  display: flex;
  gap: 4px;
}

.bg-glass-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  flex: 1;
  color: inherit;
  font: inherit;
}

.bg-glass-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-glass-btn.active {
  background: rgba(140, 198, 63, 0.08);
  border-color: rgba(140, 198, 63, 0.25);
}

.bg-glass-bar {
  display: block;
  width: 20px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.bg-glass-btn.active .bg-glass-bar {
  background: rgba(140, 198, 63, 0.7);
}

.bg-glass-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.bg-glass-btn.active .bg-glass-name {
  color: rgba(255, 255, 255, 0.65);
}

/* ─── GLASS EFFECT ON CONTENT ─────────────────── */
:root {
  --ldl-glass-bg: rgba(10, 10, 10, 1);
  --ldl-glass-card: rgba(10, 10, 10, 0.9);
  --ldl-glass-blur: 0px;
}

/* Only apply glass when NOT solid */
body:not(.glass-solid) section,
body:not(.glass-solid) .section-container {
  background: var(--ldl-glass-bg) !important;
  backdrop-filter: blur(var(--ldl-glass-blur));
  -webkit-backdrop-filter: blur(var(--ldl-glass-blur));
}

body:not(.glass-solid) .glass-card,
body:not(.glass-solid) .philosophy-card,
body:not(.glass-solid) .offer-card,
body:not(.glass-solid) .step-card,
body:not(.glass-solid) .case-study-card,
body:not(.glass-solid) .comparison-table,
body:not(.glass-solid) .form-section,
body:not(.glass-solid) .faq-item {
  background: var(--ldl-glass-card) !important;
  backdrop-filter: blur(var(--ldl-glass-blur));
  -webkit-backdrop-filter: blur(var(--ldl-glass-blur));
}

body:not(.glass-solid) .navbar {
  background: var(--ldl-glass-bg) !important;
  backdrop-filter: blur(calc(var(--ldl-glass-blur) + 12px));
  -webkit-backdrop-filter: blur(calc(var(--ldl-glass-blur) + 12px));
}

body:not(.glass-solid) footer {
  background: var(--ldl-glass-bg) !important;
  backdrop-filter: blur(var(--ldl-glass-blur));
  -webkit-backdrop-filter: blur(var(--ldl-glass-blur));
}

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width: 540px) {
  #bg-panel {
    width: calc(100% - 24px);
    max-width: none;
  }

  .bg-option {
    flex: 1;
    padding: 8px 4px;
    min-width: 0;
  }

  .bg-option-icon {
    font-size: 0.95rem;
  }

  .bg-option-name {
    font-size: 0.45rem;
  }

  .bg-glass-btn {
    padding: 6px 4px;
  }

  .bg-glass-name {
    font-size: 0.4rem;
  }

  .bg-glass-bar {
    width: 16px;
    height: 4px;
  }
}

/* ─── REDUCED MOTION ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #bg-panel {
    transition: none;
  }
}
