.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  font-weight: 700;
  transition: 300ms ease;
  white-space: nowrap;
}

.btn-lg { padding: 18px 36px; font-size: 16px; }

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(14, 159, 142, 0.5);
  filter: brightness(1.1);
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-green);
}

.btn-green:hover { transform: translateY(-2px); filter: brightness(1.08); }

.btn-cyan {
  background: var(--cyan);
  color: #fff;
  box-shadow: var(--shadow-cyan);
}

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

.btn-outline {
  border: 1px solid rgba(31, 182, 214, 0.3);
  color: var(--cyan);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 80px;
  background: var(--navy);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(14, 159, 142, 0.1) 0%, transparent 60%);
}

.page-hero .wrap { position: relative; z-index: 1; text-align: center; }

.legal-card {
  max-width: 768px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(14, 159, 142, 0.12);
  background: rgba(15, 36, 58, 0.3);
  backdrop-filter: blur(20px);
}

.legal-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.legal-card p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 32px;
}

.legal-card p:last-child { margin-bottom: 0; }

.faq-item {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  transition: 300ms ease;
}

.faq-item.is-open {
  border-color: rgba(14, 159, 142, 0.3);
  background: rgba(22, 55, 79, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  text-align: start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 600;
}

.faq-item.is-open button { color: var(--teal); }

.faq-plus {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  transition: 300ms ease;
}

.faq-item.is-open .faq-plus {
  background: rgba(14, 159, 142, 0.15);
  border-color: rgba(14, 159, 142, 0.2);
  color: var(--teal);
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms ease, opacity 300ms ease;
}

.faq-item.is-open .faq-body {
  max-height: 320px;
  opacity: 1;
}

.faq-body-inner {
  padding: 0 24px 24px;
}

.faq-body-inner::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.15;
}

.faq-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  outline: none;
  font-size: 14px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 159, 142, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.25); }

.float-field { position: relative; }

.float-field input {
  width: 100%;
  padding-block: 28px 10px;
  padding-inline-start: 48px;
  padding-inline-end: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: 300ms ease;
}

.float-field input:focus {
  border-color: rgba(14, 159, 142, 0.6);
  box-shadow: 0 0 0 3px rgba(14, 159, 142, 0.08);
}

.float-field:focus-within .field-icon { color: #0E9F8E; }

.float-field label {
  position: absolute;
  inset-inline-start: 44px;
  inset-inline-end: auto;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transition: 200ms ease;
}

.float-field input:focus + label,
.float-field.is-filled label {
  top: 8px;
  transform: none;
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
}

.float-field .field-icon,
.float-field .toggle-pass {
  position: absolute;
  top: 50%;
  inset-inline-start: 12px;
  inset-inline-end: auto;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.25);
}

.float-field .toggle-pass {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.3);
}

.form-error {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 162, 77, 0.1);
  border: 1px solid rgba(255, 162, 77, 0.2);
  color: var(--orange);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-success {
  text-align: center;
  padding: 64px 16px;
}

.form-success i { font-size: 40px; color: var(--green); }

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: rgba(95, 190, 70, 0.12);
  color: #5FBE46;
}

.alert-error {
  background: rgba(255, 80, 80, 0.12);
  color: #ff8b8b;
}

#app-toasts {
  position: fixed;
  inset-block-start: 20px;
  inset-inline-end: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.app-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 36, 58, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  animation: toastIn 0.28s ease;
}

.app-toast i { font-size: 18px; margin-top: 2px; }
.app-toast-success { border-color: rgba(95, 190, 70, 0.35); }
.app-toast-success i { color: #5FBE46; }
.app-toast-error { border-color: rgba(255, 107, 107, 0.35); }
.app-toast-error i { color: #FF6B6B; }
.app-toast.is-out { opacity: 0; transform: translateY(-8px); transition: 0.25s ease; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
