/* common.css */

:root {
  --bg: #000814;
  --glass: rgba(20, 20, 60, 0.35);
  --glass-strong: rgba(30, 30, 80, 0.48);
  --text: #f0f8ff;
  --muted: #b0c4ff;
  --radius: 1.4rem;
  --glow: 0 4px 30px rgba(123,94,255,0.3);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, sans-serif;
  overflow: hidden;
  position: relative;
}

.bg-galaxy {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  z-index: -2;
}

.stars {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  animation: twinkle 4s infinite alternate, drift 120s linear infinite;
  opacity: 0.9;
}

@keyframes twinkle { 0%,100% {opacity:0.4;} 50% {opacity:1;} }
@keyframes drift { 0% {transform:translate(0,0);} 100% {transform:translate(var(--dx),var(--dy));} }

.header {
  position: fixed;
  top: 0; left:0; right:0;
  height: 68px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(123,94,255,0.15);
  z-index: 1000;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--glow);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(123,94,255,0.5);
  border: 2px solid rgba(255,255,255,0.15);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-name {
  font-size: 1.18rem;
  font-weight: 700;
  background: linear-gradient(90deg, #a78bfa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.balance-right {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(123,94,255,0.12);
  padding: 4px 8px;
  border-radius: 1.5rem;
  border: 1px solid rgba(123,94,255,0.25);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(123,94,255,0.2);
}

.ton-img-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.main-content {
  padding: 90px 20px 100px;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.placeholder {
  font-size: 1.6rem;
  opacity: 0.7;
  text-shadow: 0 0 20px rgba(123,94,255,0.4);
}

.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 380px;
  height: 68px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: 1.6rem;
  border: 1px solid rgba(123,94,255,0.12);
  box-shadow: var(--glow);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 1rem;
  gap: 3px;
  transition: all 0.28s ease;
}

.nav-item.active,
.nav-item:hover {
  color: #d5c4ff;
  background: rgba(123,94,255,0.18);
  transform: translateY(-3px);
}

.nav-item i { font-size: 1.35rem; margin-bottom: 2px; }