/* ================================
   ROOT DESIGN TOKENS
================================ */
:root {
  --bg-main: #0b0b12;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);

  --neon-blue: #4fc3ff;
  --neon-purple: #b388ff;
  --neon-pink: #ff5fd2;

  --text-primary: #ffffff;
  --text-secondary: #cfcfe6;

  --radius-lg: 22px;
  --radius-md: 14px;

  --blur: blur(18px);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   GLOBAL RESET
================================ */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(circle at top left, #1a1a3d, #05050a);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
}

/* ================================
   LAYOUT
================================ */
.app {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.4rem;
  font-weight: 600;
  background: linear-gradient(
    90deg,
    var(--neon-blue),
    var(--neon-purple),
    var(--neon-pink)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================================
   GLASS CARD
================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 20px;
  transition: var(--transition);
}

.glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
}

/* ================================
   DASHBOARD GRID
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.tile {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  opacity: 0;
  transition: var(--transition);
}

.tile:hover::after {
  opacity: 1;
}

/* ================================
   BUTTONS
================================ */
.button {
  background: linear-gradient(
    135deg,
    var(--neon-blue),
    var(--neon-purple)
  );
  border: none;
  border-radius: var(--radius-md);
  color: white;
  padding: 12px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.button:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
}

/* ================================
   FOOTER
================================ */
footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.8;
}
/* ===== MICRO ANIMATIONS ===== */
.glass {
  animation: fadeIn 0.6s ease both;
}

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

/* Touch feedback */
.button:active {
  transform: scale(0.96);
     }
