.fsa-invito {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #eaf6ee 0%, #f8fbf5 100%);
  border-radius: 20px;
  border: 1px solid rgba(46, 158, 91, 0.15);
}

.fsa-invito__icon {
  color: #2E9E5B;
  margin-bottom: 12px;
}

.fsa-invito__icon svg {
  display: block;
  margin: 0 auto;
}

.fsa-invito__title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #28303D;
  margin: 0 0 8px;
}

.fsa-invito__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #6b7480;
  margin: 0 0 26px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.fsa-invito__btn-wrap {
  position: relative;
  display: inline-block;
}

.fsa-invito__btn-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 40px;
  background: rgba(46, 158, 91, 0.35);
  animation: fsa-pulse 2.4s ease-out infinite;
  z-index: 0;
}

@keyframes fsa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fsa-invito__btn-wrap::before {
    animation: none;
    opacity: 0;
  }
}

.btn-record {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #2E9E5B;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

.btn-record:hover {
  background: #257e49;
}

.fsa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 48, 61, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

.fsa-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.fsa-overlay__inner {
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
}

.fsa-overlay__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

.fsa-overlay__title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #28303D;
  margin: 0 0 24px;
}

.fsa-recorder__btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #F16234;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  cursor: pointer;
}

.fsa-recorder__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F16234;
  transition: border-radius 0.2s ease;
}

.fsa-recorder__btn.is-recording .fsa-recorder__dot {
  border-radius: 6px;
}

.fsa-recorder__status {
  color: #666;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
}

.fsa-recorder__timer {
  font-size: 20px;
  font-weight: bold;
  color: #28303D;
  margin-top: 8px;
}

.fsa-recorder__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.fsa-recorder__name {
  margin-top: 16px;
  text-align: left;
}

.fsa-recorder__name label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #6b7480;
  margin-bottom: 6px;
}

.fsa-recorder__name input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #28303D;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.fsa-recorder__name input:focus {
  outline: none;
  border-color: #2E9E5B;
}

.fsa-recorder__name input.is-invalid {
  border-color: #d64545;
}

.fsa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.fsa-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.fsa-btn svg {
  flex-shrink: 0;
}

.fsa-btn--retry {
  background: #28303D;
  color: #fff;
}

.fsa-btn--retry:hover:not(:disabled) {
  background: #1b212a;
}

.fsa-btn--confirm {
  background: #2E9E5B;
  color: #fff;
}

.fsa-btn--confirm:hover:not(:disabled) {
  background: #257e49;
}

.foglie-list {
  margin-top: 20px;
}

.foglia-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.foglia-item__label {
  font-size: 13px;
  color: #999;
  font-family: 'DM Sans', sans-serif;
}

.foglia-item__play {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #28303D;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.foglia-item__play:hover {
  background: #F16234;
}

.foglia-item__play svg {
  display: block;
}
