/* ===== RENEWO AUTH — Styles (modal + inline) ===== */

/* MODAL */
.rw-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.rw-auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.rw-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rw-auth-panel {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 28px;
  width: calc(100% - 40px);
  max-width: 420px;
  color: #fff;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.rw-auth-modal.is-open .rw-auth-panel {
  transform: translateY(0) scale(1);
}

.rw-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.rw-auth-close:hover { color: #fff; }

.rw-auth-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}
.rw-auth-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.5;
}
.rw-auth-sub strong {
  color: #22c55e;
  font-weight: 500;
}
.rw-auth-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  font-weight: 500;
}
.rw-auth-input {
  width: 100%;
  padding: 12px 16px;
  background: #060606;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.rw-auth-input:focus { border-color: #22c55e; }

.rw-auth-error {
  color: #ef4444;
  font-size: 13px;
  margin: 10px 0 0;
  min-height: 18px;
}
.rw-auth-submit {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  background: #22c55e;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.rw-auth-submit:hover { background: #16a34a; }
.rw-auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.rw-auth-secondary {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.rw-auth-secondary:hover { border-color: #22c55e; color: #fff; }
.rw-auth-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}
.rw-auth-sent-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.rw-auth-view { text-align: left; }
.rw-auth-view[data-view="sent"] { text-align: center; }

/* INLINE BLOCK (audit/free-gift) */
.rw-auth-inline {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 14px;
  align-items: flex-start;
  margin: 24px 0;
}
.rw-auth-inline-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rw-auth-inline-icon-success {
  background: rgba(34, 197, 94, 0.25);
}
.rw-auth-inline-body { flex: 1; min-width: 0; }
.rw-auth-inline-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary, #fff);
}
.rw-auth-inline-body p {
  font-size: 13px;
  color: var(--text-secondary, rgba(255,255,255,0.65));
  margin: 0 0 14px;
  line-height: 1.55;
}
.rw-auth-inline-body p strong { color: #22c55e; }

.rw-auth-inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rw-auth-inline-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  font-size: 13px;
}
.rw-auth-inline-btn {
  width: auto;
  margin-top: 0;
  padding: 10px 20px;
  font-size: 13px;
  white-space: nowrap;
}
.rw-auth-inline-error {
  font-size: 12px;
  margin-top: 8px;
}

/* NAV ACCOUNT button */
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.nav-account:hover {
  border-color: #22c55e;
  color: #22c55e;
}
.nav-account svg { flex-shrink: 0; }

/* Responsive */
@media (max-width: 640px) {
  .rw-auth-panel {
    padding: 28px 22px;
  }
  .rw-auth-inline {
    padding: 18px 20px;
  }
  .rw-auth-inline-form { flex-direction: column; }
  .rw-auth-inline-btn { width: 100%; }
}
