/* ------------------------------
   BUTTONS
------------------------------ */
.btn {
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 82, 186, 0.24) 0%, rgba(9, 22, 44, 0.26) 54%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: linear-gradient(135deg, rgba(15, 82, 186, 0.3) 0%, rgba(9, 22, 44, 0.32) 54%, rgba(0, 0, 0, 0.34) 100%);
  color: #fff;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(15, 82, 186, 0.44) 0%, rgba(11, 58, 132, 0.4) 52%, rgba(0, 0, 0, 0.34) 100%);
  color: #fff;
}

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

.btn.danger {
  background: #ff4c4c;
  color: #fff;
}

/* ------------------------------
   CARDS
------------------------------ */
.feature-card,
.mode-card,
.status-card,
.tool-log {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  transition: 0.2s;
}

.feature-card:hover,
.mode-card:hover {
  background: var(--panel-light);
}

/* ---------- CARD ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* ------------------------------
   GRID LAYOUTS
------------------------------ */
.feature-card,
.mode-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ------------------------------
   FORMS
------------------------------ */
input, select {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
  color: var(--text);
  width: 100%;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
}
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ---------- BUTTON ---------- */
.button {
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(135deg, rgba(15, 82, 186, 0.44) 0%, rgba(11, 58, 132, 0.4) 52%, rgba(0, 0, 0, 0.34) 100%);
  color: white;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.85;
}

/* ---------- NAV ---------- */
.navbar {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title {
  font-size: 18px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: var(--space-3);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-primary);
}