﻿/* ==========================================================================
   Speak.Hub.Landing Components Styles
   Buttons, Cards, Hero, Simulator, Pricing, Forms, Modals & Floating Widget
   ========================================================================== */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: normal;
  text-align: center;
  max-width: 100%;
  user-select: none;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-accent {
  background: var(--gradient-accent);
  color: #032b24;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--color-accent-glow);
}

.btn-accent:hover {
  box-shadow: 0 6px 22px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.6);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 6rem 0 5rem 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: var(--gradient-hero-glow);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero-pill-badge {
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-headline-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtext {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 4rem auto;
}

.stat-item {
  padding: 1.5rem 1rem;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Hero Visual / Browser Mockup
   ========================================================================== */
.hero-mockup-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 80%;
  background: var(--gradient-primary);
  filter: blur(80px);
  opacity: 0.25;
  z-index: 0;
  border-radius: var(--radius-xl);
}

.browser-mockup {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .browser-mockup {
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
}

.browser-header {
  background: var(--bg-surface-alt);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
  max-width: 100%;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot-red { background: #ff5f56; }
.browser-dot-yellow { background: #ffbd2e; }
.browser-dot-green { background: #27c93f; }

.browser-address-bar {
  flex: 1;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.browser-address-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-address-bar svg {
  color: var(--color-success);
  flex-shrink: 0;
}

.browser-online-badge-wrap {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Simulator Toolbar & Canvas Classes */
.simulator-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.simulator-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}

.simulator-toolbar-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.simulator-feedback-text {
  font-size: 0.8rem;
  color: var(--color-success);
  font-weight: 600;
  transition: opacity 0.3s;
}

.simulator-toolbar-devices {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Simulator 3-Column Grid & Layout
   ========================================================================== */
.simulator-mockup-canvas {
  display: grid;
  grid-template-columns: 210px 1fr 310px;
  gap: 1rem;
  align-items: start;
  min-height: 520px;
  position: relative;
}

.simulator-palette-pane {
  max-height: 580px;
  overflow-y: auto;
}

.simulator-palette-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-surface-alt);
  padding: 3px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.sim-palette-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.4rem 0.25rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.sim-palette-tab.is-active {
  background: var(--bg-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.sim-palette-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-palette-subheading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-top: 4px;
  padding-bottom: 2px;
}

.sim-palette-tip {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.4;
}

/* ==========================================================================
   Interactive Canvas Node Styling & Selection Outlines
   ========================================================================== */
.simulator-canvas-wrap {
  position: relative;
  min-height: 480px;
  max-height: 580px;
  overflow-y: auto;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem !important;
  background: var(--bg-surface) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sim-canvas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  color: var(--text-muted);
}

.sim-node {
  position: relative;
  transition: outline 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.sim-node:hover {
  outline: 1.5px dashed var(--color-primary) !important;
  outline-offset: 2px;
}

.sim-node.is-selected {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25) !important;
  z-index: 10;
}

.sim-selection-tag {
  position: absolute;
  top: -11px;
  left: 8px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sim-action-bar {
  position: absolute;
  top: -12px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  z-index: 20;
}

.sim-action-btn {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.sim-action-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.sim-action-btn.is-danger:hover {
  background: var(--color-danger);
  color: #ffffff;
  border-color: var(--color-danger);
}

/* ==========================================================================
   Element Inspector Panel Styling
   ========================================================================== */
.simulator-inspector-pane {
  max-height: 580px;
  overflow-y: auto;
  padding: 0.85rem !important;
}

.sim-inspector-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 0.5rem;
}

.sim-inspector-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
}

.sim-inspector-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.sim-inspector-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.sim-inspector-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.sim-breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-size: 0.7rem;
  background: var(--bg-surface-alt);
  padding: 3px 6px;
  border-radius: var(--radius-xs);
}

.sim-crumb-btn {
  background: transparent;
  border: none;
  padding: 2px 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.sim-crumb-btn:hover {
  color: var(--color-primary);
  background: rgba(67, 97, 238, 0.1);
}

.sim-crumb-btn.is-active {
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(67, 97, 238, 0.15);
}

.sim-crumb-sep {
  color: var(--text-subtle);
  font-size: 0.65rem;
}

.sim-inspector-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-surface-alt);
  padding: 3px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.sim-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.35rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.sim-tab-btn.is-active {
  background: var(--bg-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Property Groups */
.sim-prop-group {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-prop-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sim-prop-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.sim-prop-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.sim-prop-input:focus {
  border-color: var(--color-primary);
}

.sim-segmented-control {
  display: flex;
  gap: 2px;
  background: var(--bg-surface-alt);
  padding: 2px;
  border-radius: var(--radius-xs);
}

.sim-seg-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-seg-btn.is-active {
  background: var(--color-primary);
  color: #ffffff;
}

.sim-slider-wrap {
  width: 100%;
}

.sim-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sim-slider {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border-strong);
  accent-color: var(--color-primary);
  outline: none;
  cursor: pointer;
}

.sim-swatches-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.sim-swatch,
.sim-swatch-bg {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  padding: 0;
}

.sim-swatch-bg {
  border-radius: 4px;
}

.sim-swatch:hover,
.sim-swatch-bg:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* Code View */
.sim-inspector-code-view {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-code-box {
  background: #0f172a;
  color: #38bdf8;
  padding: 0.75rem;
  border-radius: var(--radius-xs);
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.7rem;
  line-height: 1.4;
  overflow-x: auto;
  max-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: pre-wrap;
  margin: 0;
}

.simulator-mobile-only-btn {
  display: none;
}

.tech-highlight-card {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
}

.mockup-canvas {
  background: var(--bg-app);
  padding: 1.5rem;
  min-height: 480px;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 1.25rem;
  text-align: left;
}

.mockup-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-pane-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-block-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-surface-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: grab;
  transition: all var(--transition-fast);
}

.mockup-block-item:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

[data-theme="dark"] .mockup-block-item:hover {
  background: rgba(67, 97, 238, 0.2);
}

.mockup-center-canvas {
  background: var(--bg-surface);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.canvas-preview-section {
  padding: 1.25rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.canvas-preview-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal);
}

[data-theme="dark"] .feature-icon-wrapper {
  background: rgba(67, 97, 238, 0.2);
  color: hsl(var(--primary-h), 85%, 70%);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.feature-tag-item {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-bottom: 3.5rem;
}

.pricing-switch-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  user-select: none;
}

.pricing-switch-label.active {
  color: var(--color-primary);
  font-weight: 700;
}

/* Pricing Toggle Switch */
.pricing-toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

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

.pricing-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-strong);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pricing-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pricing-toggle input:focus-visible + .pricing-slider {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.pricing-toggle input:checked + .pricing-slider {
  background: var(--gradient-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 14px var(--color-primary-glow);
}

.pricing-toggle input:checked + .pricing-slider::before {
  transform: translateX(26px);
  background-color: #ffffff;
}

.pricing-toggle:hover .pricing-slider {
  border-color: var(--color-primary);
}

.switch-discount-badge {
  background: var(--color-accent-light);
  color: #047857;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-left: 0.4rem;
}

[data-theme="dark"] .switch-discount-badge {
  background: rgba(6, 214, 160, 0.2);
  color: var(--color-accent);
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

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

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 30px var(--color-primary-glow);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px var(--color-primary-glow);
}

.pricing-tier-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-tier-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-main);
}

.pricing-feature-item svg {
  color: var(--color-success);
  flex-shrink: 0;
}

.pricing-feature-item.disabled {
  color: var(--text-subtle);
  opacity: 0.6;
}

.pricing-feature-item.disabled svg {
  color: var(--text-subtle);
}

/* ==========================================================================
   Contact Section & Form
   ========================================================================== */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-direct-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.contact-direct-card:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

[data-theme="dark"] .contact-icon-box {
  background: rgba(67, 97, 238, 0.2);
}

.contact-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-card-value {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: 0.25rem;
}

[data-theme="dark"] .contact-email-btn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.contact-email-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border-color: #f59e0b;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.contact-email-btn svg {
  transition: transform var(--transition-fast);
}

.contact-email-btn:hover svg {
  transform: translateX(3px);
}

.contact-form-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-xl);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: var(--color-danger);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  background: var(--bg-surface);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.35rem;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-card.open {
  border-color: var(--color-primary);
}

.faq-header {
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  background: transparent;
  width: 100%;
  border: none;
  text-align: left;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #fff;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-card.open .faq-content {
  max-height: 300px;
}

.faq-body {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

/* ==========================================================================
   Floating Action Contact Widget
   ========================================================================== */
.floating-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.floating-action-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all var(--transition-bounce);
  position: relative;
  border: none;
  text-decoration: none;
}

.floating-action-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.floating-zalo {
  background: #0068ff;
}

.floating-phone {
  background: #10b981;
}

.floating-phone::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-pill);
  border: 2px solid #10b981;
  animation: pulse-ring 1.8s infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.floating-tooltip {
  position: absolute;
  right: 68px;
  background: var(--text-main);
  color: var(--text-inverse);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.floating-action-btn:hover .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Custom Cursor System
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor [role="button"] {
    cursor: none !important;
  }

  body.has-custom-cursor input,
  body.has-custom-cursor textarea,
  body.has-custom-cursor [contenteditable="true"] {
    cursor: text !important;
  }
}

.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.custom-cursor-outline {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.2s ease, 
              border-color 0.2s ease,
              opacity 0.2s ease;
}

body.cursor-hover .custom-cursor-dot {
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
}

body.cursor-hover .custom-cursor-outline {
  width: 52px;
  height: 52px;
  background-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.12);
  border-color: var(--color-accent);
  opacity: 1;
}

body.cursor-click .custom-cursor-outline {
  transform: translate(-50%, -50%) scale(0.85);
  border-color: var(--color-primary);
}

@media (pointer: coarse), (max-width: 768px) {
  .custom-cursor-dot,
  .custom-cursor-outline {
    display: none !important;
  }
}

/* ==========================================================================
   Ambient Audio Controller Widget (Floating Bottom-Left)
   ========================================================================== */
.audio-controller-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: var(--z-floating);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-bounce);
  color: var(--text-main);
  text-decoration: none;
}

.audio-controller-widget:hover {
  transform: scale(1.05) translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px var(--color-primary-glow);
}

.audio-icon-disc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--color-primary-glow);
  transition: transform var(--transition-fast);
}

.audio-controller-widget.playing .audio-icon-disc {
  animation: spinDisc 8s linear infinite;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.audio-equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  width: 16px;
}

.eq-bar {
  width: 3px;
  background: var(--color-accent);
  border-radius: 1px;
  height: 4px;
  transition: height 0.2s ease;
}

.audio-controller-widget.playing .eq-bar:nth-child(1) {
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}
.audio-controller-widget.playing .eq-bar:nth-child(2) {
  animation: eqBounce 0.6s ease-in-out infinite alternate 0.2s;
}
.audio-controller-widget.playing .eq-bar:nth-child(3) {
  animation: eqBounce 1.1s ease-in-out infinite alternate 0.4s;
}

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 16px; }
}

.audio-widget-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.audio-widget-label {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.audio-widget-state {
  font-size: 0.725rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .audio-controller-widget {
    bottom: 1.25rem;
    left: 1.25rem;
    padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  }
  .audio-widget-state {
    display: none;
  }
}
