:root {
  --color-bg-primary: #f5f2ef;
  --color-bg-secondary: #e8ddd5;
  --color-text-primary: #1a1210;
  --color-text-secondary: #6b5d54;
  --color-accent: #ba0303;
  --color-state: #e87a12;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(180, 140, 110, 0.2);
  --glass-blur: 20px;
  --glass-shadow: 0 4px 16px rgba(140, 100, 70, 0.1);
  --glass-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img.navbar-logo {
  height: 30px;
  width: auto;
  display: block;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background: linear-gradient(145deg, #f5f2ef 0%, #faf7f4 40%, #f2ede8 70%, #f5f2ef 100%);
  background-attachment: fixed;
  color: var(--color-text-primary);
  overflow-x: hidden;
}

/* ── Ambient Background Blobs (ring-free) ── */

#bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* SVG noise dither to break any remaining banding */
#bg-blobs::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 1;
  mix-blend-mode: overlay;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  /* Radial gradient bg already fades to transparent — blur just softens further */
  filter: blur(140px);
  will-change: transform, opacity;
}

.blob-1 {
  width: 600px;
  height: 600px;
  top: -10%;
  left: -5%;
  opacity: 0.10;
  background: radial-gradient(circle at center, rgba(186, 3, 3, 0.5) 0%, rgba(186, 3, 3, 0.15) 40%, transparent 70%);
  animation: blobPulse1 12s ease-in-out infinite;
}

.blob-2 {
  width: 550px;
  height: 550px;
  top: 30%;
  right: -8%;
  opacity: 0.08;
  background: radial-gradient(circle at center, rgba(232, 122, 18, 0.5) 0%, rgba(232, 122, 18, 0.15) 40%, transparent 70%);
  animation: blobPulse2 14s ease-in-out infinite;
}

.blob-3 {
  width: 650px;
  height: 650px;
  bottom: -5%;
  left: 25%;
  opacity: 0.07;
  background: radial-gradient(circle at center, rgba(210, 60, 10, 0.4) 0%, rgba(210, 60, 10, 0.12) 40%, transparent 70%);
  animation: blobPulse3 16s ease-in-out infinite;
}

.blob-4 {
  width: 400px;
  height: 400px;
  top: 55%;
  left: -10%;
  opacity: 0.06;
  background: radial-gradient(circle at center, rgba(245, 197, 24, 0.4) 0%, rgba(245, 197, 24, 0.1) 40%, transparent 70%);
  animation: blobPulse4 18s ease-in-out infinite;
}

@keyframes blobPulse1 {
  0%   { transform: translate(0, 0) scale(1);          opacity: 0.10;
         background: radial-gradient(circle at center, rgba(186, 3, 3, 0.5) 0%, rgba(186, 3, 3, 0.15) 40%, transparent 70%); }
  33%  { transform: translate(30px, 20px) scale(1.1);   opacity: 0.12;
         background: radial-gradient(circle at center, rgba(220, 60, 5, 0.5) 0%, rgba(220, 60, 5, 0.15) 40%, transparent 70%); }
  66%  { transform: translate(-15px, 10px) scale(0.95); opacity: 0.08;
         background: radial-gradient(circle at center, rgba(232, 122, 18, 0.45) 0%, rgba(232, 122, 18, 0.14) 40%, transparent 70%); }
  100% { transform: translate(0, 0) scale(1);          opacity: 0.10;
         background: radial-gradient(circle at center, rgba(186, 3, 3, 0.5) 0%, rgba(186, 3, 3, 0.15) 40%, transparent 70%); }
}

@keyframes blobPulse2 {
  0%   { transform: translate(0, 0) scale(1);           opacity: 0.08;
         background: radial-gradient(circle at center, rgba(232, 122, 18, 0.5) 0%, rgba(232, 122, 18, 0.15) 40%, transparent 70%); }
  33%  { transform: translate(-25px, 15px) scale(1.08);  opacity: 0.10;
         background: radial-gradient(circle at center, rgba(186, 3, 3, 0.45) 0%, rgba(186, 3, 3, 0.14) 40%, transparent 70%); }
  66%  { transform: translate(20px, -10px) scale(0.92);  opacity: 0.06;
         background: radial-gradient(circle at center, rgba(210, 60, 10, 0.4) 0%, rgba(210, 60, 10, 0.12) 40%, transparent 70%); }
  100% { transform: translate(0, 0) scale(1);           opacity: 0.08;
         background: radial-gradient(circle at center, rgba(232, 122, 18, 0.5) 0%, rgba(232, 122, 18, 0.15) 40%, transparent 70%); }
}

@keyframes blobPulse3 {
  0%   { transform: translate(0, 0) scale(1);           opacity: 0.07;
         background: radial-gradient(circle at center, rgba(210, 60, 10, 0.4) 0%, rgba(210, 60, 10, 0.12) 40%, transparent 70%); }
  33%  { transform: translate(20px, -25px) scale(1.06);  opacity: 0.09;
         background: radial-gradient(circle at center, rgba(232, 122, 18, 0.45) 0%, rgba(232, 122, 18, 0.14) 40%, transparent 70%); }
  66%  { transform: translate(-20px, 15px) scale(1.12);  opacity: 0.05;
         background: radial-gradient(circle at center, rgba(186, 3, 3, 0.4) 0%, rgba(186, 3, 3, 0.12) 40%, transparent 70%); }
  100% { transform: translate(0, 0) scale(1);           opacity: 0.07;
         background: radial-gradient(circle at center, rgba(210, 60, 10, 0.4) 0%, rgba(210, 60, 10, 0.12) 40%, transparent 70%); }
}

@keyframes blobPulse4 {
  0%   { transform: translate(0, 0) scale(1);           opacity: 0.06;
         background: radial-gradient(circle at center, rgba(245, 197, 24, 0.4) 0%, rgba(245, 197, 24, 0.1) 40%, transparent 70%); }
  50%  { transform: translate(15px, -20px) scale(1.1);   opacity: 0.04;
         background: radial-gradient(circle at center, rgba(232, 170, 18, 0.35) 0%, rgba(232, 170, 18, 0.09) 40%, transparent 70%); }
  100% { transform: translate(0, 0) scale(1);           opacity: 0.06;
         background: radial-gradient(circle at center, rgba(245, 197, 24, 0.4) 0%, rgba(245, 197, 24, 0.1) 40%, transparent 70%); }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

h2 {
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

a {
  color: var(--color-accent);
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
  color: #e01010;
  text-shadow: 0 0 12px rgba(186, 3, 3, 0.4);
}

/* ── Public Navbar & Footer Text ── */
#main-nav .nav-link {
  color: var(--color-text-primary) !important;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

#main-nav .nav-link:hover {
  color: #e01010 !important;
  text-shadow: 0 0 12px rgba(186, 3, 3, 0.4);
}

.footer {
  color: var(--color-text-primary);
}

.footer h5 {
  color: var(--color-text-primary) !important;
}

.footer p,
.footer .small,
.footer span,
.footer li {
  color: var(--color-text-secondary);
}

.footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.footer a:hover {
  color: #e01010;
  text-shadow: 0 0 12px rgba(186, 3, 3, 0.4);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--color-bg-primary), 0 0 0 0.25rem var(--color-accent);
}

.btn-primary {
  color: var(--color-text-primary);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: #d41414;
  border-color: #d41414;
}

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

.btn-outline-primary:hover {
  color: var(--color-text-primary);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: var(--color-text-primary);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

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

.form-control:focus {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--color-text-secondary);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.text-danger {
  color: var(--color-accent) !important;
}

.text-muted {
  color: var(--color-text-secondary) !important;
}

/* ── Frosted Glass ── */

.glass {
  background: var(--glass-noise) repeat, var(--glass-bg);
  background-blend-mode: overlay, normal;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.card,
.glass-panel {
  background: var(--glass-noise) repeat, var(--glass-bg);
  background-blend-mode: overlay, normal;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  color: var(--color-text-primary);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(140, 100, 70, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(180, 140, 110, 0.25);
}

.glass-panel {
  padding: 1.5rem;
}

.card .card-header {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--glass-border);
  border-radius: 16px 16px 0 0;
}

.card .card-body {
  background: transparent;
}

/* ── Buttons ── */

.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
}

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

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

.btn-primary {
  background: rgba(186, 3, 3, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(186, 3, 3, 0.5);
  box-shadow: 0 3px 10px rgba(186, 3, 3, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background: rgba(212, 20, 20, 0.95);
  border-color: rgba(212, 20, 20, 0.6);
  box-shadow: 0 4px 14px rgba(186, 3, 3, 0.2), inset 0 1px 0 rgba(0, 0, 0, 0.07);
}

.btn-outline-primary {
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(186, 3, 3, 0.4);
}

.btn-outline-primary:hover {
  background: rgba(186, 3, 3, 0.88);
  box-shadow: 0 3px 12px rgba(186, 3, 3, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ── Form Controls ── */

.form-control {
  background: var(--glass-noise) repeat, rgba(0, 0, 0, 0.04);
  background-blend-mode: overlay, normal;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-control:focus {
  background: var(--glass-noise) repeat, rgba(0, 0, 0, 0.05);
  background-blend-mode: overlay, normal;
  border-color: rgba(186, 3, 3, 0.5);
  box-shadow: 0 0 0 3px rgba(186, 3, 3, 0.1), 0 0 16px rgba(186, 3, 3, 0.06);
}

/* ── Dark theme overrides for Bootstrap components ── */

.form-select {
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  border-radius: 10px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select:focus {
  border-color: rgba(186, 3, 3, 0.5);
  box-shadow: 0 0 0 3px rgba(186, 3, 3, 0.1), 0 0 16px rgba(186, 3, 3, 0.06);
}

.form-check-input {
  background-color: var(--color-bg-secondary);
  border-color: var(--glass-border);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(186, 3, 3, 0.3);
}

.form-check-label {
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  background-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(186, 3, 3, 0.4);
}

.form-range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--color-bg-secondary), rgba(107, 69, 53, 0.4));
  border-radius: 4px;
}

.nav-tabs {
  border-bottom-color: var(--glass-border);
}

.nav-tabs .nav-link {
  color: var(--color-text-secondary);
  border-radius: 10px 10px 0 0;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-tabs .nav-link:hover {
  border-color: var(--color-bg-secondary) var(--color-bg-secondary) var(--glass-border);
  color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.nav-tabs .nav-link.active {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--glass-border) var(--glass-border) transparent;
  color: var(--color-text-primary);
}

.nav-pills .nav-link {
  color: var(--color-text-secondary);
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.nav-pills .nav-link:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-primary);
}

.page-link {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--glass-border);
  color: var(--color-text-secondary);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.page-link:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(180, 140, 110, 0.25);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}

.page-item.disabled .page-link {
  background: rgba(0, 0, 0, 0.01);
  border-color: var(--glass-border);
  color: var(--color-bg-secondary);
}

.breadcrumb {
  background: transparent;
}

.breadcrumb-item.active {
  color: var(--color-text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--color-bg-secondary);
}

mark {
  background: linear-gradient(135deg, rgba(186, 3, 3, 0.25), rgba(232, 122, 18, 0.2));
  color: var(--color-text-primary);
  padding: 2px 6px;
  border-radius: 4px;
}

code {
  color: var(--color-accent);
  background: rgba(186, 3, 3, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

blockquote {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
}

.btn-secondary {
  background: rgba(107, 69, 53, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(107, 69, 53, 0.4);
  color: var(--color-text-primary);
  box-shadow: 0 2px 8px rgba(140, 100, 70, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: rgba(107, 69, 53, 0.65);
  color: var(--color-text-primary);
  box-shadow: 0 3px 10px rgba(140, 100, 70, 0.1), inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline-secondary {
  color: var(--color-text-secondary);
  border-color: var(--color-bg-secondary);
  box-shadow: inset 0 0 0 1px rgba(107, 69, 53, 0.3);
}

.btn-outline-secondary:hover {
  background: rgba(107, 69, 53, 0.5);
  border-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  box-shadow: 0 2px 8px rgba(140, 100, 70, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* ── Progress bars ── */

.progress {
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(186, 3, 3, 0.3);
}

/* ── List group ── */

.list-group-item {
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.list-group-item:not(.active):not(.disabled):hover {
  background: rgba(0, 0, 0, 0.04) !important;
  transform: translateX(4px);
}

/* ── Badges ── */

.badge {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 8px;
}

/* ── Accordion ── */

.accordion-item {
  background: var(--glass-noise) repeat, rgba(0, 0, 0, 0.03);
  background-blend-mode: overlay, normal;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: box-shadow var(--transition-med);
}

.accordion-item + .accordion-item {
  margin-top: 8px;
}

.accordion-button {
  background: rgba(0, 0, 0, 0.03);
  color: var(--color-text-primary);
  transition: background var(--transition-fast);
}

.accordion-button:not(.collapsed) {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-primary);
  box-shadow: inset 0 -1px 0 var(--glass-border);
}

.accordion-button::after {
  filter: invert(1) brightness(0.7);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(186, 3, 3, 0.12);
}

.accordion-body {
  color: var(--color-text-secondary);
  background: transparent;
}

/* ── Spinner glow ── */

.spinner-border,
.spinner-grow {
  filter: drop-shadow(0 0 6px currentColor);
}

/* ── Toast Notifications (stacked card-deck) ── */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1080;
  width: 340px;
  pointer-events: none;
}

#toast-stack {
  position: relative;
  width: 100%;
}

/* The front toast (oldest) is z-index highest, each behind one shifts down+scales */
.meerkat-toast {
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--glass-noise) repeat, rgba(30, 10, 5, 0.88);
  background-blend-mode: overlay, normal;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--color-text-primary);
  pointer-events: auto;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: toastSlideIn 0.3s ease-out;
}

.meerkat-toast.toast-hidden {
  opacity: 0;
  transform: translateX(40px) !important;
  pointer-events: none;
}

.meerkat-toast .toast-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.meerkat-toast .toast-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.meerkat-toast .toast-close {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0 0 8px;
  line-height: 1;
}

.meerkat-toast .toast-close:hover {
  color: var(--color-text-primary);
}

.meerkat-toast .toast-body {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.meerkat-toast .toast-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 12px 0 0 12px;
}

.meerkat-toast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 12px 12px;
}

/* Stack counter badge */
#toast-stack-count {
  display: none;
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 9999;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--color-accent);
  color: var(--color-text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  pointer-events: none;
}

#toast-stack-count.visible {
  display: block;
}

/* Type colors */
.meerkat-toast[data-type="success"] .toast-accent,
.meerkat-toast[data-type="success"] .toast-progress { background-color: #28a745; }
.meerkat-toast[data-type="success"] .toast-title { color: #5fdc7b; }

.meerkat-toast[data-type="danger"] .toast-accent,
.meerkat-toast[data-type="danger"] .toast-progress { background-color: var(--color-accent); }
.meerkat-toast[data-type="danger"] .toast-title { color: #f06060; }

.meerkat-toast[data-type="warning"] .toast-accent,
.meerkat-toast[data-type="warning"] .toast-progress { background-color: var(--color-state); }
.meerkat-toast[data-type="warning"] .toast-title { color: #f0a050; }

.meerkat-toast[data-type="info"] .toast-accent,
.meerkat-toast[data-type="info"] .toast-progress { background-color: #17a2b8; }
.meerkat-toast[data-type="info"] .toast-title { color: #5fd4e8; }

/* Pause countdown on hover */
#toast-container:hover .meerkat-toast .toast-progress {
  animation-play-state: paused;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastCountdown {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ── Button state overrides (active / disabled) ── */

.btn-primary.active,
.btn-primary:active {
  background: rgba(232, 122, 18, 0.85);
  border-color: rgba(232, 122, 18, 0.5);
  box-shadow: 0 2px 12px rgba(232, 122, 18, 0.3);
  color: var(--color-text-primary);
}

.btn-primary:disabled,
.btn-primary.disabled {
  background: rgba(232, 122, 18, 0.4);
  border-color: rgba(232, 122, 18, 0.2);
  color: var(--color-text-secondary);
  opacity: 1;
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
  color: rgba(232, 122, 18, 0.5);
  border-color: rgba(232, 122, 18, 0.3);
  opacity: 1;
}

/* ── Typography (Syne + Outfit) ── */

body {
  font-family: 'Outfit', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
}

/* ── Utility ── */

.text-accent {
  color: var(--color-accent);
}

/* ── Section Patterns ── */

.page-section {
  padding: 80px 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
  position: relative;
  padding-left: 28px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.section-label-center {
  display: block;
  text-align: center;
  padding-left: 0;
}

.section-label-center::before {
  display: none;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-heading::after {
  display: none;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Hero ── */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0 80px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-state);
  padding: 7px 18px;
  border: 1px solid rgba(232, 122, 18, 0.3);
  border-radius: 50px;
  margin-bottom: 28px;
  background: rgba(232, 122, 18, 0.06);
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-headline::after {
  display: none;
}

.hero-line {
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ── Hero 3D Visual ── */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.scene-3d {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 440px;
  transform-style: preserve-3d;
  animation: sceneFloat 8s ease-in-out infinite;
}

@keyframes sceneFloat {
  0%, 100% { transform: rotateY(-14deg) rotateX(6deg); }
  50% { transform: rotateY(-8deg) rotateX(2deg) translateY(-8px); }
}

/* Panels */

.ui-panel {
  border-radius: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.panel-main {
  width: 100%;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(186, 3, 3, 0.06);
}

.panel-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.02);
}

.panel-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

.panel-body {
  padding: 20px;
}

.panel-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 180, 120, 0.06);
}

.panel-metric:last-of-type {
  border-bottom: none;
}

.metric-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.metric-value {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.metric-green {
  color: #5fdc7b;
}

/* Chart */

.panel-chart {
  margin-top: 14px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  padding: 4px;
}

.chart-line path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: chartDraw 2.5s ease-out 0.8s forwards;
}

@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}

/* Build-in animation */

.build-in {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  animation: buildIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--build-delay, 0s);
}

.build-in-row {
  opacity: 0;
  transform: translateX(-10px);
  animation: buildInRow 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--build-delay, 0s);
}

@keyframes buildIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes buildInRow {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mini stat cards below dashboard */

.panel-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 12px 12px;
}

.mini-stat-card {
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  transition: all var(--transition-fast);
}

.mini-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(186, 3, 3, 0.25);
}

.mini-stat-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mini-stat-value small {
  font-size: 0.7em;
  font-weight: 300;
  opacity: 0.6;
}

.mini-stat-green {
  color: #5fdc7b;
}

.mini-stat-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
  opacity: 0.7;
}

/* Floating panels */

.panel-float-1 {
  position: absolute;
  bottom: 24px;
  left: -44px;
  z-index: 3;
  padding: 10px 16px;
  animation: float1 6s ease-in-out infinite;
  animation-delay: 1.2s;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

@keyframes float1 {
  0%, 100% { transform: translateZ(40px) translateY(0); }
  50% { transform: translateZ(40px) translateY(-10px); }
}

.float-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5fdc7b;
  white-space: nowrap;
}

.float-status .status-dot {
  width: 8px;
  height: 8px;
}

/* Code editor card */

.panel-float-2 {
  position: absolute;
  top: -10px;
  right: -30px;
  z-index: 1;
  padding: 10px 14px;
  width: 150px;
  animation: float2 7s ease-in-out infinite;
  animation-delay: 0.6s;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

@keyframes float2 {
  0%, 100% { transform: translateZ(-20px) translateY(0); }
  50% { transform: translateZ(-20px) translateY(-8px); }
}

.mini-titlebar {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--glass-border);
}

.float-code {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.code-line-mini {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(186, 3, 3, 0.2), rgba(232, 122, 18, 0.12));
  animation: codePulse 3s ease-in-out infinite;
}

.code-line-mini.accent {
  background: linear-gradient(90deg, rgba(186, 3, 3, 0.35), rgba(232, 122, 18, 0.25));
}

/* Notification card */

.panel-float-3 {
  position: absolute;
  bottom: -10px;
  right: 20px;
  z-index: 4;
  padding: 9px 14px;
  animation: float3 5s ease-in-out infinite;
  animation-delay: 1.5s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@keyframes float3 {
  0%, 100% { transform: translateZ(30px) translateY(0); }
  50% { transform: translateZ(30px) translateY(-6px); }
}

.float-notification {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5fdc7b;
  white-space: nowrap;
}

/* Database card */

.panel-float-4 {
  position: absolute;
  top: 50%;
  left: -50px;
  z-index: 2;
  padding: 10px 14px;
  animation: float4 8s ease-in-out infinite;
  animation-delay: 1s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

@keyframes float4 {
  0%, 100% { transform: translateZ(20px) translateY(0); }
  50% { transform: translateZ(20px) translateY(-7px); }
}

.float-db {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.db-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.db-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.db-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-state);
}

/* CPU / Memory bars card */

.panel-float-5 {
  position: absolute;
  top: 4px;
  left: 10px;
  z-index: 1;
  padding: 10px 14px;
  width: 155px;
  animation: float5 9s ease-in-out infinite;
  animation-delay: 1.8s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

@keyframes float5 {
  0%, 100% { transform: translateZ(-30px) translateY(0); }
  50% { transform: translateZ(-30px) translateY(-5px); }
}

.float-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  width: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bar-track {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--color-accent);
  animation: barGrow 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 2s;
  transform-origin: left;
  transform: scaleX(0);
}

.bar-fill-orange {
  background: var(--color-state);
}

@keyframes barGrow {
  to { transform: scaleX(1); }
}

.bar-pct {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-primary);
  width: 28px;
  text-align: right;
}

/* SSL card */

.panel-float-6 {
  position: absolute;
  top: 40%;
  right: -40px;
  z-index: 3;
  padding: 8px 14px;
  animation: float6 6.5s ease-in-out infinite;
  animation-delay: 2.1s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

@keyframes float6 {
  0%, 100% { transform: translateZ(25px) translateY(0); }
  50% { transform: translateZ(25px) translateY(-8px); }
}

.float-ssl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5fdc7b;
  white-space: nowrap;
}

/* Users/traffic card */

.panel-float-7 {
  position: absolute;
  bottom: -20px;
  right: 60px;
  z-index: 3;
  padding: 10px 14px;
  width: 165px;
  animation: float7 7.5s ease-in-out infinite;
  animation-delay: 2.4s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

@keyframes float7 {
  0%, 100% { transform: translateZ(15px) translateY(0); }
  50% { transform: translateZ(15px) translateY(-6px); }
}

.float-users {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.users-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.users-count {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.users-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  color: var(--color-text-secondary);
}

.users-sparkline {
  height: 20px;
}

.users-sparkline svg {
  width: 100%;
  height: 100%;
}

/* Terminal card */

.panel-float-8 {
  position: absolute;
  bottom: 50px;
  left: -56px;
  z-index: 2;
  padding: 10px 14px;
  animation: float8 5.5s ease-in-out infinite;
  animation-delay: 1.4s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

@keyframes float8 {
  0%, 100% { transform: translateZ(35px) translateY(0); }
  50% { transform: translateZ(35px) translateY(-9px); }
}

.float-terminal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  white-space: nowrap;
}

.term-line {
  color: var(--color-text-secondary);
}

.term-prompt {
  color: var(--color-accent);
  margin-right: 4px;
}

.term-success {
  color: #5fdc7b;
}

/* ── Highlight Cards ── */

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.highlight-card {
  padding: 36px 28px;
  border-radius: 16px;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-med);
}

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

.highlight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(186, 3, 3, 0.3);
  box-shadow: 0 12px 40px rgba(186, 3, 3, 0.1), 0 4px 16px rgba(40, 8, 0, 0.22);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(186, 3, 3, 0.1);
  border: 1px solid rgba(186, 3, 3, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.highlight-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.highlight-card h3::after {
  display: none;
}

.highlight-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ── Why Section ── */

.why-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-content .section-heading {
  text-align: left;
}

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-item {
  padding: 28px 20px;
  border-radius: 16px;
  text-align: center;
  transition: all var(--transition-med);
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(186, 3, 3, 0.25);
  box-shadow: 0 8px 24px rgba(186, 3, 3, 0.08);
}

.stat-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

/* ── CTA Section ── */

.cta-section {
  padding: 100px 0;
}

.cta-section .section-heading {
  margin-bottom: 16px;
}

.cta-section .section-sub {
  margin-bottom: 32px;
}

/* ── Page Header ── */

.page-header {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-header h1::after {
  display: none;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── About: Mission ── */

.mission-block {
  padding: 40px 0 60px;
  text-align: center;
  position: relative;
}

.mission-accent {
  font-family: 'Syne', sans-serif;
  font-size: 6rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.15;
  line-height: 0.6;
  margin-bottom: 16px;
}

.mission-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text-primary);
  max-width: 800px;
  margin: 0 auto;
}

/* ── About: Approach ── */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.approach-card {
  padding: 36px 28px;
  border-radius: 16px;
  transition: all var(--transition-med);
}

.approach-card:hover {
  transform: translateY(-4px);
}

.card-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(186, 3, 3, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.approach-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.approach-card h3::after {
  display: none;
}

.approach-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ── About: Values ── */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.value-item {
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all var(--transition-med);
}

.value-item:hover {
  transform: translateY(-4px);
  border-color: rgba(186, 3, 3, 0.2);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.value-item h4::after {
  display: none;
}

.value-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ── Services: Detail Sections ── */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-content h2 {
  text-align: left;
}

.service-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.service-feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.service-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(186, 3, 3, 0.4);
}

/* Visual cards (decorative) */

.visual-card {
  padding: 32px;
  border-radius: 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.visual-card-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}

.code-line {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(186, 3, 3, 0.15), rgba(232, 122, 18, 0.08));
  animation: codePulse 3s ease-in-out infinite;
}

@keyframes codePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.visual-card-status {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.status-row span:last-child {
  margin-left: auto;
  font-weight: 600;
  color: var(--color-text-primary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-green {
  background: #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(40, 167, 69, 0.3); }
  50% { box-shadow: 0 0 12px rgba(40, 167, 69, 0.6); }
}

.visual-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

/* ── Services: Process ── */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin: 40px 0;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-state), var(--color-accent));
  opacity: 0.25;
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  border: 2px solid rgba(186, 3, 3, 0.3);
  background: rgba(186, 3, 3, 0.06);
  position: relative;
  z-index: 1;
  transition: all var(--transition-med);
}

.process-step:hover .step-number {
  background: rgba(186, 3, 3, 0.15);
  border-color: rgba(186, 3, 3, 0.5);
  box-shadow: 0 0 20px rgba(186, 3, 3, 0.2);
}

.process-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step h4::after {
  display: none;
}

.process-step p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ── Services: Pricing ── */

.pricing-note {
  padding: 56px 48px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 122, 18, 0.2);
}

.pricing-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-state), var(--color-accent));
}

.pricing-note h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.pricing-note h3::after {
  display: none;
}

.pricing-note p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ── Contact: Layout ── */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form-card {
  padding: 40px;
  border-radius: 20px;
}

.contact-form-card h3::after {
  display: none;
}

.contact-form-card .form-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  color: var(--color-text-primary);
}

.contact-form-card .form-control::placeholder {
  color: rgba(26, 18, 16, 0.4);
}

/* ── Custom Select Dropdown ── */

.custom-select {
  position: relative;
  user-select: none;
  cursor: default;
}

.custom-select * {
  cursor: default;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  min-height: 42px;
  background: var(--glass-noise) repeat, rgba(0, 0, 0, 0.04);
  background-blend-mode: overlay, normal;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--color-text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.custom-select-trigger:hover {
  border-color: rgba(180, 140, 110, 0.3);
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(186, 3, 3, 0.5);
  box-shadow: 0 0 0 3px rgba(186, 3, 3, 0.1), 0 0 16px rgba(186, 3, 3, 0.06);
}

.custom-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-value.placeholder {
  color: rgba(26, 18, 16, 0.4);
  background: transparent;
  text-shadow: none;
  -webkit-text-fill-color: rgba(26, 18, 16, 0.4);
}

.custom-select-arrow {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: transform var(--transition-fast);
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--glass-noise) repeat, rgba(255, 255, 255, 0.95);
  background-blend-mode: overlay, normal;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(186, 3, 3, 0.04);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.custom-select.open .custom-select-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-option {
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.custom-select-option:hover {
  background: rgba(186, 3, 3, 0.12);
  color: var(--color-text-primary);
}

.custom-select-option.selected {
  color: var(--color-accent);
  background: rgba(186, 3, 3, 0.08);
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  padding: 24px;
  border-radius: 16px;
}

.contact-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-card h4::after {
  display: none;
}

.contact-info-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(186, 3, 3, 0.1);
  border: 1px solid rgba(186, 3, 3, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-cta-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(232, 122, 18, 0.15);
  background: rgba(232, 122, 18, 0.03);
}

.contact-cta-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-cta-card h4::after {
  display: none;
}

.contact-cta-card p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ── Scroll Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.36s; }

/* ── Responsive ── */

@media (max-width: 991px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .scene-3d {
    height: 360px;
  }

  .panel-float-1 {
    left: -10px;
  }

  .panel-float-2 {
    right: -10px;
  }

  .panel-float-4 {
    left: -16px;
  }

  .panel-float-5 {
    left: auto;
    right: -10px;
    top: -10px;
  }

  .panel-float-6 {
    right: -10px;
  }

  .panel-float-7 {
    right: 10px;
    bottom: -14px;
  }

  .panel-float-8 {
    left: -16px;
  }

  .why-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .process-grid::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 40px 0 60px;
  }

  .scene-3d {
    height: 320px;
    max-width: 340px;
  }

  .panel-float-1 {
    left: 0;
    bottom: 10px;
  }

  .panel-float-2 {
    right: 0;
    top: -6px;
    width: 120px;
  }

  .panel-float-3 {
    right: 0;
    bottom: -6px;
  }

  .panel-float-4 {
    left: -8px;
  }

  .panel-float-5 {
    left: auto;
    right: 0;
    top: -6px;
    width: 130px;
  }

  .panel-float-6 {
    right: -4px;
  }

  .panel-float-7 {
    right: 0;
    bottom: -10px;
    width: 140px;
  }

  .panel-float-8 {
    left: -8px;
    bottom: 30px;
  }

  .page-section {
    padding: 60px 0;
  }

  .page-header {
    padding: 40px 0 30px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pricing-note {
    padding: 32px 24px;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .why-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Coming Soon (legacy) ── */

.coming-soon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
}

.coming-soon-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  line-height: 1.1;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.bounce-letter {
  display: inline-block;
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.3s ease,
              text-shadow 0.3s ease;
}

.bounce-letter:hover {
  transform: translateY(-18px) rotate(-6deg) scale(1.15);
  color: var(--color-accent, #e87a12);
  text-shadow: 0 0 20px rgba(232, 122, 18, 0.5),
               0 8px 16px rgba(0, 0, 0, 0.3);
}

.coming-soon-sub {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 400px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
