:root {
  --bg-black: #050505;
  --bg-card: #0f0808;
  --bg-card-border: rgba(220, 38, 38, 0.22);
  
  --accent-red: #dc2626;
  --accent-red-hover: #ef4444;
  --accent-gradient: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  --accent-glow: rgba(220, 38, 38, 0.35);
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 85px;
  overflow-x: hidden;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--bg-card-border);
}

.logo {
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: #fff;
}

.logo span {
  color: var(--accent-red);
  text-shadow: 0 0 12px var(--accent-glow);
}

.connection-status {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  text-transform: uppercase;
}

.connection-status.offline {
  background: rgba(220, 38, 38, 0.2);
  color: var(--accent-red);
}

.app-container {
  padding: 14px 16px;
}

.app-view {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.app-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-item.active {
  color: var(--accent-red);
}

.nav-icon {
  width: 22px;
  height: 22px;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: transform 0.1s ease;
}

.btn-primary:active {
  transform: scale(0.98);
}
