/* ==========================================================================
   Main Styles — Agape Labs
   ========================================================================== */

/* --- Base --- */
body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-base), color var(--transition-base);
  cursor: auto;
  overflow-x: hidden;
}

a, button, .btn, .filter-btn, .faq__question, .chatbot-bubble,
.back-to-top, .header__theme-toggle, .header__menu-btn,
.lang-toggle, .chatbot__quick-reply, .chatbot__send-btn,
.chatbot__header-close, .cookie-banner .btn, .error-404__pill {
  cursor: pointer;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* --- Skip to content (a11y) --- */
/* --- Screen reader only (a11y) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: var(--z-toast);
  font-weight: var(--font-semibold);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-24);
}

.section--alt {
  background-color: var(--color-bg-alt);
  position: relative;
}

.section--alt::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--color-bg-alt);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
  z-index: 1;
}

.section--alt + .section {
  position: relative;
}

.section--alt + .section::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--color-bg-alt);
  border-radius: 0 0 50% 50%;
  pointer-events: none;
  z-index: 1;
}

.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .section--alt::before {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: var(--font-bold);
  color: var(--color-text);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
}

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

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 40rem;
  line-height: 1.7;
}

.section__header {
  margin-bottom: var(--space-16);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin-inline: auto;
}

/* --- Links --- */
.link {
  color: var(--color-primary);
  font-weight: var(--font-medium);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--transition-fast);
}

.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.link:hover::after {
  width: 100%;
}

.link:hover {
  color: var(--color-primary-dark);
}

.link__arrow {
  transition: transform var(--transition-fast);
  font-size: 1.1em;
}

.link:hover .link__arrow {
  transform: translateX(3px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.5;
}

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

.btn--primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md), 0 0 12px rgba(8, 145, 178, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 4px 20px rgba(8, 145, 178, 0.4), 0 0 40px rgba(124, 58, 237, 0.2);
}

.btn--primary:hover::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  background-size: 200% 100%;
  animation: scannerGlow 1.5s ease-in-out;
  transform: none;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px dashed rgba(8, 145, 178, 0.35);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 16px rgba(8, 145, 178, 0.25);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--icon {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.btn--icon:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

/* --- Cards --- */
.card {
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md), 0 1px 0 rgba(124, 58, 237, 0.04);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-top: 1px solid var(--color-primary);
  border-left: 1px solid var(--color-primary);
  opacity: 0.6;
  transition: opacity var(--transition-base);
  z-index: 2;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-bottom: 1px solid var(--color-primary);
  border-right: 1px solid var(--color-primary);
  opacity: 0.6;
  transition: opacity var(--transition-base);
  z-index: 2;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
  border-color: var(--color-primary);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 145, 178, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(8, 145, 178, 0.15);
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
  position: relative;
}

.card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
  position: relative;
}

.card__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  position: relative;
}

.card__link {
  margin-top: var(--space-6);
  position: relative;
}

/* --- Card Mouse-Tracking Glow --- */
.card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.card:hover .card__glow {
  opacity: 1;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
  background: transparent;
  padding: var(--space-3) 0;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
  z-index: 1;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 20px rgba(8, 145, 178, 0.06);
  padding: 0;
}

[data-theme="dark"] .header--scrolled {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-1);
  max-height: 80px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}

.header--scrolled .header__brand {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  padding: var(--space-2) 0;
}

.header__bar .header__actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header__logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.header__logo:hover {
  opacity: 0.85;
}

.header__logo img {
  height: 70px;
  width: auto;
  transition: filter 0.3s ease;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header__link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.header__link:hover,
.header__link--active {
  color: var(--color-primary);
}

.header__link--active {
  background: var(--color-primary-light);
}

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

.header__theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.header__theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(8, 145, 178, 0.2);
}

/* Mobile menu button */
.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  gap: 5px;
  transition: all var(--transition-fast);
}

.header__menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header__menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--color-bg);
  z-index: var(--z-overlay);
  padding: var(--space-8) var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--color-primary);
}

/* --- Hero Sections --- */
.hero {
  padding-top: calc(var(--header-height) + var(--space-24));
  padding-bottom: var(--space-24);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero--home {
  padding-top: calc(var(--header-height) + var(--space-32));
  padding-bottom: var(--space-32);
  text-align: center;
}

.hero__title {
  margin-bottom: var(--space-6);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-banner__title {
  background: linear-gradient(135deg, #ffffff, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.hero__subtitle .typed-text {
  font-family: var(--font-mono);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__breadcrumb {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__breadcrumb a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.hero__breadcrumb a:hover {
  color: var(--color-primary-dark);
}

/* --- Stats Section --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat__number {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
}

/* --- CTA Banner --- */
.cta-banner {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.3), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(8, 145, 178, 0.2), transparent 50%),
    linear-gradient(135deg, #0f172a, #1e1045);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.06), transparent);
  animation: scanLine 8s linear infinite;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.cta-banner__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  position: relative;
  background: linear-gradient(135deg, #ffffff, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-banner__text {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 30rem;
  margin-inline: auto;
  position: relative;
}

.cta-banner .btn {
  position: relative;
  background: #ffffff;
  color: var(--color-primary);
  border-color: transparent;
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* --- Process Steps --- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: process-step;
}

.process__step {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  position: relative;
}

.process__number {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: 0 auto var(--space-6);
}

.process__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.process__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Services Detail --- */
.service-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-md);
}

.service-detail__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.service-detail__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.service-detail__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.service-detail__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.service-detail__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.service-detail__feature::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  flex-shrink: 0;
}

/* --- Values Grid --- */
.value-card {
  text-align: center;
  padding: var(--space-8);
}

.value-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.value-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Founder Section --- */
.founder {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  background: var(--color-surface);
  position: relative;
}

.founder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.founder__name {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}

.founder__role {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.founder__bio {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: var(--text-base);
}

/* --- Mission & Vision Cards --- */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.mission-vision__card {
  padding: var(--space-8);
  text-align: center;
}

.mission-vision__title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  font-weight: var(--font-semibold);
}

.mission-vision__text {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: var(--text-base);
}

@media (max-width: 640px) {
  .mission-vision {
    grid-template-columns: 1fr;
  }

  .founder {
    padding: var(--space-6);
  }
}

/* --- Contact Form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.form__label {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.form__input,
.form__select,
.form__textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  width: 100%;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15), 0 0 12px rgba(8, 145, 178, 0.08);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-style: italic;
}

.form__textarea {
  resize: vertical;
  min-height: 8rem;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

/* Contact Info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.contact-info__item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.contact-info__item:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.contact-info__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-medium);
}

.contact-info__value {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-alt);
  border-top: none;
  padding-top: var(--space-16);
  position: relative;
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .footer::before {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.footer__brand-header {
  text-align: center;
  padding-bottom: var(--space-10);
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
}

.footer__brand-header .footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.footer__brand-header .footer__logo img {
  height: 80px;
  width: auto;
  transition: filter 0.3s ease;
}

.footer__brand-header .footer__desc {
  max-width: 30rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}

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

.footer__logo img {
  height: 80px;
  width: auto;
  transition: filter 0.3s ease;
}

.footer__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer__heading {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-lg), 0 0 12px rgba(8, 145, 178, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
  font-size: 1.25rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* --- Page content offset for fixed header --- */
main {
  min-height: calc(100vh - var(--header-height));
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: calc(var(--z-sticky) + 1);
  transition: width 50ms linear;
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.5);
}

[data-theme="dark"] .scroll-progress {
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}

/* Split halves — each covers full screen, clipped to its side */
.preloader__half {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.35s;
}

.preloader__half--left {
  clip-path: inset(0 50% 0 0);
}

.preloader__half--right {
  clip-path: inset(0 0 0 50%);
}

.preloader.loaded .preloader__half--left {
  transform: translateX(-100%);
}

.preloader.loaded .preloader__half--right {
  transform: translateX(100%);
}

/* Starfield layer */
.preloader__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.preloader__stars::before,
.preloader__stars::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: var(--radius-full);
  background: transparent;
  animation: warpDrift 4s linear infinite;
}

.preloader__stars::before {
  box-shadow:
    -40px -80px 0 0.5px rgba(255,255,255,0.6),
     60px -120px 0 0.5px rgba(255,255,255,0.5),
    -130px -30px 0 0.5px rgba(255,255,255,0.7),
     110px  50px 0 0.5px rgba(255,255,255,0.4),
    -70px  100px 0 0.5px rgba(255,255,255,0.6),
     150px -70px 0 0.5px rgba(255,255,255,0.5),
    -160px  80px 0 0.5px rgba(255,255,255,0.3),
     30px  140px 0 0.5px rgba(255,255,255,0.6),
    -100px -150px 0 0.5px rgba(255,255,255,0.4),
     180px  20px 0 0.5px rgba(255,255,255,0.5),
    -20px  170px 0 0.5px rgba(255,255,255,0.7),
     90px -160px 0 0.5px rgba(255,255,255,0.3),
    -150px -120px 0 0.5px rgba(255,255,255,0.5),
     140px  130px 0 0.5px rgba(255,255,255,0.6),
    -50px -180px 0 0.5px rgba(255,255,255,0.4),
     200px -40px 0 0.5px rgba(255,255,255,0.5),
    -180px  50px 0 0.5px rgba(255,255,255,0.6),
     70px  180px 0 0.5px rgba(255,255,255,0.3),
    -120px  160px 0 0.5px rgba(255,255,255,0.5),
     170px -130px 0 0.5px rgba(255,255,255,0.4);
}

.preloader__stars::after {
  box-shadow:
     50px -50px 0 0.5px rgba(200,220,255,0.5),
    -80px  60px 0 0.5px rgba(200,220,255,0.6),
     120px  90px 0 0.5px rgba(200,220,255,0.4),
    -140px -100px 0 0.5px rgba(200,220,255,0.5),
     20px  120px 0 0.5px rgba(200,220,255,0.7),
    -60px -140px 0 0.5px rgba(200,220,255,0.3),
     160px  60px 0 0.5px rgba(200,220,255,0.5),
    -100px  130px 0 0.5px rgba(200,220,255,0.6),
     80px -100px 0 0.5px rgba(200,220,255,0.4),
    -170px  10px 0 0.5px rgba(200,220,255,0.5),
     100px  160px 0 0.5px rgba(200,220,255,0.6),
    -30px -170px 0 0.5px rgba(200,220,255,0.3),
     190px -20px 0 0.5px rgba(200,220,255,0.5),
    -110px -60px 0 0.5px rgba(200,220,255,0.4),
     40px  190px 0 0.5px rgba(200,220,255,0.6),
    -190px -40px 0 0.5px rgba(200,220,255,0.5),
     130px -170px 0 0.5px rgba(200,220,255,0.3),
    -50px  150px 0 0.5px rgba(200,220,255,0.5),
     170px  110px 0 0.5px rgba(200,220,255,0.6),
    -160px  140px 0 0.5px rgba(200,220,255,0.4);
  animation-delay: -2s;
}

/* Idle drift — subtle slow radial outward movement */
@keyframes warpDrift {
  0%   { transform: scale(0.95); opacity: 0.4; }
  50%  { opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 0.4; }
}

/* Warping state — stars stretch into streaks and accelerate */
.preloader.warping .preloader__stars::before,
.preloader.warping .preloader__stars::after {
  animation: warpAccelerate 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes warpAccelerate {
  0% {
    transform: scale(1);
    opacity: 0.6;
    filter: blur(0);
  }
  40% {
    opacity: 1;
    filter: blur(0.5px);
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
    filter: blur(2px);
  }
}

/* Content layer — logo + spinner on top */
.preloader__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.preloader.loaded .preloader__content {
  opacity: 0;
  transform: scale(1.15);
}

.preloader__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__logo img {
  max-width: 180px;
  height: auto;
  animation: preloaderGlow 2s ease-in-out infinite alternate;
}

@keyframes preloaderGlow {
  from { filter: drop-shadow(0 0 8px rgba(8, 145, 178, 0.3)); }
  to   { filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5)); }
}

.preloader__logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preloader__spinner {
  width: 3rem;
  height: 3rem;
  border: 1.5px solid rgba(8, 145, 178, 0.2);
  border-radius: var(--radius-full);
  position: relative;
  animation: orbitRotate 3s linear infinite;
}

.preloader__spinner::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1.5px solid rgba(167, 139, 250, 0.3);
  border-top-color: var(--color-accent);
  border-radius: var(--radius-full);
  animation: orbitRotateReverse 2s linear infinite;
}

.preloader__spinner::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 6px var(--color-primary);
}

/* Reduced-motion: simple fade, no warp or split */
@media (prefers-reduced-motion: reduce) {
  .preloader__stars { display: none; }

  .preloader__half {
    clip-path: none;
    transition: opacity 0.3s ease;
  }

  .preloader.loaded .preloader__half--left,
  .preloader.loaded .preloader__half--right {
    transform: none;
    opacity: 0;
  }

  .preloader.loaded .preloader__content {
    transform: none;
  }
}

/* --- Cookie Consent --- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  max-width: 28rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  transform: translateY(calc(100% + var(--space-8)));
  transition: transform var(--transition-slow);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.cookie-banner__text a {
  font-family: var(--font-mono);
}

[data-theme="dark"] .cookie-banner {
  border-color: rgba(34, 211, 238, 0.12);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(34, 211, 238, 0.06);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* --- Cookie Preference Panel --- */
.cookie-prefs {
  display: none;
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.cookie-prefs.visible {
  display: block;
}

.cookie-prefs__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.cookie-prefs__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-prefs__item:last-of-type {
  border-bottom: none;
}

.cookie-prefs__info {
  flex: 1;
  margin-right: var(--space-3);
}

.cookie-prefs__label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.cookie-prefs__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 2px;
}

.cookie-prefs__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  white-space: nowrap;
}

.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: 11px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--color-primary);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(18px);
}

.cookie-prefs__save {
  margin-top: var(--space-4);
  width: 100%;
}

/* --- Form Consent Checkbox --- */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.form__consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form__consent label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  cursor: pointer;
}

.form__consent label a {
  color: var(--color-primary);
  text-decoration: underline;
  font-family: var(--font-mono);
}

.form__consent--error input[type="checkbox"] {
  outline: 2px solid var(--color-error, #f87171);
  outline-offset: 1px;
}

.form__consent--error label {
  color: var(--color-error, #f87171);
}

/* --- Hero Animated Gradient & Floating Shapes --- */
/* --- Particle Canvas --- */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--color-primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-primary) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center center;
  opacity: 0.06;
  z-index: 1;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 70%);
}

[data-theme="dark"] .hero__bg::after {
  opacity: 0.05;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  animation: heroGradientShift 8s ease-in-out infinite;
}

@keyframes heroGradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hero__shape {
  position: absolute;
  border-radius: var(--radius-full);
  animation: float 10s ease-in-out infinite;
  opacity: 0.08;
}

.hero__shape--1 {
  width: 12rem;
  height: 12rem;
  background: var(--color-primary);
  top: -3rem;
  right: -3rem;
  animation-duration: 12s;
}

.hero__shape--2 {
  width: 10rem;
  height: 10rem;
  background: var(--color-accent);
  bottom: -2rem;
  left: -2rem;
  animation-duration: 14s;
  animation-delay: -5s;
}

.hero__shape--3 {
  display: none;
}

.hero__shape--4 {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* --- Hero Scan Line --- */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.35), transparent);
  box-shadow: 0 0 8px rgba(8, 145, 178, 0.2);
  z-index: 2;
  animation: scanLine 8s linear infinite;
  pointer-events: none;
}

[data-theme="dark"] .hero::after {
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}

/* --- Improved Hamburger Animation --- */
.header__menu-btn {
  gap: 0;
  padding: 0;
  width: 2.75rem;
  height: 2.75rem;
  position: relative;
}

.header__menu-btn span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease;
}

.header__menu-btn span:nth-child(1) {
  transform: translateY(-6px);
}

.header__menu-btn span:nth-child(3) {
  transform: translateY(6px);
}

.header__menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
}

.header__menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* --- SVG Icon sizing within containers --- */
.card__icon svg,
.service-detail__icon svg,
.value-card__icon svg,
.contact-info__icon svg,
.header__theme-toggle svg,
.back-to-top svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-detail__icon svg {
  width: 2rem;
  height: 2rem;
}

.value-card__icon svg {
  width: 2rem;
  height: 2rem;
}

/* --- View Transitions (progressive enhancement) --- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fadeOut 0.25s ease forwards;
}

::view-transition-new(root) {
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* --- FAQ Accordion --- */
.faq {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--transition-fast), border-left var(--transition-fast);
}

.faq__item:hover {
  border-color: var(--color-primary);
}

.faq__item.active {
  border-left: 2px solid var(--color-primary);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  text-align: left;
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

.faq__answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 280px;
  max-width: 420px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease forwards;
}

.toast--removing {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 1px;
}

.toast--success { border-left: 3px solid var(--color-success); }
.toast--success .toast__icon { color: var(--color-success); }

.toast--error { border-left: 3px solid var(--color-error); }
.toast--error .toast__icon { color: var(--color-error); }

.toast--info { border-left: 3px solid var(--color-info); }
.toast--info .toast__icon { color: var(--color-info); }

.toast__content {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0;
  display: flex;
  transition: color var(--transition-fast);
}

.toast__close:hover {
  color: var(--color-text);
}

/* --- Scroll Progress Ring --- */
.back-to-top__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.back-to-top__ring circle {
  fill: none;
  stroke-width: 3;
}

.back-to-top__ring-bg {
  stroke: var(--color-border);
}

.back-to-top__ring-progress {
  stroke: #ffffff;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset 50ms linear;
}

.back-to-top__arrow {
  position: relative;
  z-index: 1;
}

/* --- Form Validation Micro-Interactions --- */
.form__group--valid .form__input,
.form__group--valid .form__select,
.form__group--valid .form__textarea {
  border-color: var(--color-success);
}

.form__group--valid .form__input:focus,
.form__group--valid .form__select:focus,
.form__group--valid .form__textarea:focus {
  box-shadow: 0 0 0 3px var(--color-success-light);
}

.form__group--invalid .form__input,
.form__group--invalid .form__select,
.form__group--invalid .form__textarea {
  border-color: var(--color-error);
}

.form__group--invalid .form__input:focus,
.form__group--invalid .form__select:focus,
.form__group--invalid .form__textarea:focus {
  box-shadow: 0 0 0 3px var(--color-error-light);
}

.form__feedback {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  min-height: 1.25rem;
}

.form__feedback--valid {
  color: var(--color-success);
}

.form__feedback--invalid {
  color: var(--color-error);
}

.form__feedback svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* --- Video Testimonials --- */
.video-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

.video-card__bg {
  position: absolute;
  inset: 0;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
}

.video-card:hover .video-card__play {
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card__play svg {
  color: #ffffff;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 2px;
}

.video-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #ffffff;
}

.video-card__name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.video-card__role {
  font-size: var(--text-xs);
  opacity: 0.8;
}

/* --- 404 Enhanced --- */
.error-404__number {
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-6);
  animation: float404 4s ease-in-out infinite;
}

.error-404__search {
  max-width: 24rem;
  margin: 0 auto var(--space-6);
}

.error-404__search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  text-align: center;
  transition: all var(--transition-fast);
}

.error-404__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.error-404__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.error-404__pill {
  display: inline-flex;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.error-404__pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.error-404__pill[hidden] {
  display: none;
}

/* --- Blog / Article Styles --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.article-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card__body {
  padding: var(--space-6);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.article-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* Article Page Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-12);
  align-items: start;
}

.article__content {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
}

.article__content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.article__content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.article__content p {
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
}

.article__content ul,
.article__content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
  color: var(--color-text-muted);
}

.article__content li {
  margin-bottom: var(--space-2);
  list-style: disc;
  line-height: 1.7;
}

.article__content ol li {
  list-style: decimal;
}

.article__sidebar {
  position: sticky;
  top: calc(var(--header-height-scrolled) + var(--space-6));
}

.article__sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.article__sidebar-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.article__sidebar-link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.article__sidebar-link:hover {
  color: var(--color-primary);
}

/* --- Legal Pages --- */
.legal-content {
  font-size: var(--text-base);
  line-height: 1.8;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.legal-content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  color: var(--color-text-muted);
}

.legal-content li {
  margin-bottom: var(--space-2);
  list-style: disc;
  line-height: 1.7;
}

/* --- Language Toggle --- */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(8, 145, 178, 0.2);
}

/* --- Back to Top shifted (chatbot coordination) --- */
.back-to-top--shifted {
  bottom: 6rem;
}

/* ==========================================================================
   Chatbot Component
   ========================================================================== */

/* --- Floating Bubble --- */
.chatbot-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  z-index: var(--z-overlay);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.chatbot-bubble:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
}

.chatbot-bubble__icon,
.chatbot-bubble__close {
  width: 24px;
  height: 24px;
  position: absolute;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.chatbot-bubble__close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.chatbot-bubble--active .chatbot-bubble__icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.chatbot-bubble--active .chatbot-bubble__close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.chatbot-bubble--pulse {
  animation: chatbotBubblePulse 2s ease-in-out 3;
}

/* --- Notification Badge --- */
.chatbot-bubble__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #f87171;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-surface);
  animation: chatbotBadgePing 1.5s ease-in-out infinite;
}

.chatbot-bubble--active .chatbot-bubble__badge {
  display: none;
}

/* --- Teaser Message --- */
.chatbot-teaser {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: var(--z-overlay);
  transform: translateY(10px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-teaser--visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-teaser__text {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}

.chatbot-teaser__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--transition-fast);
}

.chatbot-teaser__close:hover {
  color: var(--color-text);
}

/* --- Chat Window --- */
.chatbot-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 380px;
  height: 500px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  z-index: var(--z-overlay);
  transform-origin: bottom right;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-spring), opacity var(--transition-base);
  overflow: hidden;
}

.chatbot-window--open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
  animation: chatbotWindowGlow 3s ease-in-out infinite;
}

/* --- Header --- */
.chatbot__header {
  background: var(--gradient-primary);
  color: #ffffff;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

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

.chatbot__header-avatar {
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}

.chatbot__header-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  font-family: var(--font-mono);
}

.chatbot__header-status {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.chatbot__header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: var(--radius-full);
  display: inline-block;
}

.chatbot__header-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.chatbot__header-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Messages Area --- */
.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scroll-behavior: smooth;
}

.chatbot__message {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  animation: chatbotSlideUp 0.3s ease forwards;
}

.chatbot__message--bot {
  align-self: flex-start;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
  border-left: 2px solid rgba(8, 145, 178, 0.3);
}

.chatbot__message--user {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #ffffff;
  border-bottom-right-radius: var(--radius-sm);
}

.chatbot__message a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: var(--font-medium);
}

.chatbot__message--user a {
  color: #ffffff;
}

/* --- Typing Indicator --- */
.chatbot__typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
}

.chatbot__typing-dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  animation: chatbotTypingBounce 1.2s ease-in-out infinite;
}

.chatbot__typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot__typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

/* --- Quick Replies --- */
.chatbot__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-3);
}

.chatbot__quick-reply {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  font-family: var(--font-mono);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  animation: chatbotSlideUp 0.3s ease both;
}

.chatbot__quick-reply:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* --- Input Area --- */
.chatbot__input-area {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.chatbot__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
  padding: var(--space-2);
}

.chatbot__input::placeholder {
  color: var(--color-text-muted);
}

.chatbot__send-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chatbot__send-btn:hover:not(:disabled) {
  background: var(--color-primary-light);
}

.chatbot__send-btn:disabled {
  color: var(--color-text-muted);
  cursor: default;
  opacity: 0.5;
}

/* --- Confirmation Summary --- */
.chatbot__summary {
  font-size: var(--text-xs);
  line-height: 1.8;
}

.chatbot__summary strong {
  color: var(--color-text);
}

/* --- Chatbot Links --- */
.chatbot__message a {
  word-break: break-word;
}

/* --- Picture element support for logos --- */
.header__logo picture,
.footer__logo picture {
  display: flex;
  align-items: center;
}

.footer__logo picture {
  display: inline-flex;
}

/* --- Dark Mode Glassmorphism Overrides --- */
[data-theme="dark"] .card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(34, 211, 238, 0.12);
}

[data-theme="dark"] .card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
}

[data-theme="dark"] .service-detail {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(34, 211, 238, 0.12);
}

[data-theme="dark"] .contact-info__card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(34, 211, 238, 0.12);
}

[data-theme="dark"] .btn--primary {
  box-shadow: var(--shadow-md), 0 0 15px rgba(34, 211, 238, 0.2);
}

[data-theme="dark"] .btn--primary:hover {
  box-shadow: var(--shadow-lg), 0 4px 20px rgba(34, 211, 238, 0.35);
}

/* --- Hero Canvas (WebGL Mesh) --- */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero--home { position: relative; }
.hero--home .hero__canvas { pointer-events: auto; }
.hero--home .container { position: relative; z-index: 1; }

/* --- Blog TOC --- */
.toc-card {
  position: sticky;
  top: calc(var(--header-height-scrolled) + var(--space-4));
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.toc-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition-fast);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.toc-link:hover {
  color: var(--color-primary);
  background: rgba(8, 145, 178, 0.06);
}

.toc-link--active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: rgba(8, 145, 178, 0.1);
  font-weight: var(--font-medium);
}

/* --- Reading Progress Bar --- */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: var(--z-toast);
  background: transparent;
}

.article-progress__fill {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  transition: width 80ms linear;
}

/* --- Project Timeline --- */
.timeline {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  padding-left: 48px;
}

.timeline__line {
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -48px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  z-index: 1;
}

.timeline__content {
  padding-top: var(--space-2);
}

.timeline__week {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.timeline__heading {
  font-size: var(--text-lg, 1.125rem);
  font-weight: var(--font-bold, 700);
  margin-bottom: var(--space-2);
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Multi-Step Form --- */
.mf-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.mf-indicator__step {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.mf-indicator__step--active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
}

.mf-indicator__step--done {
  border-color: var(--color-success);
  background: var(--color-success);
  color: #ffffff;
}

.mf-indicator__line {
  width: 3rem;
  height: 2px;
  background: var(--color-border);
  transition: background var(--transition-base);
}

.mf-step {
  display: none;
}

.mf-step--active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.mf-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.mf-invalid {
  border-color: var(--color-error) !important;
  animation: shake 0.3s ease;
}

.form__error {
  display: block;
  color: var(--color-error);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  line-height: 1.4;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* --- Availability Calendar --- */
.cal-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.cal-header {
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
  gap: 2px;
  margin-bottom: var(--space-2);
}

.cal-day {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2);
}

.cal-row {
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
  gap: 2px;
}

.cal-time {
  display: flex;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-right: var(--space-2);
}

.cal-slot {
  text-align: center;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  cursor: default;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.cal-slot--open {
  background: rgba(8, 145, 178, 0.06);
  color: var(--color-success);
  cursor: pointer;
}

.cal-slot--open:hover {
  background: rgba(8, 145, 178, 0.15);
  border-color: var(--color-primary);
}

.cal-slot--taken {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  opacity: 0.5;
}

.cal-slot--selected {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
}

/* --- Lighthouse Dashboard --- */
.lh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 600px;
  margin-inline: auto;
}

.lh-gauge {
  text-align: center;
}

.lh-gauge__svg {
  width: 100%;
  max-width: 120px;
  margin-inline: auto;
  display: block;
}

.lh-gauge__score {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-family-display);
}

.lh-gauge__label {
  font-size: 9px;
  fill: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Service Comparison Table --- */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background: var(--color-bg-alt);
  font-weight: var(--font-semibold);
  white-space: nowrap;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: var(--font-medium);
}

.comparison-table tbody tr:hover {
  background: rgba(8, 145, 178, 0.05);
}

.comparison-table .check {
  color: var(--color-success);
  font-size: var(--text-lg);
}

.comparison-table .dash {
  color: var(--color-text-muted);
}

/* --- Portal Card --- */
.portal-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.portal-card__badge {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.portal-card__badge--progress {
  background: rgba(8, 145, 178, 0.1);
  color: var(--color-primary);
}

.portal-card__badge--review {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.portal-card__badge--complete {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.portal-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.portal-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.portal-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.portal-card__progress {
  margin-bottom: var(--space-4);
}

.portal-card__progress-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
}

.portal-card__bar {
  height: 6px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.portal-card__bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.portal-card__bar-fill--done {
  background: var(--color-success);
}

.portal-card__phases {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.portal-phase {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.portal-phase__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  flex-shrink: 0;
}

.portal-phase--done .portal-phase__dot {
  background: var(--color-success);
}

.portal-phase--active .portal-phase__dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

.portal-phase--active {
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

/* --- Dark Mode Logo --- */
[data-theme="dark"] .header__logo img,
[data-theme="dark"] .footer__logo img,
[data-theme="dark"] .preloader__logo img,
[data-theme="dark"] .chatbot__logo,
[data-theme="dark"] .logo-dark-adapt img {
  filter: brightness(0.85) invert(1) hue-rotate(180deg)
          drop-shadow(0 0 8px rgba(34, 211, 238, 0.3));
  transition: filter 0.3s ease;
}

/* When a dedicated dark logo source is available via <picture>, skip the filter */
[data-theme="dark"] .has-dark-logo img {
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.3));
}

/* --- Chatbot Logo --- */
.chatbot__logo {
  height: 28px;
  width: auto;
  border-radius: 4px;
}

/* ==========================================================================
   Premium Layer Styles (GSAP + Lenis)
   Scoped under html.premium-active to prevent applying without JS
   ========================================================================== */

/* --- Noise Overlay --- */
.noise-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(10) infinite;
}

[data-theme="dark"] .noise-overlay {
  mix-blend-mode: soft-light;
  opacity: 0.05;
}

/* --- Custom Cursor (logo set via cursor.svg in body rule) --- */

/* --- Card Shine Layer --- */
.card__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

/* --- Split Text Characters --- */
.split-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Hero title gradient applied per-character */
html.premium-active .hero--home .hero__title .split-char {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Premium: disable CSS reveal transitions when GSAP handles them --- */
html.premium-active .reveal {
  transition: none !important;
}

/* --- Scroll-driven float for cards (progressive enhancement) --- */
@supports (animation-timeline: view()) {
  .card {
    animation: scrollFadeIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

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

/* ==========================================================================
   Accessibility Toolbar Widget
   ========================================================================== */

/* --- Trigger Button (bottom-left) --- */
.a11y-trigger {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  cursor: pointer;
  z-index: var(--z-overlay);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
              border-color var(--transition-fast), background var(--transition-fast);
}

.a11y-trigger:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.a11y-trigger--active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.a11y-trigger__icon {
  width: 22px;
  height: 22px;
}

/* --- Panel --- */
.a11y-panel {
  position: fixed;
  bottom: 6rem;
  left: 2rem;
  width: 320px;
  max-height: 80vh;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  z-index: var(--z-overlay);
  transform-origin: bottom left;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-spring), opacity var(--transition-base);
  overflow: hidden;
}

/* Bracket decorators */
.a11y-panel::before,
.a11y-panel::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--color-primary);
  border-style: solid;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.a11y-panel::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
  border-radius: 3px 0 0 0;
}

.a11y-panel::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 3px 0;
}

.a11y-panel--open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* --- Panel Header --- */
.a11y-panel__header {
  background: var(--gradient-primary);
  color: #ffffff;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.a11y-panel__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.a11y-panel__close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.a11y-panel__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Panel Body --- */
.a11y-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* --- Control Row --- */
.a11y-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.a11y-control:last-child {
  border-bottom: none;
}

.a11y-control__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
}

.a11y-control__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* --- Toggle Switch --- */
.a11y-toggle {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  padding: 0;
}

.a11y-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
  pointer-events: none;
}

.a11y-toggle--on {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.a11y-toggle--on .a11y-toggle__knob {
  transform: translateX(1.25rem);
}

/* --- Font Size Stepper --- */
.a11y-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.a11y-stepper__btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0;
}

.a11y-stepper__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.a11y-stepper__value {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  font-family: var(--font-mono);
  color: var(--color-text);
  min-width: 2.5rem;
  text-align: center;
}

/* --- Panel Footer --- */
.a11y-panel__footer {
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.a11y-reset-btn {
  width: 100%;
  padding: var(--space-2) var(--space-4);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.a11y-reset-btn:hover {
  border-color: var(--color-error);
  color: var(--color-error);
  background: rgba(248, 113, 113, 0.06);
}

/* --- Reading Guide Line --- */
.a11y-reading-guide {
  position: fixed;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary), 0 0 2px var(--color-primary);
  z-index: var(--z-modal);
  pointer-events: none;
  display: none;
  transition: top 0.05s linear;
}

/* ==========================================================================
   Accessibility Data-Attribute Overrides
   ========================================================================== */

/* --- High Contrast (Light) --- */
[data-a11y-contrast="high"] {
  --color-text: #000000;
  --color-text-muted: #1a1a1a;
  --color-bg: #ffffff;
  --color-bg-alt: #f0f0f0;
  --color-surface: #ffffff;
  --color-border: #333333;
}

/* --- High Contrast (Dark) --- */
[data-a11y-contrast="high"][data-theme="dark"] {
  --color-text: #ffffff;
  --color-text-muted: #e0e0e0;
  --color-bg: #000000;
  --color-bg-alt: #111111;
  --color-surface: #0a0a0a;
  --color-border: #cccccc;
}

/* --- Dyslexia Font --- */
[data-a11y-font="dyslexia"],
[data-a11y-font="dyslexia"] * {
  font-family: 'OpenDyslexic', sans-serif !important;
}

/* --- Highlight Links --- */
[data-a11y-links="highlight"] a {
  text-decoration: underline !important;
  text-decoration-color: var(--color-primary) !important;
  text-underline-offset: 3px;
}

[data-a11y-links="highlight"] a:hover {
  background-color: rgba(8, 145, 178, 0.1);
}

/* --- Pause Animations --- */
[data-a11y-motion="paused"],
[data-a11y-motion="paused"] *,
[data-a11y-motion="paused"] *::before,
[data-a11y-motion="paused"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* --- Text Spacing --- */
[data-a11y-spacing="wide"] {
  letter-spacing: 0.12em;
  word-spacing: 0.16em;
  line-height: 2;
}

[data-a11y-spacing="wide"] p,
[data-a11y-spacing="wide"] li,
[data-a11y-spacing="wide"] span,
[data-a11y-spacing="wide"] td,
[data-a11y-spacing="wide"] th {
  letter-spacing: 0.12em;
  word-spacing: 0.16em;
  line-height: 2;
}

/* ==========================================================================
   Accessibility Toolbar — Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .a11y-trigger {
    width: 2.75rem;
    height: 2.75rem;
    left: 1rem;
    bottom: 1rem;
  }

  .a11y-trigger__icon {
    width: 18px;
    height: 18px;
  }

  .a11y-panel {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform-origin: bottom center;
  }

  .a11y-panel::before {
    top: 12px;
    left: 12px;
  }

  .a11y-panel::after {
    display: none;
  }
}

/* ==========================================================================
   Schedule Page Components
   ========================================================================== */

/* Service Selection Cards */
.schedule-service-card {
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  border: 2px solid transparent;
  user-select: none;
}

.schedule-service-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.schedule-service-card--selected {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15), var(--shadow-lg);
}

.schedule-service-card--selected::before {
  border-color: var(--color-primary) !important;
}

.schedule-service-card--selected::after {
  border-color: var(--color-primary) !important;
}

/* Schedule Calendar */
.schedule-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.schedule-calendar__nav-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: border-color 0.2s, background 0.2s;
}

.schedule-calendar__nav-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}

.schedule-calendar__range {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  min-width: 240px;
  text-align: center;
}

.schedule-calendar__grid {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.schedule-calendar__corner {
  background: var(--color-surface);
  padding: var(--space-3);
}

.schedule-calendar__day-header {
  background: var(--color-surface);
  padding: var(--space-3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.schedule-calendar__day-header--today {
  color: var(--color-primary);
  font-weight: 700;
}

.schedule-calendar__day-name {
  display: block;
  font-weight: 600;
}

.schedule-calendar__day-date {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.schedule-calendar__day-header--today .schedule-calendar__day-date {
  color: var(--color-primary);
}

.schedule-calendar__time-label {
  background: var(--color-surface);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.schedule-calendar__slot {
  padding: var(--space-2);
  text-align: center;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  border: none;
  cursor: default;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.schedule-calendar__slot--available {
  background: rgba(6, 182, 212, 0.06);
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 600;
}

.schedule-calendar__slot--available:hover {
  background: rgba(6, 182, 212, 0.15);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.schedule-calendar__slot--taken {
  background: var(--color-surface);
  color: var(--color-text-muted);
  opacity: 0.4;
}

.schedule-calendar__slot--selected {
  background: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.schedule-calendar__slot-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile calendar list (hidden on desktop) */
.schedule-calendar__mobile-list {
  display: none;
}

.schedule-calendar__mobile-day {
  margin-bottom: var(--space-4);
}

.schedule-calendar__mobile-day-header {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.schedule-calendar__mobile-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.schedule-calendar__mobile-slot {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text);
}

.schedule-calendar__mobile-slot:hover:not(.schedule-calendar__mobile-slot--taken) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.schedule-calendar__mobile-slot--taken {
  opacity: 0.3;
  cursor: default;
  text-decoration: line-through;
}

.schedule-calendar__mobile-slot--selected {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

/* Schedule Summary */
.schedule-summary {
  max-width: 600px;
  margin: 0 auto;
}

.schedule-summary__inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.schedule-summary__inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--color-primary);
  border-left: 2px solid var(--color-primary);
  border-radius: var(--radius-lg) 0 0 0;
}

.schedule-summary__inner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  border-radius: 0 0 var(--radius-lg) 0;
}

.schedule-summary__inner--success {
  text-align: center;
}

.schedule-summary__check {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--color-success);
}

.schedule-summary__check svg {
  width: 100%;
  height: 100%;
}

.schedule-summary__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.schedule-summary__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.schedule-summary__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.schedule-summary__item--full {
  grid-column: 1 / -1;
}

.schedule-summary__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.schedule-summary__value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

/* Chatbot Inline Calendar */
.chatbot__inline-calendar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin: var(--space-2) 0;
  max-width: 280px;
}

.chatbot__inline-calendar .chatbot__cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chatbot__inline-calendar .chatbot__cal-nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  padding: var(--space-1);
}

.chatbot__inline-calendar .chatbot__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-size: var(--text-xs);
}

.chatbot__inline-calendar .chatbot__cal-day-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--color-text-muted);
  padding: 2px;
  text-transform: uppercase;
}

.chatbot__inline-calendar .chatbot__cal-day {
  padding: 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: var(--text-xs);
}

.chatbot__inline-calendar .chatbot__cal-day:hover {
  background: rgba(6, 182, 212, 0.15);
}

.chatbot__inline-calendar .chatbot__cal-day--disabled {
  opacity: 0.3;
  cursor: default;
}

.chatbot__inline-calendar .chatbot__cal-day--selected {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.chatbot__inline-calendar .chatbot__cal-day--today {
  border: 1px solid var(--color-primary);
}

/* Chatbot Time Grid */
.chatbot__time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin: var(--space-2) 0;
  max-width: 280px;
}

.chatbot__time-slot {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-align: center;
  transition: all 0.2s;
  color: var(--color-text);
}

.chatbot__time-slot:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.chatbot__time-slot--selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
