/* ═══════════════════════════════════════════════════════════════
   FRIEND PROFILE SHEET — Futuristic UI v2
   ═══════════════════════════════════════════════════════════════ */

.fp-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(15,17,25,0.98) 0%, rgba(8,10,18,0.99) 100%);
  border: 1px solid rgba(255,107,26,0.15);
  box-shadow:
    0 0 40px rgba(255,107,26,0.05),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Banner */
.fp-banner {
  position: relative;
  height: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1016 0%, #1a0f08 50%, #0d1016 100%);
}
.fp-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.fp-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8,10,18,0.95) 100%);
}
.fp-banner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,26,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: fp-grid-scroll 20s linear infinite;
  opacity: 0.5;
}
@keyframes fp-grid-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

/* Content area */
.fp-content {
  padding: 0 16px 16px;
  position: relative;
}

/* Hero: Avatar + Rank side by side */
.fp-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: -30px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

/* Avatar column */
.fp-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fp-avatar-wrap {
  position: relative;
}
.fp-avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: var(--ring-color, #ff6b1a);
  animation: fp-ring-glow 3s ease-in-out infinite;
  box-shadow: 0 0 20px color-mix(in srgb, var(--ring-color, #ff6b1a) 40%, transparent);
}
@keyframes fp-ring-glow {
  0%, 100% { box-shadow: 0 0 12px color-mix(in srgb, var(--ring-color, #ff6b1a) 40%, transparent); }
  50% { box-shadow: 0 0 24px color-mix(in srgb, var(--ring-color, #ff6b1a) 70%, transparent); }
}
.fp-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0d1016;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fp-avatar-init {
  font-size: 26px;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
}
.fp-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #56e09a;
  border: 2.5px solid #0d1016;
  box-shadow: 0 0 8px rgba(86,224,154,0.6);
  animation: fp-pulse-dot 2s ease-in-out infinite;
}
@keyframes fp-pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Rank column */
.fp-rank-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fp-rank-img-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-rank-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--rank-glow, #ff6b1a) 50%, transparent));
  animation: fp-rank-float 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes fp-rank-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.fp-rank-pulse {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rank-glow, #ff6b1a) 15%, transparent) 0%, transparent 70%);
  animation: fp-rank-pulse-anim 2.5s ease-in-out infinite;
}
@keyframes fp-rank-pulse-anim {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 0.8; transform: scale(1.1); }
}
.fp-rank-label {
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px currentColor;
}

/* Identity */
.fp-identity {
  text-align: center;
  margin-bottom: 12px;
}
.fp-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.fp-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b1a, #ff9a4d);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}
.fp-username {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}
.fp-status-msg {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin-top: 6px;
  padding: 4px 12px;
  background: rgba(255,107,26,0.05);
  border-radius: 8px;
  border: 1px solid rgba(255,107,26,0.1);
  display: inline-block;
}

/* Badges */
.fp-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--badge-color, #ff6b1a);
  background: color-mix(in srgb, var(--badge-color, #ff6b1a) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge-color, #ff6b1a) 25%, transparent);
  font-family: 'JetBrains Mono', monospace;
}
.fp-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--badge-color, #ff6b1a);
  box-shadow: 0 0 6px var(--badge-color, #ff6b1a);
  animation: fp-badge-blink 2s ease-in-out infinite;
}
@keyframes fp-badge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Stats Grid */
.fp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.fp-stat-panel {
  position: relative;
  padding: 12px 10px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.fp-stat-panel:hover {
  border-color: rgba(255,107,26,0.2);
  background: rgba(255,107,26,0.03);
}
.fp-stat-val {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  line-height: 1.1;
}
.fp-stat-lbl {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.fp-stat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: var(--bar-pct, 0%);
  background: linear-gradient(90deg, var(--bar-color, #ff6b1a), color-mix(in srgb, var(--bar-color, #ff6b1a) 60%, #fff));
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--bar-color, #ff6b1a);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bio */
.fp-bio {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 12px;
}

/* Meta */
.fp-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 4px;
}
.fp-meta-item {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

/* Actions */
.fp-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 6px;
}
.fp-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fp-btn-primary {
  background: linear-gradient(135deg, #ff6b1a 0%, #ff4500 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,107,26,0.3);
}
.fp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,107,26,0.4);
}
.fp-btn-primary:active {
  transform: translateY(0);
}
.fp-btn-secondary {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}
.fp-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,107,26,0.3);
}
.fp-btn-ghost {
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}
.fp-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px 14px;
}
.fp-btn-sm {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.fp-btn-sm:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fp-avatar-ring,
  .fp-rank-img,
  .fp-rank-pulse,
  .fp-online-dot,
  .fp-badge-dot,
  .fp-banner-grid {
    animation: none !important;
  }
}

/* ─── Profile Rank Card ─── */
.pmg-rank-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 12px;
}
.pmg-rank-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
.pmg-rank-img-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pmg-rank-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255,255,255,.3));
  animation: pmg-rank-float 3s ease-in-out infinite;
}
.pmg-rank-level {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.8;
}
@keyframes pmg-rank-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Call bubbles in chat */
.bubble-call {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 6px 40px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.bubble-call--missed {
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.06);
}
.bubble-call--ended {
  border-color: rgba(34,197,94,.15);
  background: rgba(34,197,94,.04);
}
.call-bubble-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.call-bubble-icon.missed {
  background: rgba(239,68,68,.15);
  color: #ef4444;
}
.call-bubble-icon.ok {
  background: rgba(34,197,94,.15);
  color: #22c55e;
}
.call-bubble-info {
  flex: 1;
  min-width: 0;
}
.call-bubble-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #eaeaef;
}
.call-bubble-time {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
  display: block;
}
.call-bubble-callback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(34,197,94,.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.call-bubble-callback:hover {
  background: rgba(34,197,94,.3);
}

/* Radar HUD background for stat cards */
.pv2-stat {
  background-image: url('/app/assets/radar-bg.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(128, 0, 255, .2) !important;
}

/* PMG sections — card containers */
.pmg-host {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.pmg-section {
  background: rgba(15, 15, 25, .85);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
}
.pmg-section-title {
  font-family: Orbitron, monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pmg-section-title .pmg-edit-btn {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Heatmap grid */
.pmg-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(var(--weeks, 15), 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
}
.pmg-heat-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  min-width: 0;
}
.pmg-heat-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
}
.pmg-heat-legend .pmg-heat-cell {
  width: 12px;
  height: 12px;
}

/* Match timeline */
.pmg-matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pmg-match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
  transition: background .15s;
}
.pmg-match-row:hover {
  background: rgba(255,255,255,.05);
}
.pmg-match-result {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid;
}
.pmg-match-meta {
  flex: 1;
  min-width: 0;
}
.pmg-match-mode {
  font-size: 13px;
  font-weight: 600;
  color: #eaeaef;
}
.pmg-match-stats {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}
.pmg-match-rewards {
  text-align: right;
  flex-shrink: 0;
}
.pmg-mr {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}
.pmg-mr--coin {
  background: rgba(255,170,0,.12);
  color: #ffaa00;
}
.pmg-mr--xp {
  background: rgba(34,197,94,.12);
  color: #22c55e;
}
.pmg-match-when {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  margin-top: 4px;
}
.pmg-empty {
  text-align: center;
  padding: 24px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
}
.pmg-loading {
  text-align: center;
  padding: 32px;
  color: rgba(255,255,255,.4);
}
.pmg-loading-spin {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: #ff6b1a;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 12px;
}


/* ═══════════════════════════════════════════════════════════
   EDIT PROFILE — AAA Gaming UI
   ═══════════════════════════════════════════════════════════ */
.ep-advanced {
  padding: 0 !important;
  background: linear-gradient(180deg, #0a0a14 0%, #0d0d1a 100%);
  max-width: 600px;
  margin: 0 auto;
}
.ep-section {
  padding: 28px 28px 24px;
  border-bottom: 1px solid rgba(255,120,0,.08);
  position: relative;
}
.ep-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,120,0,.2), transparent);
}
.ep-section:first-child::before { display: none; }
.ep-section-title {
  font-family: Orbitron, 'Rajdhani', monospace, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ff6b1a;
  margin-bottom: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ep-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,107,26,.3), transparent);
}

/* Avatar section */
.ep-avatar-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ep-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff6b1a;
  box-shadow: 0 0 20px rgba(255,107,26,.25), inset 0 0 10px rgba(0,0,0,.5);
  transition: transform .3s, box-shadow .3s;
}
.ep-avatar-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255,107,26,.4);
}
.ep-avatar-actions { display: flex; flex-direction: column; gap: 8px; }
.ep-upload-btn {
  cursor: pointer;
  font-family: Orbitron, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-transform: uppercase;
  transition: all .2s;
  border: 1px solid rgba(255,107,26,.5);
  background: linear-gradient(135deg, rgba(255,107,26,.15), rgba(255,60,0,.08));
  color: #ff8c42;
}
.ep-upload-btn:hover {
  background: linear-gradient(135deg, rgba(255,107,26,.25), rgba(255,60,0,.15));
  box-shadow: 0 4px 16px rgba(255,107,26,.2);
  transform: translateY(-1px);
}

/* Banner */
.ep-banner-row { display: flex; flex-direction: column; gap: 12px; }
.ep-banner-current {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.ep-banner-current::after {
  content: '⬡';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,.1);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,.01) 10px,
    rgba(255,255,255,.01) 20px
  );
}

/* Form fields */
.ep-advanced .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.ep-advanced .form-field > span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ep-advanced input[type="text"],
.ep-advanced input[type="url"],
.ep-advanced textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #eaeaef;
  font-size: 14px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.ep-advanced input:focus,
.ep-advanced textarea:focus {
  border-color: #ff6b1a;
  box-shadow: 0 0 0 3px rgba(255,107,26,.1), 0 0 20px rgba(255,107,26,.05);
}
.ep-advanced textarea {
  resize: vertical;
  min-height: 80px;
}
.ep-advanced .field-hint {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  font-style: italic;
}

/* Username row */
.ep-username-row {
  display: flex;
  align-items: stretch;
}
.ep-at {
  padding: 12px 14px;
  background: rgba(255,107,26,.08);
  border: 1px solid rgba(255,107,26,.25);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: #ff6b1a;
  font-size: 14px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
}
.ep-username-row input {
  border-radius: 0 8px 8px 0 !important;
  flex: 1;
}

/* Bio footer + AI button */
.ep-bio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.ep-bio-count {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  font-family: monospace;
}
.ep-ai-bio {
  font-family: Orbitron, monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, rgba(147,51,234,.2), rgba(236,72,153,.15)) !important;
  border: 1px solid rgba(147,51,234,.5) !important;
  color: #c084fc !important;
  cursor: pointer;
  transition: all .25s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.ep-ai-bio::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(147,51,234,.3), transparent);
  animation: ep-ai-spin 3s linear infinite;
  opacity: 0;
  transition: opacity .3s;
}
.ep-ai-bio:hover::before { opacity: 1; }
.ep-ai-bio:hover {
  background: linear-gradient(135deg, rgba(147,51,234,.35), rgba(236,72,153,.25)) !important;
  box-shadow: 0 0 20px rgba(147,51,234,.3);
  transform: scale(1.05);
}
@keyframes ep-ai-spin { to { transform: rotate(360deg); } }

/* Toggle rows */
.ep-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
  font-size: 14px;
  color: #d4d4e0;
  cursor: pointer;
}
.ep-toggle-row:last-child { border-bottom: none; }
.ep-toggle-row input[type="checkbox"] {
  width: 44px;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: all .25s;
  flex-shrink: 0;
}
.ep-toggle-row input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  transition: all .25s;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.ep-toggle-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #ff6b1a, #ff4500);
  border-color: #ff6b1a;
  box-shadow: 0 0 12px rgba(255,107,26,.3);
}
.ep-toggle-row input[type="checkbox"]:checked::after {
  transform: translateX(20px);
  background: #fff;
}

/* Footer / Save */
.ep-footer {
  padding: 24px 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,120,0,.08);
}
.ep-save-btn {
  min-width: 180px;
  font-family: Orbitron, monospace !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  padding: 14px 36px !important;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff6b1a, #ff4500) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(255,107,26,.3);
}
.ep-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,26,.45);
}
.ep-advanced .form-error {
  text-align: center;
  padding: 12px;
  color: #ff4444;
  font-size: 13px;
}
