:root {
  --primary: #8B1A2B;
  --primary-hover: #721524;
  --primary-light: #fdf2f4;
  --accent: #A52A3A;
  --dark: #0e1111;
  --text: #111827;
  --muted: #6b7280;
  --bg: #f9fafb;
  --panel: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 18px rgba(17,24,39,.06);
  --shadow-lg: 0 12px 32px rgba(17,24,39,.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { overflow-x: hidden; max-width: 100%; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Audi Type', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; display: grid; place-items: center; padding: 1.5rem; }
footer { flex-shrink: 0; }

header {
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  max-width: 1600px; margin: 0 auto;
  padding: .85rem 1.25rem;
  width: 100%;
}
@media (max-width: 960px) { .brand { padding: .75rem .85rem; } }
.logo-dot {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .05em;
}
.logo-dot::before { content: 'MS'; }
header h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--dark);
}
header p { margin: 0; color: var(--muted); font-size: .8rem; }

/* ---- Dashboard ---- */
.dashboard {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.dashboard__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--dark);
  text-align: center;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 240px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
a.tile {
  cursor: pointer;
}
a.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
a.tile:active {
  transform: translateY(-1px);
}

.tile--coming {
  cursor: not-allowed;
  opacity: .65;
}
.tile--coming::after {
  content: 'V príprave';
  position: absolute;
  top: 12px; right: 12px;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--border);
  color: var(--muted);
  padding: .2rem .5rem;
  border-radius: 999px;
}

.tile__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: .25rem;
}
.tile__icon svg {
  width: 26px; height: 26px;
}
.tile--coming .tile__icon {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.tile__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--dark);
}
.tile__desc {
  font-size: .85rem;
  color: var(--muted);
  flex: 1;
}
.tile__cta {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: .5rem;
}
.tile__cta--muted {
  color: var(--muted);
}

@media (max-width: 720px) {
  .tiles { flex-direction: column; align-items: stretch; }
  .tile { max-width: none; }
}

footer {
  padding: 1rem 1.5rem;
  color: var(--muted); font-size: .78rem;
  border-top: 1px solid var(--border);
  display: flex; gap: .5rem; justify-content: center;
  background: var(--panel);
}
.sep { opacity: .5; }
