/* ==========================================================================
   Component Library — TwinComp Portfolio
   Accessible, high-craft UI components with Light/Dark/System support
   ========================================================================== */

/* 1. Sticky Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: var(--text-base);
  font-weight: 700;
}

.brand-role {
  font-family: var(--font-family-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-500);
  background-color: var(--bg-accent-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* 2. Theme Toggle Component (ArchitectUX Spec) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.theme-toggle-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-family-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-option:hover {
  color: var(--text-primary);
}

.theme-toggle-option:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.theme-toggle-option.active {
  background-color: var(--bg-secondary);
  color: var(--primary-500);
  box-shadow: var(--shadow-xs);
}

@media (max-width: 639px) {
  .theme-toggle-label {
    display: none;
  }

  .theme-toggle-option {
    padding: 6px 8px;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
}

@media (min-width: 960px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav-drawer {
  display: none;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: var(--space-4);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-list .nav-link {
  display: block;
  padding: var(--space-3);
  font-size: var(--text-base);
}

/* 3. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-family-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--primary-500);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-color: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--whatsapp {
  background-color: var(--accent-emerald);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn--whatsapp:hover {
  background-color: var(--accent-emerald-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--primary-500);
  color: var(--primary-500);
  background-color: var(--bg-accent-subtle);
}

.btn--sm {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: var(--text-xs);
}

/* 4. Hero Components */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-family: var(--font-family-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.hero-title {
  font-size: clamp(2.15rem, 4.2vw, var(--text-5xl));
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: var(--space-5);
}

.hero-title-highlight {
  color: var(--primary-500);
}

.hero-lead {
  font-size: clamp(1rem, 1.35vw, var(--text-lg));
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.hero-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.service-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.service-tag-chip svg {
  color: var(--primary-500);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

/* Metrics Bar */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  .metrics-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-family: var(--font-family-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Profile Dossier Card */
.dossier-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-family-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.dossier-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-4);
}

.dossier-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cert-floating-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  background-color: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
}

.cert-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-amber-subtle);
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-meta-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.cert-meta-sub {
  font-family: var(--font-family-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.dossier-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  font-size: var(--text-xs);
}

.dossier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
}

.dossier-key {
  font-family: var(--font-family-mono);
  color: var(--text-muted);
}

.dossier-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* 5. Services Section (3 Pillars) */
.service-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

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

.service-card--featured {
  border-color: var(--primary-500);
  background: linear-gradient(180deg, var(--bg-accent-subtle) 0%, var(--bg-primary) 42%);
}

.service-number {
  font-family: var(--font-family-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary-500);
  background-color: var(--bg-accent-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.service-price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.service-price-label {
  font-family: var(--font-family-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.service-price-amount {
  font-family: var(--font-family-mono);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--primary-500);
}

/* 5b. Pricing Package Cards (#harga) */
.pricing-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

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

.pricing-card--popular {
  border: 2px solid var(--primary-500);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--bg-accent-subtle) 0%, var(--bg-secondary) 36%);
}

.pricing-popular-ribbon {
  position: absolute;
  top: -12px;
  right: var(--space-5);
  background-color: var(--primary-500);
  color: #ffffff;
  font-family: var(--font-family-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.pricing-tier-tag {
  font-family: var(--font-family-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.pricing-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  min-height: 2.6em;
  margin-bottom: var(--space-4);
}

.pricing-amount-block {
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pricing-prefix {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pricing-price {
  font-family: var(--font-family-mono);
  font-size: clamp(1.55rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.pricing-unit {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.45;
}

.pricing-features li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-note-banner {
  margin-top: var(--space-8);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .pricing-note-banner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-note-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.pricing-note-item strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.service-checklist li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 6. Portfolio Filter & Project Ledger Cards */
.portfolio-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding: var(--space-4);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

@media (min-width: 900px) {
  .portfolio-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-btn {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  border-color: var(--primary-500);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--primary-500);
  color: #ffffff;
  border-color: var(--primary-500);
}

.filter-count {
  font-family: var(--font-family-mono);
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background-color: rgba(100, 116, 139, 0.16);
}

.filter-btn.active .filter-count {
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.search-box {
  position: relative;
  min-width: 250px;
}

.search-input {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.9rem 0.5rem 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-500);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Project Card */
.project-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.project-card[hidden] {
  display: none !important;
}

.project-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.project-category-badge {
  font-family: var(--font-family-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-accent-subtle);
  color: var(--primary-500);
}

.project-role-badge {
  font-family: var(--font-family-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

.project-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.project-client-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: var(--space-2);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-2);
}

.project-role-detail {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border-color);
}

.project-role-detail strong {
  color: var(--text-secondary);
}

.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  font-family: var(--font-family-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.empty-filter-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-4);
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* 7. Expertise Matrix & Work Experience Timeline */
.expertise-cluster {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.expertise-cluster-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-500);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.expertise-tag {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-6);
  border-left: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.timeline-item {
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--transition-fast);
}

.timeline-item:hover {
  border-color: var(--primary-500);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-6) - 7px);
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 3px solid var(--primary-500);
}

.timeline-item--current .timeline-dot {
  background-color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-period {
  font-family: var(--font-family-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-500);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.timeline-role {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* 8. Interactive Order & Consultation Composer */
.order-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .order-panel {
    padding: var(--space-10);
  }
}

.scope-selector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .scope-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scope-option-btn {
  text-align: left;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scope-option-btn:hover {
  border-color: var(--primary-500);
}

.scope-option-btn.active {
  border-color: var(--primary-500);
  background-color: var(--bg-accent-subtle);
}

.scope-option-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.scope-option-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.composer-field {
  margin-bottom: var(--space-4);
}

.composer-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.composer-input,
.composer-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}

.composer-input:focus,
.composer-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
}

.direct-contact-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.contact-channel-item:hover {
  border-color: var(--primary-500);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon--wa {
  background-color: var(--bg-emerald-subtle);
  color: var(--accent-emerald);
}

.channel-icon--mail {
  background-color: var(--bg-accent-subtle);
  color: var(--primary-500);
}

/* 9. Floating Quick-WhatsApp Action */
.floating-wa {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-emerald);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.floating-wa:hover {
  background-color: var(--accent-emerald-hover);
  transform: translateY(-2px);
}

/* 10. Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: var(--space-10) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}