/* ============================================================
   SirenUA.online — Referral Portal Shell (header, session banner, mode switch)
   Hub components live in css/referral-hub.css
   ============================================================ */

/* ── Mode Switcher & Security Banner ── */
.referral-portal-header {
  padding: 130px 0 36px;
  position: relative;
  z-index: 10;
  text-align: center;
}

.security-badge-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(56, 189, 248, 0.1) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 9999px;
  color: var(--dash-cyan) !important;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
}

.security-badge-banner.admin-mode {
  background: rgba(251, 191, 36, 0.1) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: var(--dash-gold) !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.15);
}

.mode-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.mode-toggle-group {
  display: inline-flex;
  background: rgba(18, 27, 40, 0.8) !important;
  padding: 5px;
  border-radius: 999px !important;
  border: 1px solid var(--dash-border) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px !important;
  border-radius: 999px !important;
  border: none;
  background: transparent;
  color: var(--dash-text-secondary) !important;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}

.mode-btn.active {
  background: var(--dash-blue-cta-gradient) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

.mode-btn.active.admin-active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
  color: #ffffff !important;
}

.security-badge-banner.is-live {
  background: rgba(74, 222, 128, 0.1) !important;
  border-color: rgba(74, 222, 128, 0.35) !important;
  color: #4ade80 !important;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.18);
}

.referral-program-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 26px;
}

.referral-program-pills span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

/* ── Partner Authentication Modal ── */
.auth-method-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  transition: all 0.22s ease;
}

.auth-method-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.08);
}

.auth-method-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #06121c;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.auth-method-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--dash-text-secondary);
  line-height: 1.6;
}

.auth-method-steps strong {
  color: #ffffff;
}

.partner-auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.partner-auth-input:focus {
  border-color: var(--dash-cyan);
  outline: none;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.partner-auth-error {
  display: none;
  color: #ef4444;
  font-size: 0.82rem;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  line-height: 1.4;
}

