/* frontend/public/css/profile.css */
/* 80s / Early 90s Synthwave Neon Arcade Player Profile & Modal Stylesheet */

.app-container *,
.app-container *::before,
.app-container *::after,
.arcade-modal-root *,
.arcade-modal-root *::before,
.arcade-modal-root *::after {
  box-sizing: border-box;
}

/* =========================================================
   1. FIXED ARCADE PLAYER HEADER
   ========================================================= */

.profile-header-fixed {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px 16px 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(145deg, rgba(28, 12, 54, 0.96), rgba(9, 4, 22, 0.99));
  border-bottom: 2px solid #00f0ff;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.22);
  position: sticky;
  top: 0;
  z-index: 100;
}

.profile-avatar-container {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #00f0ff, #ff007f, #fde047);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #090514;
}

.profile-info {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.player-tag {
  font-family: monospace, sans-serif;
  font-size: 0.64rem;
  font-weight: 900;
  color: #ff007f;
  letter-spacing: 1.4px;
  margin-bottom: 2px;
}

.profile-name {
  margin: 0;
  font-family: monospace, sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  margin: 2px 0 0 0;
  font-family: monospace, sans-serif;
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   2. SCROLLABLE PROFILE BODY & DASHBOARD CARDS
   ========================================================= */

.profile-scroll-body {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px 14px 110px 14px;
  overflow: visible;
}

.dash-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(16, 8, 36, 0.92);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  margin-bottom: 12px;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.08s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:active {
  transform: translateY(2px);
}

.dash-card-link {
  border-color: rgba(0, 255, 102, 0.5);
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.18);
}

.dash-card-maximize {
  border-color: rgba(253, 224, 71, 0.55);
  background: linear-gradient(145deg, rgba(28, 12, 54, 0.95), rgba(16, 8, 36, 0.95));
}

.dash-card-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #090514;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.icon-cash   { border-color: #00ff66; background: rgba(0, 255, 102, 0.12); }
.icon-tier   { border-color: #fde047; background: rgba(253, 224, 71, 0.12); }
.icon-rocket { border-color: #ff007f; background: rgba(255, 0, 127, 0.15); }

.dash-card-content {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.dash-card-content h4 {
  margin: 0;
  font-family: monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

.dash-card-content .value {
  margin: 3px 0 0 0;
  font-family: monospace, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.value-green { color: #00ff66; text-shadow: 0 0 10px rgba(0, 255, 102, 0.45); }
.value-gold  { color: #fde047; text-shadow: 0 0 10px rgba(253, 224, 71, 0.4); }

.maximize-title {
  color: #fde047 !important;
  font-size: 0.8rem !important;
}

.maximize-sub {
  margin: 3px 0 0 0;
  font-size: 0.72rem;
  color: #cbd5e1;
}

/* =========================================================
   3. INVITE FRIENDS BANNER
   ========================================================= */

.invite-banner {
  position: relative;
  width: 100%;
  padding: 16px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.28) 0%, rgba(28, 12, 54, 0.96) 100%);
  border: 2px solid #ff007f;
  margin-bottom: 12px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.28);
}

.invite-banner:active {
  transform: translateY(2px);
}

.invite-banner-copy {
  position: relative;
  z-index: 2;
  max-width: 78%;
  text-align: left;
}

.invite-banner h3 {
  margin: 0 0 4px 0;
  font-family: monospace, sans-serif;
  font-size: 0.96rem;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.8px;
}

.invite-banner p {
  margin: 0;
  font-size: 0.76rem;
  color: #f8fafc;
  line-height: 1.35;
}

.invite-banner-mascot {
  font-size: 3.1rem;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.6));
  pointer-events: none;
}

/* =========================================================
   4. SETTINGS SECTIONS & LIST ITEMS
   ========================================================= */

.settings-section-title {
  margin: 18px 0 8px 4px;
  font-family: monospace, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: left;
}

.settings-list {
  width: 100%;
  border-radius: 16px;
  background: rgba(16, 8, 36, 0.92);
  border: 1.5px solid rgba(0, 240, 255, 0.28);
  overflow: hidden;
  margin-bottom: 14px;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s ease;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:active {
  background: rgba(0, 240, 255, 0.1);
}

.settings-item-left {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.settings-item-left h5 {
  margin: 0;
  font-family: monospace, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  color: #ffffff;
}

.settings-item-left p {
  margin: 3px 0 0 0;
  font-size: 0.73rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-chevron {
  flex-shrink: 0;
  font-family: monospace, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #00f0ff;
}

/* =========================================================
   5. LOGOUT BUTTON, COMPACT 1-LINE USER ID & APP VERSION
   ========================================================= */

.logout-wrapper {
  padding: 10px 0 0 0;
}

.logout-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 2px solid #f43f5e;
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  font-family: monospace, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 0 #881337;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.logout-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #881337;
}

/* Single-Line Compact User ID Container (Fits 36-char UUID on 1 line on mobile) */
.user-id-container {
  width: 100%;
  text-align: center;
  padding: 20px 4px 8px 4px;
  cursor: pointer;
  user-select: none;
}

.user-id-label {
  margin-bottom: 5px;
  font-family: monospace, sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 1.2px;
}

.user-id-pill {
  display: inline-block;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(7, 3, 18, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-family: monospace, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: -0.25px;
  color: #00f0ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-id-feedback {
  font-family: monospace, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  color: #00ff66;
  margin-top: 6px;
  height: 15px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-id-feedback.is-visible {
  opacity: 1;
}

.app-version-footer {
  width: 100%;
  text-align: center;
  padding: 6px 12px 24px 12px;
  font-family: monospace, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
}

/* =========================================================
   6. RESTRICTED PUSH UNLOCK BANNER
   ========================================================= */

.restricted-banner {
  margin: 0 0 16px 0;
  padding: 15px;
  border-radius: 16px;
  background: rgba(244, 63, 94, 0.14);
  border: 2px solid #f43f5e;
  color: #ffffff;
  text-align: left;
}

.restricted-title {
  font-family: monospace, sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  color: #fda4af;
  margin-bottom: 6px;
}

.restricted-desc {
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.restricted-unlock-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #fde047;
  background: #00ff66;
  color: #000000;
  font-family: monospace, sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  cursor: pointer;
}

/* =========================================================
   7. MODULAR RETRO ARCADE MODALS
   ========================================================= */

.arcade-modal-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.arcade-modal-root.is-open {
  display: block;
}

.arcade-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 14, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.arcade-modal-card {
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #1b0a38 0%, #090514 100%);
  border: 2px solid #00f0ff;
  border-radius: 20px;
  padding: 18px 16px;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 240, 255, 0.35);
}

.arcade-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}

.arcade-modal-header h3 {
  margin: 0;
  font-family: monospace, sans-serif;
  font-size: 0.96rem;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 0.6px;
}

.arcade-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #ff007f;
  background: rgba(255, 0, 127, 0.18);
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Modal Shared Sub-Components */
.modal-hero-box {
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.35);
  margin-bottom: 12px;
}

.modal-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-ladder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(7, 3, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-ladder-row.is-current {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.14);
}

.maximize-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(7, 3, 18, 0.85);
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
}

.lang-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.lang-opt-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 3, 18, 0.8);
  color: #ffffff;
  font-family: monospace, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.lang-opt-btn.is-selected {
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.14);
}

.star-rating-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rate-star-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  color: #fde047;
  padding: 4px;
  transition: transform 0.12s ease, color 0.12s ease;
}

.rate-star-btn.is-dim {
  color: #475569;
}

.faq-accordion-item {
  background: rgba(7, 3, 18, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
}

.faq-accordion-summary {
  font-family: monospace, sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.faq-accordion-summary::-webkit-details-marker {
  display: none;
}

.faq-accordion-answer {
  margin: 8px 0 2px 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.modal-input,
.modal-select,
.modal-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 240, 255, 0.38);
  background: #070312;
  color: #ffffff;
  font-family: monospace, sans-serif;
  font-size: 0.8rem;
}

.modal-primary-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #fde047;
  background: linear-gradient(180deg, #ff007f 0%, #be185d 100%);
  color: #ffffff;
  font-family: monospace, sans-serif;
  font-weight: 900;
  font-size: 0.84rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 #701a75;
}

.legal-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  margin-bottom: 10px;
  font-family: monospace, sans-serif;
  font-size: 0.7rem;
  color: #cbd5e1;
}

.legal-scroll-copy {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  text-align: left;
}