/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020202;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,107,0,0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(141,113,255,0.05) 0%, transparent 50%);
  animation: loginBgFloat 20s ease-in-out infinite;
}
@keyframes loginBgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2%, 2%) rotate(1deg); }
}
.login-card {
  position: relative;
  width: 420px;
  max-width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(20px);
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo img {
  height: 48px;
  margin: 0 auto 12px;
}
.login-logo h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.login-logo p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.login-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 4px;
}
.login-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Chakra Petch', sans-serif;
}
.login-tab.active {
  background: rgba(255,107,0,0.15);
  color: #FF6B00;
}
.login-tab:hover:not(.active) {
  color: rgba(255,255,255,0.7);
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form.hidden { display: none; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.form-group input {
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: 'Chakra Petch', sans-serif;
  transition: all 0.3s;
  outline: none;
}
.form-group input:focus {
  border-color: rgba(255,107,0,0.4);
  background: rgba(255,107,0,0.04);
}
.form-group input::placeholder {
  color: rgba(255,255,255,0.2);
}
.login-btn {
  padding: 14px;
  background: linear-gradient(135deg, #FF6B00, #FF8C40);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,0,0.3); }
.login-btn:active { transform: translateY(0); }
.login-error {
  padding: 12px 16px;
  background: rgba(255,50,50,0.1);
  border: 1px solid rgba(255,50,50,0.2);
  border-radius: 10px;
  color: #ff5050;
  font-size: 13px;
  display: none;
}
.login-error.show { display: block; }
.login-demo-hint {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(72,202,228,0.05);
  border: 1px solid rgba(72,202,228,0.15);
  border-radius: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.login-demo-hint strong { color: #48CAE4; }
.login-demo-hint code {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #FF6B00;
}
.login-back {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: 'Chakra Petch', sans-serif;
}
.login-back:hover { color: #fff; }

/* ===== PROFILE DASHBOARD ===== */
.profile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1030;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.profile-topbar-left { display: flex; align-items: center; gap: 16px; }
.profile-topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
}
.profile-topbar-logo img { height: 32px; }
.profile-topbar-right { display: flex; align-items: center; gap: 12px; }
.profile-topbar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: #fff;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-topbar-btn:hover { border-color: rgba(255,107,0,0.3); background: rgba(255,107,0,0.08); }
.profile-topbar-btn.danger { border-color: rgba(255,50,50,0.2); }
.profile-topbar-btn.danger:hover { border-color: rgba(255,50,50,0.4); background: rgba(255,50,50,0.08); color: #ff5050; }

/* ===== PROFILE CONTENT ===== */
.profile-content {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  padding: 32px 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.profile-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, #FF6B00, #8D71FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  flex-shrink: 0;
  position: relative;
}
.profile-avatar .level-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #0b0b0b;
  border: 2px solid #FF6B00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #FF6B00;
  font-family: 'Orbitron', sans-serif;
}
.profile-info { flex: 1; }
.profile-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-email {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.profile-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.profile-role.scout { background: rgba(72,202,228,0.1); color: #48CAE4; border: 1px solid rgba(72,202,228,0.2); }
.profile-role.pilot { background: rgba(37,111,255,0.1); color: #256FFF; border: 1px solid rgba(37,111,255,0.2); }
.profile-role.commander { background: rgba(255,107,0,0.1); color: #FF6B00; border: 1px solid rgba(255,107,0,0.2); }
.profile-role.admiral { background: rgba(141,113,255,0.1); color: #8D71FF; border: 1px solid rgba(141,113,255,0.2); }

/* ===== PROFILE STATS ===== */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.profile-stat {
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  transition: all 0.3s;
}
.profile-stat:hover { border-color: rgba(255,107,0,0.2); }
.profile-stat .label {
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.profile-stat .value {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
}
.profile-stat .value.orange { color: #FF6B00; }
.profile-stat .value.blue { color: #256FFF; }
.profile-stat .value.cyan { color: #48CAE4; }
.profile-stat .value.green { color: #2d9e06; }
.profile-stat .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

/* ===== PROFILE GRID ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.profile-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
}
.profile-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #FF6B00;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-card-body { padding: 20px; }

/* ===== INFO ROWS ===== */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.info-row:last-child { border: none; }
.info-row .label { font-size: 13px; color: rgba(255,255,255,0.4); }
.info-row .value { font-size: 14px; font-weight: 600; }
.info-row .value.status-approved { color: #4ade80; }
.info-row .value.status-pending { color: #fbbf24; }
.info-row .value.status-rejected { color: #f87171; }

/* ===== VAULT LIST ===== */
.vault-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.vault-item:last-child { border: none; }
.vault-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(72,202,228,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #48CAE4;
  font-size: 16px;
  flex-shrink: 0;
}
.vault-info { flex: 1; }
.vault-info .amount {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  color: #48CAE4;
}
.vault-info .lock { font-size: 12px; color: rgba(255,255,255,0.4); }
.vault-apr {
  font-size: 14px;
  font-weight: 700;
  color: #FF6B00;
}

/* ===== BADGES ===== */
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.badge-tag i { color: #FF6B00; font-size: 12px; }

/* ===== XP BAR ===== */
.xp-bar-wrapper { margin-top: 12px; }
.xp-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.xp-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B00, #FFA500);
  border-radius: 4px;
  transition: width 1s ease;
}

/* ===== ACTIVITY LOG ===== */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.activity-item:last-child { border: none; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-dot.green { background: #4ade80; }
.activity-dot.orange { background: #FF6B00; }
.activity-dot.blue { background: #256FFF; }
.activity-dot.purple { background: #8D71FF; }
.activity-text { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.activity-time { font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 2px; }

/* ===== COUNTRY FLAG ===== */
.country-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.country-flag .flag { font-size: 18px; }

/* ===== WALLET ADDRESS ===== */
.wallet-addr {
  font-family: monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 6px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* ===== FULL WIDTH CARD ===== */
.profile-card.full-width { grid-column: 1 / -1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .profile-content { padding: 20px 16px; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-name { font-size: 22px; }
}
@media (max-width: 576px) {
  .profile-stats { grid-template-columns: 1fr; }
  .profile-avatar { width: 80px; height: 80px; font-size: 32px; border-radius: 20px; }
}
