/* Nav CTA cluster + Login dropdown */
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-login {
  padding: 7px 13px;
  font-size: 13px;
  background: rgba(0,42,65,0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.nav-login:hover { background: rgba(0,42,65,0.08); border-color: rgba(0,42,65,0.28); }
.nav-demo {
  padding: 7px 13px;
  font-size: 13px;
}
@media (max-width: 640px) {
  .nav-login span, .nav-login svg { display: inline; }
  .nav-demo { display: none; }
}

.login-dropdown {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  overflow-y: auto;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.login-dropdown.open {
  opacity: 1;
  pointer-events: auto;
}
.login-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 11, 26, 0.7);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: auto;
  background: linear-gradient(180deg, rgba(15,29,61,0.98), rgba(10,21,48,0.98));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0,0,0,0.6),
    0 0 100px rgba(0,137,214,0.2);
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-dropdown.open .login-card { transform: translateY(0) scale(1); }
.login-dropdown.open .login-card { transform: translateY(0) scale(1); }
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(49,176,245,0.6), transparent);
}

.login-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.login-header img { display: block; }
.login-title { font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.login-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.login-close {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s ease;
}
.login-close:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  display: flex; justify-content: space-between; align-items: baseline;
}
.login-forgot {
  font-size: 11px;
  color: var(--so-blue-light);
  text-decoration: none;
  font-weight: 500;
}
.login-forgot:hover { color: #BAE0FF; text-decoration: underline; }

.login-input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: all 0.2s ease;
}
.login-input-wrap:focus-within {
  border-color: rgba(0,137,214,0.6);
  box-shadow: 0 0 0 3px rgba(0,137,214,0.15);
  background: rgba(0,0,0,0.5);
}
.login-input-wrap > svg:first-child {
  margin-left: 12px;
  color: var(--text-faint);
  flex: 0 0 auto;
}
.login-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.login-input-wrap input::placeholder { color: var(--text-faint); }
.login-eye {
  background: none; border: none; cursor: pointer;
  padding: 8px 12px;
  color: var(--text-faint);
  transition: color 0.2s ease;
}
.login-eye:hover { color: var(--text-dim); }

.login-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  margin: 2px 0 4px;
}
.login-remember input {
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.login-remember input:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.login-remember input:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-submit {
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  font-weight: 500;
  margin-top: 4px;
}
.login-cancel {
  justify-content: center;
  width: 100%;
  padding: 11px 18px;
  font-size: 13px;
  margin-top: 6px;
}
.login-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}
.login-submit.loading svg { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 12px;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--line);
}

.login-register {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
}

.login-privacy {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-faint);
  text-align: center;
}
.login-privacy a {
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: rgba(120,170,255,0.3);
  text-underline-offset: 2px;
}
.login-privacy a:hover { color: #BAE0FF; text-decoration-color: currentColor; }

/* Honeypot + booking errors */
.demo-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.demo-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Book a demo modal */
.demo-modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.demo-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.demo-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 11, 26, 0.7);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.demo-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  background: linear-gradient(180deg, rgba(15,29,61,0.98), rgba(10,21,48,0.98));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 28px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0,0,0,0.6),
    0 0 100px rgba(0,137,214,0.2);
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-modal.open .demo-card { transform: translateY(0) scale(1); }
.demo-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(49,176,245,0.7), transparent);
}
.demo-close { position: absolute; top: 18px; right: 18px; }

.demo-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-right: 36px;
}
.demo-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,137,214,0.2), rgba(0,137,214,0.05));
  border: 1px solid rgba(0,137,214,0.35);
  display: grid; place-items: center;
  color: #BAE0FF;
  flex: 0 0 auto;
  box-shadow: 0 0 24px rgba(0,137,214,0.25);
}
.demo-title { font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.demo-sub { font-size: 13px; color: var(--text-dim); margin-top: 4px; line-height: 1.5; }

.login-optional {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 400;
}

.demo-textarea {
  align-items: flex-start;
}
.demo-textarea textarea {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 72px;
  width: 100%;
}
.demo-textarea textarea::placeholder { color: var(--text-faint); }

/* Success state */
.demo-success {
  display: none;
  text-align: center;
  padding: 12px 4px 4px;
}
.demo-success.shown { display: block; animation: successIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes successIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.4);
  color: var(--mint);
  display: grid; place-items: center;
  margin: 8px auto 16px;
  box-shadow: 0 0 32px rgba(52,211,153,0.3);
  animation: successPulse 2s ease-in-out infinite;
}
@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 32px rgba(52,211,153,0.3); }
  50% { box-shadow: 0 0 48px rgba(52,211,153,0.5); }
}
.demo-success-title { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.demo-success-text { font-size: 14px; color: var(--text-dim); margin: 0 auto 20px; max-width: 320px; }
