/* ============================================================
   Můj účet — nástěnka / rozcestník (/muj-ucet/)
   Moderní vzhled 2026: měkké hero, bohaté dlaždice, jemné stíny.
   Staví na tokenech z /styles.css.
   ============================================================ */

.cs-body { background: hsl(150 30% 97%); }

/* --- Hero --- */
.mu-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--primary-deep)) 0%, hsl(var(--primary)) 55%, hsl(var(--primary-glow)) 130%);
  color: #fff;
  padding: calc(64px + 2.5rem) 0 2.5rem;
}
.mu-header-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.mu-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.mu-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.mu-header h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.mu-header-sub {
  margin: 0.3rem 0 0;
  opacity: 0.92;
  font-size: 0.98rem;
}

/* --- Menu (přepínač) --- */
.mu-tabs {
  position: sticky;
  top: 64px;
  z-index: 10;
  background: hsl(0 0% 100% / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}
.mu-tabs-inner { display: flex; gap: 0.25rem; }
.mu-tab-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.95rem 0.65rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.mu-tab-btn:hover { color: hsl(var(--primary)); }
.mu-tab-btn.active { color: hsl(var(--primary)); border-bottom-color: hsl(var(--primary)); }

.mu-content-wrap { padding: 2rem 0 4rem; }

/* --- Dlaždice produktů --- */
.mu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.mu-tile {
  --mu-accent: 152 60% 34%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid hsl(var(--border));
  text-decoration: none;
  color: hsl(var(--card-foreground));
  box-shadow: 0 2px 6px rgba(20, 70, 40, 0.05);
  transition: transform 0.18s cubic-bezier(.2,.7,.3,1), box-shadow 0.2s, border-color 0.2s;
}
.mu-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 70, 40, 0.16);
  border-color: hsl(var(--mu-accent) / 0.5);
}

.mu-tile-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--mu-accent)) 0%, hsl(var(--mu-accent) / 0.7) 100%);
  overflow: hidden;
}
.mu-tile-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.mu-tile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
}
.mu-tile-icon {
  position: relative;
  z-index: 1;
  font-size: 2.6rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.mu-tile-badge {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  backdrop-filter: blur(4px);
}

.mu-tile-content { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.mu-tile-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--mu-accent));
}
.mu-tile-content h3 { margin: 0.35rem 0 0.4rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.mu-tile-content p { margin: 0; font-size: 0.92rem; color: hsl(var(--muted-foreground)); line-height: 1.45; }

.mu-tile-progress {
  margin-top: 1rem;
  height: 7px;
  border-radius: 999px;
  background: hsl(var(--mu-accent) / 0.15);
  overflow: hidden;
}
.mu-tile-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: hsl(var(--mu-accent));
}

.mu-tile-cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: hsl(var(--mu-accent));
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: gap 0.15s, filter 0.15s;
}
.mu-tile-cta svg { width: 16px; height: 16px; }
.mu-tile:hover .mu-tile-cta { gap: 0.65rem; filter: brightness(1.08); }

/* --- Prázdný stav --- */
.mu-empty { text-align: center; padding: 3rem 1rem; }
.mu-empty-icon { font-size: 3.25rem; }
.mu-empty h2 { margin: 0.75rem 0 0.25rem; font-size: 1.4rem; }
.mu-empty p { margin: 0 0 1.5rem; color: hsl(var(--muted-foreground)); }
.mu-empty-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* --- Profil --- */
.mu-card {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  padding: 1.6rem 1.6rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 6px rgba(20, 70, 40, 0.04);
}
.mu-card-title { margin: 0 0 1.1rem; font-size: 1.1rem; font-weight: 800; color: hsl(var(--primary)); }
.mu-field {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 0.95rem;
}
.mu-field:last-child { border-bottom: none; }
.mu-field-label { color: hsl(var(--muted-foreground)); }

.mu-access, .mu-history { list-style: none; margin: 0; padding: 0; }
.mu-access li, .mu-history li {
  padding: 0.6rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 0.95rem;
}
.mu-access li:last-child, .mu-history li:last-child { border-bottom: none; }
.mu-acc-icon { margin-right: 0.4rem; }
.mu-acc-link { margin-left: 0.5rem; color: hsl(var(--primary)); font-weight: 700; }
.mu-muted { color: hsl(var(--muted-foreground)); }

@media (max-width: 600px) {
  .mu-header { padding-top: calc(64px + 1.75rem); }
  .mu-header h1 { font-size: 1.5rem; }
  .mu-avatar { width: 50px; height: 50px; font-size: 1.3rem; }
  .mu-grid { grid-template-columns: 1fr; }
}
