:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.12);

  --accent: #2563eb;
  --accent2: #06b6d4;

  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

body {
  background: radial-gradient(1200px 600px at 15% 10%, rgba(37, 99, 235, 0.12), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(6, 182, 212, 0.10), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

.topbar {
  padding: 16px 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.85));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand-subtitle {
  opacity: 0.9;
  font-size: 0.85rem;
  line-height: 1.1;
}

.welcome {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.tile {
  display: block;
  padding: 18px 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none !important;
  color: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  height: 100%;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}

.tile:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22), var(--shadow);
}

.tile-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.tile-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.tile-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  padding: 14px 2px;
  opacity: 0.95;
}

/* Dark theme */
.dark-theme {
  --bg: #0b1020;
  --panel: rgba(15, 23, 42, 0.85);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(226, 232, 240, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.dark-theme .welcome {
  background: rgba(15, 23, 42, 0.75);
}

.dark-theme .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.brand-link:visited {
  color: inherit;
}

.brand-link:hover {
  color: inherit;
  text-decoration: none;
}

.brand-link:active {
  color: inherit;
}


.brand-link {
  transition: transform 0.15s ease;
}

.brand-link:hover {
  transform: scale(1.03);
}


/* Small screens */
@media (max-width: 575px) {
  .brand-subtitle {
    display: none;
  }
}
