
/* ─── Override global img reset from app.css ─── */
.ep-futuristic img {
  max-width: none !important;
  display: inline-block !important;
}
.ep-banner-img-draggable {
  width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  display: block !important;
  object-fit: cover !important;
}
.ep-avatar-img-draggable {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}
.ep-futuristic input,
.ep-futuristic textarea {
  -webkit-appearance: none !important;
  appearance: none !important;
}
.ep-futuristic .ep-input,
.ep-futuristic .ep-textarea {
  background: rgba(0,0,0,.3) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 8px !important;
  color: #eaeaef !important;
  font-size: 13px !important;
}
.ep-futuristic .ep-input:focus,
.ep-futuristic .ep-textarea:focus {
  border-color: rgba(255,107,26,.4) !important;
  box-shadow: 0 0 12px rgba(255,107,26,.08) !important;
}
/* ════════════════════════════════════════════════════════════
   TNT STUDIO — EDIT PROFILE (Futuristic Redesign)
   ════════════════════════════════════════════════════════════ */

.ep-futuristic {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.ep-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 16px;
  border-bottom: 1px solid rgba(255,107,26,.08);
  margin-bottom: 20px;
}
.ep-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.ep-back-btn:hover {
  background: rgba(255,107,26,.08);
  border-color: rgba(255,107,26,.2);
  color: #ff6b1a;
}
.ep-page-title {
  font-family: Orbitron, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fff;
  margin: 0;
  flex: 1;
}
.ep-page-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255,107,26,.1);
  border: 1px solid rgba(255,107,26,.25);
  color: #ff6b1a;
}

/* ─── Visual Section (Banner + Avatar) ─── */
.ep-visual-section {
  margin-bottom: 24px;
}
.ep-banner-editor {
  position: relative;
  border-radius: 16px;
  overflow: visible;
}
.ep-banner-preview {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0d1b3e 100%);
  border: 1px solid rgba(255,255,255,.06);
  cursor: grab;
}
.ep-banner-preview:active { cursor: grabbing; }
.ep-banner-preview.ep-dragging { cursor: grabbing; }
.ep-banner-img-draggable {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  transition: transform .2s ease;
}
.ep-drag-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0,0,0,.7);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  pointer-events: none;
  opacity: .8;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.ep-dragging .ep-drag-hint { opacity: 0; }
.ep-overlay-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(4px);
  z-index: 5;
}
.ep-overlay-btn:hover {
  background: rgba(255,107,26,.3);
  border-color: rgba(255,107,26,.5);
  transform: scale(1.1);
}
.ep-overlay-btn input[hidden] { display: none; }

/* Avatar editor overlapping banner */
.ep-avatar-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -48px;
  position: relative;
  z-index: 10;
}
.ep-avatar-frame {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ff6b1a;
  box-shadow: 0 0 24px rgba(255,107,26,.3), 0 4px 16px rgba(0,0,0,.4);
  cursor: grab;
  background: #0a0a1a;
}
.ep-avatar-frame:active { cursor: grabbing; }
.ep-avatar-frame.ep-dragging { cursor: grabbing; }
.ep-avatar-img-draggable {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  transition: transform .2s ease;
}
.ep-drag-hint-avatar {
  position: absolute;
  bottom: 50%;
  left: -40px;
  transform: translateY(50%);
  padding: 2px 8px;
  background: rgba(0,0,0,.7);
  border-radius: 10px;
  font-size: 8px;
  opacity: .7;
  white-space: nowrap;
}
.ep-avatar-change-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff6b1a;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  border: 2px solid #0a0a1a;
  transition: transform .2s;
  z-index: 5;
}
.ep-avatar-change-btn:hover { transform: scale(1.15); }
.ep-avatar-change-btn input[hidden] { display: none; }
.ep-hint-text {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255,255,255,.35);
  font-weight: 500;
}

/* ─── Sections ─── */
.ep-section {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.ep-section:hover {
  border-color: rgba(255,107,26,.08);
}
.ep-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.5);
}
.ep-section-title {
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: 0;
  flex: 1;
}

/* ─── Fields ─── */
.ep-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .ep-fields-grid { grid-template-columns: 1fr; }
}
.ep-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ep-field-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.ep-input {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #eaeaef;
  outline: none;
  transition: all .2s;
  width: 100%;
}
.ep-input:focus {
  border-color: rgba(255,107,26,.4);
  box-shadow: 0 0 12px rgba(255,107,26,.08);
  background: rgba(0,0,0,.5);
}
.ep-input::placeholder { color: rgba(255,255,255,.2); }
.ep-input-prefix {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all .2s;
}
.ep-input-prefix:focus-within {
  border-color: rgba(255,107,26,.4);
  box-shadow: 0 0 12px rgba(255,107,26,.08);
}
.ep-prefix {
  padding: 10px 0 10px 12px;
  color: rgba(255,107,26,.6);
  font-weight: 700;
  font-size: 13px;
}
.ep-input-with-prefix {
  border: none;
  background: none;
  padding-left: 4px;
}
.ep-input-with-prefix:focus { box-shadow: none; }

/* ─── Textarea ─── */
.ep-textarea {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #eaeaef;
  outline: none;
  resize: vertical;
  min-height: 80px;
  width: 100%;
  transition: all .2s;
  font-family: inherit;
}
.ep-textarea:focus {
  border-color: rgba(255,107,26,.4);
  box-shadow: 0 0 12px rgba(255,107,26,.08);
  background: rgba(0,0,0,.5);
}
.ep-textarea::placeholder { color: rgba(255,255,255,.2); }
.ep-bio-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}
.ep-bio-count {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  font-family: 'JetBrains Mono', monospace;
}

/* ─── AI Button ─── */
.ep-ai-bio {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255,107,26,.08);
  border: 1px solid rgba(255,107,26,.2);
  border-radius: 6px;
  color: #ff6b1a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.ep-ai-bio:hover {
  background: rgba(255,107,26,.15);
  box-shadow: 0 0 10px rgba(255,107,26,.1);
}
.ep-ai-bio:disabled { opacity: .6; cursor: wait; }
@keyframes ep-spin-anim { from{transform:rotate(0)}to{transform:rotate(360deg)} }
.ep-spin { animation: ep-spin-anim .8s linear infinite; }

/* ─── Social grid ─── */
.ep-social-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-social-field {
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}
.ep-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  color: rgba(255,255,255,.5);
  flex-shrink: 0;
}
.ep-social-field .ep-input { flex: 1; }

/* ─── Toggle switches ─── */
.ep-toggles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ep-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.ep-toggle-row:last-child { border-bottom: none; }
.ep-switch {
  position: relative;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}
.ep-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.ep-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  transition: all .3s;
  border: 1px solid rgba(255,255,255,.06);
}
.ep-switch-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  transition: all .3s;
}
.ep-switch input:checked + .ep-switch-slider {
  background: rgba(255,107,26,.2);
  border-color: rgba(255,107,26,.4);
}
.ep-switch input:checked + .ep-switch-slider::before {
  transform: translateX(18px);
  background: #ff6b1a;
  box-shadow: 0 0 8px rgba(255,107,26,.4);
}

/* ─── Footer ─── */
.ep-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.ep-save-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #ff6b1a, #ff8c42);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(255,107,26,.3);
}
.ep-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,26,.4);
}
.ep-save-btn:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}
.ep-cancel-btn {
  padding: 11px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.ep-cancel-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* ─── Form error ─── */
.ep-futuristic .form-error {
  color: #ff4d5e;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
  text-align: center;
}
.ep-futuristic .form-error:empty { display: none; }
