/* ===================================================
   AURA PROTOCOL - CYBERPUNK GLASSMORPHIC STYLESHEET
   =================================================== */

:root {
  --bg-dark: #070c1b;
  --card-bg: rgba(16, 26, 52, 0.72);
  --card-inner-bg: rgba(10, 18, 38, 0.65);
  --card-border: rgba(56, 189, 248, 0.2);
  --card-border-glow: rgba(0, 229, 255, 0.35);
  --cyan-neon: #00e5ff;
  --cyan-bright: #38bdf8;
  --blue-accent: #2563eb;
  --text-main: #f1f5f9;
  --text-muted: #8b9bb4;
  --text-dim: #64748b;
  --win-green: #4ade80;
  --loss-red: #f87171;
  --font-rajdhani: 'Rajdhani', sans-serif;
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-inter);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
}

.background-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(26, 54, 110, 0.35), transparent 70%),
    radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.08), transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(37, 99, 235, 0.1), transparent 50%),
    linear-gradient(180deg, #070d1e 0%, #050814 100%);
}

.city-silhouette {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 380px;
  opacity: 0.12;
  background-image: 
    linear-gradient(to top, rgba(0, 229, 255, 0.15), transparent 60%),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(56, 189, 248, 0.2) 18px, rgba(56, 189, 248, 0.2) 20px);
  mask-image: linear-gradient(to top, black 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%);
}

.app-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 90px 16px;
}

/* Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 14px 4px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.brand-title {
  font-family: var(--font-rajdhani);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-pill-btn {
  background: rgba(14, 25, 52, 0.85);
  border: 1px solid var(--cyan-neon);
  border-radius: 20px;
  padding: 5px 10px;
  color: #ffffff;
  font-family: var(--font-rajdhani);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
  transition: all 0.2s ease;
}

.lang-pill-btn:active {
  transform: scale(0.92);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
}

.lang-flag {
  font-size: 13px;
}

.profile-header-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(22, 35, 68, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-header-btn:active {
  transform: scale(0.92);
  border-color: var(--cyan-neon);
}

/* Main Content Views */
.main-content {
  flex: 1;
  position: relative;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-out forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Generic Glass Cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  margin-bottom: 12px;
  position: relative;
}

.card-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

/* Top Row: Profile & Achievements */
.top-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.top-cards-row .glass-card {
  margin-bottom: 0;
  padding: 12px 14px;
}

/* Profile Card */
.profile-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.avatar-wrapper.clickable {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.avatar-wrapper.clickable:active {
  transform: scale(0.92);
}

.avatar-cam-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--cyan-neon);
  color: #070c1b;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.8);
  border: 1.5px solid #070c1b;
  pointer-events: none;
}

.avatar-cam-badge.large {
  width: 26px;
  height: 26px;
  font-size: 12px;
  bottom: 0px;
  right: 0px;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
}

.avatar-border-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  pointer-events: none;
}

.profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
}

.profile-name {
  font-family: var(--font-rajdhani);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.8px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-upload-hint {
  font-size: 9.5px;
  color: var(--cyan-bright);
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
}

/* Upload photo button in Profile View */
.upload-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 25, 52, 0.8);
  border: 1.5px solid var(--cyan-neon);
  border-radius: 20px;
  padding: 8px 18px;
  color: #ffffff;
  font-family: var(--font-rajdhani);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
  transition: all 0.2s ease;
  margin-top: 4px;
  margin-bottom: 12px;
}

.upload-photo-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
}

/* Achievements Card */
.achievements-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-shield {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-inner {
  width: 46px;
  height: 50px;
  background: linear-gradient(135deg, #1e3a6a, #102142);
  border: 1.5px solid #38bdf8;
  border-radius: 6px 6px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.level-sub {
  font-size: 7px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.level-num {
  font-family: var(--font-rajdhani);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 0 6px #38bdf8;
}

.ribbon-banner {
  position: absolute;
  bottom: -6px;
  background: linear-gradient(90deg, #2563eb, #0284c7);
  font-size: 7.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  color: #ffffff;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.progress-ring-container {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.ring-bg {
  fill: transparent;
  stroke: rgba(30, 48, 86, 0.8);
}

.ring-fg {
  fill: transparent;
  stroke: var(--cyan-neon);
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--cyan-neon));
}

/* Battle Arena Card */
.battle-arena-card {
  padding: 16px 16px 14px 16px;
}

.start-battle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.start-battle-btn {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.25) 0%, rgba(10, 25, 58, 0.6) 100%);
  border: 1.5px solid var(--cyan-neon);
  border-radius: 26px;
  padding: 8px 36px;
  color: #ffffff;
  font-family: var(--font-rajdhani);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45), inset 0 0 12px rgba(0, 229, 255, 0.25);
  transition: all 0.25s ease;
  overflow: visible;
}

.start-battle-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.7);
}

.btn-notch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 6px;
  background: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
}

.notch-top {
  top: -4px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.notch-bottom {
  bottom: -4px;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.btn-text {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 14px var(--cyan-neon);
}

/* Matchup Arena (Combatants with Photo Avatars) */
.matchup-arena {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.combatant-card {
  flex: 1;
  background: var(--card-inner-bg);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.combatant-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Combatant Avatar Box with image support */
.combatant-avatar-box {
  width: 68px;
  height: 68px;
  background: rgba(22, 34, 62, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.combatant-avatar-box.clickable {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.combatant-avatar-box.clickable:active {
  transform: scale(0.94);
  border-color: var(--cyan-neon);
}

.combatant-cam-overlay {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(7, 12, 27, 0.85);
  border: 1px solid var(--cyan-neon);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--cyan-neon);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
  pointer-events: none;
}

.combatant-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.opponent-box {
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.25);
}

.rating-badge {
  background: rgba(15, 23, 42, 0.8);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.rating-text {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.rating-text strong {
  color: #ffffff;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.vs-text {
  font-family: var(--font-rajdhani);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Battle Card Footer */
.battle-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  padding-top: 10px;
  font-size: 10px;
  color: #8fa3bf;
  letter-spacing: 0.3px;
  flex-wrap: wrap;
}

.stat-item strong {
  color: #ffffff;
}

.stat-separator {
  color: rgba(56, 189, 248, 0.3);
}

/* Balance Card */
.balance-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-icon-box {
  position: relative;
  width: 58px;
  height: 52px;
  background: linear-gradient(135deg, rgba(30, 58, 110, 0.6), rgba(15, 28, 56, 0.8));
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3), inset 0 0 10px rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.balance-info-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credits-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.credits-label {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.credits-value {
  font-family: var(--font-rajdhani);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.purchase-services-btn {
  background: rgba(14, 25, 52, 0.7);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 20px;
  padding: 6px 14px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  transition: all 0.2s ease;
  width: 100%;
}

.purchase-services-btn:active {
  transform: scale(0.97);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

/* Battle History Section */
.history-section {
  margin-top: 4px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.user-scope-tag {
  font-size: 10px;
  color: var(--cyan-neon);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.history-scroll-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.history-scroll-container::-webkit-scrollbar {
  display: none;
}

.history-item-card {
  min-width: 136px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.history-battle-id {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.3px;
}

.history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.history-outcome {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.history-outcome.win {
  color: var(--win-green);
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.history-outcome.loss {
  color: var(--loss-red);
  text-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
}

/* Tab Sub-Pages */
.page-card {
  min-height: 480px;
}

.subpage-title {
  font-family: var(--font-rajdhani);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subpage-title i {
  color: var(--cyan-neon);
}

.history-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.history-owner-badge {
  font-family: var(--font-rajdhani);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-bright);
  background: rgba(14, 165, 233, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.history-page-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-details-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 14px 0 20px 0;
  gap: 8px;
}

.avatar-wrapper.large {
  width: 80px;
  height: 80px;
}

.profile-hero-name {
  font-family: var(--font-rajdhani);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.profile-hero-tag {
  font-size: 11px;
  color: var(--cyan-bright);
  letter-spacing: 0.5px;
  background: rgba(14, 165, 233, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--card-inner-bg);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sb-val {
  font-family: var(--font-rajdhani);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.sb-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

.action-btn-row {
  margin-top: 10px;
}

.action-glow-btn {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid var(--cyan-neon);
  border-radius: 14px;
  padding: 12px;
  color: #ffffff;
  font-family: var(--font-rajdhani);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
  transition: all 0.2s ease;
}

.action-glow-btn:active {
  transform: scale(0.97);
}

/* Achievements List */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievement-row {
  background: var(--card-inner-bg);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ach-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid var(--cyan-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-neon);
  font-size: 16px;
  flex-shrink: 0;
}

.ach-icon-circle.locked {
  background: rgba(100, 116, 139, 0.15);
  border-color: #475569;
  color: #64748b;
}

.ach-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ach-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.ach-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.ach-status {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--win-green);
}

.ach-status.pending {
  color: #94a3b8;
}

/* Balance Page */
.vault-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 4px;
}

.vault-amount {
  font-family: var(--font-rajdhani);
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
}

.vault-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--cyan-bright);
}

.package-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.tier-card {
  background: var(--card-inner-bg);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-card.featured {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.tier-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--cyan-neon);
  color: #070c1b;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier-name {
  font-weight: 600;
  font-size: 14px;
}

.tier-price {
  font-family: var(--font-rajdhani);
  font-weight: 700;
  font-size: 16px;
  color: var(--cyan-bright);
}

.tier-amount {
  font-size: 12px;
  color: var(--text-muted);
}

.tier-buy-btn {
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tier-buy-btn:active {
  background: var(--cyan-neon);
  color: #000;
}

/* Full History List */
.full-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Bottom Navigation Dock */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(10, 18, 38, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

.dock-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 6px 12px 6px 12px;
  position: relative;
}

.dock-tab {
  background: none;
  border: none;
  color: #7b8fa8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  flex: 1;
  padding: 4px 0;
  transition: all 0.2s ease;
}

.dock-icon {
  font-size: 17px;
  transition: all 0.2s ease;
}

.dock-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.dock-tab.active,
.dock-tab:active {
  color: #ffffff;
}

.dock-tab.active .dock-icon {
  color: var(--cyan-neon);
  filter: drop-shadow(0 0 6px var(--cyan-neon));
}

.dock-center-notch {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dock-tab.center-active {
  position: relative;
  top: -12px;
  flex: none;
}

.center-btn-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.35) 0%, rgba(10, 25, 58, 0.95) 100%);
  border: 1.5px solid var(--cyan-neon);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.6), inset 0 0 8px rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.center-sword-icon {
  font-size: 20px !important;
  color: #ffffff;
  filter: drop-shadow(0 0 8px var(--cyan-neon));
}

.dock-tab.center-active:active .center-btn-inner {
  transform: scale(0.92);
}

.home-indicator {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  margin-top: 4px;
  margin-bottom: 6px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  background: rgba(14, 24, 48, 0.95);
  border: 1.5px solid var(--cyan-neon);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.cyber-radar {
  width: 90px;
  height: 90px;
  border: 2px solid rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  margin: 10px auto 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 229, 255, 0.5) 60deg, transparent 70deg);
  animation: radarRotate 1.5s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-cross {
  font-size: 28px;
  color: var(--cyan-neon);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px var(--cyan-neon));
}

.status-msg {
  font-family: var(--font-rajdhani);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 6px;
}

.status-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.battle-result-box.hidden {
  display: none;
}

.result-banner {
  font-family: var(--font-rajdhani);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.result-banner.win {
  color: var(--win-green);
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.6);
}

.result-banner.loss {
  color: var(--loss-red);
  text-shadow: 0 0 14px rgba(248, 113, 113, 0.6);
}

.result-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.rs-item {
  display: flex;
  justify-content: space-between;
  background: rgba(8, 14, 30, 0.7);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.rs-val.gain {
  color: var(--win-green);
  font-weight: 700;
}

.rs-val.drop {
  color: var(--loss-red);
  font-weight: 700;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-family: var(--font-rajdhani);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.close-modal-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.quick-packages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-pkg-item {
  background: var(--card-inner-bg);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.quick-pkg-item.popular {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.qp-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--cyan-neon);
  color: #070c1b;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
}

.qp-name {
  font-weight: 600;
  font-size: 13px;
}

.qp-price {
  font-family: var(--font-rajdhani);
  font-weight: 700;
  font-size: 16px;
  color: var(--cyan-bright);
}

.crypto-note {
  font-size: 11px;
  color: #64748b;
}

.cyber-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(14, 25, 52, 0.95);
  border: 1px solid var(--cyan-neon);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 300;
  white-space: nowrap;
}

.cyber-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
