/**
 * Coeus Authentication Modal Styles
 */

.coeus-auth-modal.reveal {
  background: #111827;
  color: #f3f4f6;
  border-radius: 12px;
  border: 1px solid #1f2937;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 0;
  max-width: 480px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.coeus-auth-modal .auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #0b0f19;
  border-bottom: 1px solid #1f2937;
  position: relative;
}

.coeus-auth-modal .auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.coeus-auth-modal .auth-brand-logo i {
  color: #3b82f6;
  font-size: 1.3rem;
}

.coeus-auth-modal .close-button {
  color: #9ca3af !important;
  font-size: 1.5rem !important;
  top: 1rem !important;
  right: 1.25rem !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: color 0.15s ease;
}

.coeus-auth-modal .close-button:hover {
  color: #ffffff !important;
}

.coeus-auth-modal .auth-modal-body {
  padding: 1.5rem;
}

/* Tabs */
.coeus-auth-modal .auth-tabs {
  display: flex;
  list-style: none;
  margin: 0 0 1.25rem 0;
  padding: 0;
  background: #1f2937;
  border-radius: 8px;
  padding: 4px;
}

.coeus-auth-modal .auth-tab-item {
  flex: 1;
  text-align: center;
}

.coeus-auth-modal .auth-tab-btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: transparent !important;
  color: #9ca3af !important;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.coeus-auth-modal .auth-tab-item.active .auth-tab-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.coeus-auth-modal .auth-tab-btn:hover:not(.active) {
  color: #e5e7eb !important;
}

/* Alerts */
.coeus-auth-modal .auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.coeus-auth-modal .auth-alert.auth-alert-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid #dc2626;
  color: #fca5a5;
}

.coeus-auth-modal .auth-alert.auth-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.coeus-auth-modal .auth-alert.auth-alert-info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid #3b82f6;
  color: #93c5fd;
}

/* Form inputs */
.coeus-auth-modal .auth-form-group {
  margin-bottom: 1.1rem;
}

.coeus-auth-modal .auth-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 0.35rem;
}

.coeus-auth-modal .auth-form-group label small {
  color: #9ca3af;
  font-weight: 400;
}

.coeus-auth-modal .input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.coeus-auth-modal .input-icon-wrap .input-icon {
  position: absolute;
  left: 0.85rem;
  color: #6b7280;
  font-size: 0.95rem;
  pointer-events: none;
}

.coeus-auth-modal .input-icon-wrap input {
  width: 100%;
  height: 2.65rem;
  padding: 0.5rem 0.85rem 0.5rem 2.4rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.coeus-auth-modal .input-icon-wrap input:focus {
  background: #1e293b;
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  color: #ffffff;
}

.coeus-auth-modal .auth-action-row {
  margin-top: 1.35rem;
  margin-bottom: 1rem;
}

.coeus-auth-modal .auth-submit-btn {
  width: 100%;
  height: 2.75rem;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  padding: 0 1rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.coeus-auth-modal .auth-submit-btn:hover {
  background: #1d4ed8 !important;
}

.coeus-auth-modal .auth-submit-btn:active {
  transform: translateY(1px);
}

.coeus-auth-modal .auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.coeus-auth-modal .auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

.coeus-auth-modal .auth-switch-link {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.15s ease;
}

.coeus-auth-modal .auth-switch-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.coeus-auth-modal .auth-link-divider {
  color: #4b5563;
}

.coeus-auth-modal .auth-view-intro {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* Account Profile View */
.coeus-auth-modal .auth-account-box {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.coeus-auth-modal .auth-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  border: 2px solid #2563eb;
}

.coeus-auth-modal .auth-account-name {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.coeus-auth-modal .auth-account-meta {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.coeus-auth-modal .auth-account-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.coeus-auth-modal .auth-account-actions .button {
  margin-bottom: 0;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
}

/* ==========================================================================
   Coeus Unified Tip & Credit Modal Styles
   ========================================================================== */
.coeus-tip-modal.reveal {
  background: #111827;
  color: #f3f4f6;
  border-radius: 12px;
  border: 1px solid #1f2937;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 0;
  max-width: 520px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.coeus-tip-modal .tip-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #0b0f19;
  border-bottom: 1px solid #1f2937;
  position: relative;
}

.coeus-tip-modal .tip-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.coeus-tip-modal .tip-brand-logo i {
  color: #f59e0b;
  font-size: 1.3rem;
}

.coeus-tip-modal .tip-modal-body {
  padding: 1.5rem;
}

.coeus-tip-modal .tip-modal-subtext {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

/* Amount selection section */
.coeus-tip-modal .tip-amount-section {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.coeus-tip-modal .tip-amount-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.coeus-tip-modal .tip-amount-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
}

.coeus-tip-modal .tip-amount-input-wrap {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}

.coeus-tip-modal .tip-currency-sym {
  font-weight: 700;
  color: #f59e0b;
  font-size: 1.1rem;
  margin-right: 0.25rem;
}

.coeus-tip-modal .tip-number-input {
  width: 70px;
  height: 2rem;
  padding: 0.2rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: right;
  margin: 0;
  box-shadow: none;
}

.coeus-tip-modal .tip-number-input:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.coeus-tip-modal .tip-range-slider {
  width: 100%;
  margin: 0.5rem 0 0.25rem 0;
  accent-color: #f59e0b;
  cursor: pointer;
}

.coeus-tip-modal .stripe-tip-slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

.coeus-tip-modal .tip-presets {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.coeus-tip-modal .tip-preset-btn {
  flex: 1;
  background: #334155;
  color: #cbd5e1;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.coeus-tip-modal .tip-preset-btn:hover {
  background: #475569;
  color: #ffffff;
}

.coeus-tip-modal .tip-preset-btn.active {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
  font-weight: 700;
}

/* Consolidated Dynamic Progressive Credits Output Card */
.coeus-tip-modal .tip-credits-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #3b82f6;
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.coeus-tip-modal .tip-credits-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.coeus-tip-modal .tip-credits-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.coeus-tip-modal .tip-bonus-badge {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.coeus-tip-modal .tip-credits-primary-display {
  text-align: center;
  padding: 0.5rem 0 0.25rem 0;
}

.coeus-tip-modal .tip-total-credits-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.coeus-tip-modal .tip-breakdown-subline {
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 0.35rem;
  letter-spacing: 0.2px;
}

/* Auth / Guest section */
.coeus-tip-modal .tip-auth-section {
  margin-bottom: 1.25rem;
}

.coeus-tip-modal .tip-auth-authenticated {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
}

.coeus-tip-modal .tip-auth-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6ee7b7;
}

.coeus-tip-modal .tip-auth-guest-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.85rem;
}

.coeus-tip-modal .tip-guest-prompt {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.coeus-tip-modal .tip-guest-prompt-text {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.coeus-tip-modal .tip-guest-prompt-text p {
  color: #9ca3af;
  margin: 0.15rem 0 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.coeus-tip-modal .tip-guest-toggle-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.coeus-tip-modal .tip-auth-open-btn {
  margin: 0;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
}

.coeus-tip-modal .tip-guest-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #94a3b8;
  cursor: pointer;
  margin: 0;
}

.coeus-tip-modal .tip-guest-checkbox-label input {
  margin: 0;
  cursor: pointer;
}

/* Pay Button */
.coeus-tip-modal .tip-pay-btn {
  width: 100%;
  height: 3rem;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.15s ease;
  margin-bottom: 0.5rem;
}

.coeus-tip-modal .tip-pay-btn:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.coeus-tip-modal .tip-pay-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.coeus-tip-modal .atlas-tip-status {
  font-size: 0.85rem;
  text-align: center;
  margin: 0.35rem 0 0 0;
}

.coeus-tip-modal .atlas-tip-status.error {
  color: #f87171;
}

.coeus-tip-modal .atlas-tip-status.ok {
  color: #4ade80;
}
