/* AYNA BOOK — Quantum 5000+ Super App Stylesheet (0MB Light-Speed Ready) */

:root {
  --bg-primary: #020c24;
  --bg-secondary: #071b49;
  --accent-cyan: #00ffcc;
  --accent-gold: #ffd700;
  --text-main: #ffffff;
  --text-muted: #8ab4f8;
  --danger-red: #ff4d4d;
  --border-glow: rgba(0, 255, 204, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow-x: hidden;
}

/* Header & Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--accent-cyan);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 30px;
  height: 30px;
}

.icon-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.online-status {
  font-size: 11px;
  color: var(--accent-cyan);
  margin-right: 8px;
  background: rgba(0, 255, 204, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--accent-cyan);
}

/* Navigation Bar */
.main-nav {
  display: flex;
  overflow-x: auto;
  background: #041235;
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: 0 0 auto;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.nav-link.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 255, 204, 0.05);
}

/* Page Layout & Container */
.page-container {
  flex: 1;
  padding: 16px;
  padding-bottom: 80px;
}

.panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero h1 {
  font-size: 24px;
  line-height: 1.2;
  margin: 10px 0;
}

.hero h1 span {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.eyebrow {
  font-size: 10px;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  font-weight: bold;
}

.muted {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

/* 560x560 Square Grid System */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 15px;
}

.feature-card {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #071b49, #020c24);
  border: 2px solid var(--accent-cyan);
  border-radius: 16px;
  color: #fff;
  gap: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.15);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.feature-card:active, .feature-card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
  background: linear-gradient(145deg, #0a2769, #04153a);
}

/* Form & Input Controls */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

label {
  font-size: 12px;
  color: var(--accent-cyan);
}

input, select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 204, 0.3);
  background: #020c24;
  color: #fff;
  font-size: 14px;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* Buttons */
.btn {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary {
  background: linear-gradient(135deg, #00ffcc, #009977);
  color: #020c24;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn.danger {
  background: var(--danger-red);
  color: #fff;
}

.full-width {
  width: 100%;
  margin-top: 8px;
}

/* Footer Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 2px solid var(--accent-cyan);
  z-index: 100;
}

.bottom-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  cursor: pointer;
}

.bottom-item.active {
  color: var(--accent-cyan);
}

.bottom-item i {
  font-size: 18px;
}