/* ============================================================
   ea-auth.css — Auth system + CTA styles
   Dark premium theme with orange accent
   ============================================================ */

/* ---- MODAL OVERLAY ---- */
.ea-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: eaFadeIn 0.2s ease;
}

.ea-modal-overlay[style*="display:none"] {
  display: none !important;
}

.ea-modal-overlay[style*="display:flex"] {
  display: flex !important;
}

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

/* ---- MODAL CARD ---- */
.ea-modal {
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: eaSlideUp 0.25s ease;
}

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

/* ---- CLOSE BUTTON ---- */
.ea-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 1.2rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.ea-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ---- LOGO ---- */
.ea-modal-logo {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #FF6B00;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* ---- TABS ---- */
.ea-modal-tabs {
  display: flex;
  gap: 4px;
  background: #060608;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.ea-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.2s;
  font-family: inherit;
  min-height: 44px;
}

.ea-tab:hover {
  background: #141418;
  color: rgba(255, 255, 255, 0.8);
}

.ea-tab.active {
  background: #FF6B00;
  color: #fff;
  font-weight: 600;
}

/* ---- FORM FIELDS ---- */
.ea-field {
  margin-bottom: 16px;
}

.ea-field label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  font-weight: 500;
}

.ea-field input {
  width: 100%;
  background: #060608;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: max(16px, 1rem);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.ea-field input:focus {
  border-color: #FF6B00;
}

.ea-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ea-field input:-webkit-autofill,
.ea-field input:-webkit-autofill:hover,
.ea-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #060608 inset !important;
  -webkit-text-fill-color: #fff !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ---- SUBMIT BUTTON ---- */
.ea-btn-submit {
  width: 100%;
  background: #FF6B00;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 6px;
  min-height: 48px;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.ea-btn-submit:hover {
  background: #FF8C3B;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.15);
}

.ea-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- FORM LINK ---- */
.ea-form-link {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.ea-form-link a {
  color: #FF6B00;
  text-decoration: none;
}

.ea-form-link a:hover {
  color: #FF8C3B;
}

/* ---- MESSAGES ---- */
.ea-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.ea-msg-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.ea-msg-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* ---- NAV AUTH ---- */
.ea-nav-auth-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ea-nav-btn-login {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  font-family: inherit;
  min-height: 44px;
}

.ea-nav-btn-login:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ea-nav-btn-register {
  border: 1px solid #FF6B00;
  background: #FF6B00;
  color: #fff;
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  font-family: inherit;
  min-height: 44px;
}

.ea-nav-btn-register:hover {
  background: #FF8C3B;
  border-color: #FF8C3B;
}

.ea-nav-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.ea-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

.ea-nav-user-chip button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.75rem;
  font-family: inherit;
  padding: 3px 8px;
  margin-left: 4px;
  border-radius: 5px;
  transition: all 0.2s;
}

.ea-nav-user-chip button:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ---- TOOL CTA WIDGET ---- */
.ea-tool-cta-wrap {
  margin: 32px 0;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 24px;
}

.ea-cta-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: 20px 0;
}

/* ---- SPINNER ---- */
.ea-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FF6B00;
  border-radius: 50%;
  animation: eaSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes eaSpin {
  to { transform: rotate(360deg); }
}

/* ---- CTA PRICE ---- */
.ea-cta-price {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1;
}

.ea-cta-price small {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.ea-cta-price span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  margin-left: 8px;
}

/* ---- CTA BUTTONS ---- */
.ea-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 48px;
}

.ea-btn-buy {
  background: #FF6B00;
  color: #fff;
}

.ea-btn-buy:hover {
  background: #FF8C3B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.25);
}

.ea-btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ea-btn-access {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.ea-btn-access:hover {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
}

.ea-cta-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 10px;
}

.ea-owned-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---- TOAST NOTIFICATIONS ---- */
.ea-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ea-toast {
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: eaSlideIn 0.3s ease;
  color: #fff;
  max-width: 320px;
}

.ea-toast-success {
  border-left: 3px solid #22c55e;
  color: #22c55e;
}

.ea-toast-error {
  border-left: 3px solid #ef4444;
  color: #ef4444;
}

.ea-toast-info {
  border-left: 3px solid #FF6B00;
  color: #FF6B00;
}

@keyframes eaSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .ea-modal {
    padding: 28px 20px;
  }

  .ea-modal-logo {
    font-size: 16px;
  }

  .ea-btn-cta {
    width: 100%;
    justify-content: center;
  }

  .ea-tool-cta-wrap {
    padding: 18px;
  }

  .ea-toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .ea-toast {
    max-width: 100%;
  }
}
