/* HAIRQOO 3.0 Control Center — statyczny upgrade hairqoo.com (1:1 z prototypu) */

.home-cc {
  min-height: auto !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  width: 100%;
}

.cc-app {
  width: 100%;
  position: relative;
  z-index: 2;
}

.cc-container {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.cc-container--feed {
  width: min(100%, var(--content-max));
}

.cc-section-pad {
  padding-block: var(--space-xl);
}

.cc-glass {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.cc-glass--interactive {
  cursor: pointer;
  transition:
    transform var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) var(--ease-out),
    border-color var(--duration-med) var(--ease-out);
}

.cc-glass--interactive:hover,
.cc-glass--interactive:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(201, 191, 255, 0.35);
}

.cc-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 11, 18, 0.72);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="light"] .cc-header {
  background: rgba(247, 244, 239, 0.8);
}

.cc-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: var(--header-h);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Rezerwa pod fixed gate-controls (theme + język) — cały sticky chrome */
.cc-top-chrome {
  padding-right: var(--gate-controls-reserve);
  box-sizing: border-box;
}

.cc-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}

.cc-header__brand .hairqoo-brand {
  gap: 0.5em;
}

.cc-header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.cc-header__nav::-webkit-scrollbar {
  display: none;
}

.cc-header__navLink {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
}

.cc-header__navLink:hover {
  color: var(--text);
}

.cc-mobile-search {
  display: none;
  position: sticky;
  top: var(--header-h);
  z-index: calc(var(--z-header) - 1);
  padding: var(--space-sm) var(--space-md);
  background: rgba(11, 11, 18, 0.85);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Homepage: header unosi się na hero — bez osobnego „paska” na desktopie */
@media (min-width: 901px) {
  .home-cc .cc-header {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.cc-hero {
  position: relative;
  padding-block: clamp(var(--space-xxl), 9vw, var(--space-3xl)) var(--space-xl);
  text-align: center;
  overflow: hidden;
}

.cc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 18, 0.2) 0%, rgba(11, 11, 18, 0.6) 100%),
    url("../assets/images/sections/hero-home.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.06);
}

.cc-hero__kicker {
  margin: 0 0 var(--space-sm);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 600;
}

.cc-hero__title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
  max-width: 16ch;
  margin-inline: auto;
}

.cc-hero__lead {
  margin: var(--space-md) auto 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.cc-hero__search {
  margin: var(--space-xl) auto 0;
  max-width: 720px;
}

.cc-search__row {
  display: flex;
  gap: 8px;
}

.cc-search__input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--surface-high);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.cc-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--cosmic-void);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  cursor: pointer;
}

.cc-search__submitIcon {
  display: none;
}

.cc-search__submitIcon .hq-icon {
  width: 20px;
  height: 20px;
}

.cc-search__submit--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand-gradient);
}

.cc-search__submit--icon .cc-search__submitIcon {
  display: grid;
  place-items: center;
}

.cc-search__trending {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.cc-search__trending::-webkit-scrollbar {
  display: none;
}

.cc-search__tag {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--surface-high);
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.cc-ai__panel {
  padding: var(--space-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(255, 178, 184, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 120% at 0% 100%, rgba(123, 97, 255, 0.16), transparent 55%),
    var(--glass-fill);
}

.cc-ai__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/sections/section-ai.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.cc-ai__panel > * {
  position: relative;
  z-index: 1;
}

.cc-ai__prompts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: var(--space-lg) 0;
}

.cc-ai__prompt {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--surface-high);
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
}

.cc-portals__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.cc-portals__headline {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.cc-portals__headline--right {
  text-align: right;
}

.cc-portal-tile {
  padding: var(--space-xl) var(--space-lg);
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.cc-portal-tile--salon::before,
.cc-portal-tile--client::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.cc-portal-tile--salon::before {
  background-image: url("../assets/images/sections/portal-salon.jpg");
}

.cc-portal-tile--client::before {
  background-image: url("../assets/images/sections/portal-client.jpg");
}

.cc-portal-tile > * {
  position: relative;
  z-index: 1;
}

.cc-portal-tile__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  color: var(--cosmic-void);
  margin-bottom: 6px;
}

.cc-portal-tile__icon--salon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cc-portal-tile__icon--client {
  background: linear-gradient(135deg, var(--strand-mauve) 0%, var(--secondary) 100%);
}

.cc-section {
  padding-block: var(--space-xl);
}

.cc-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.cc-section__title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  margin: 0;
}

.cc-section__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cc-section__action {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.cc-hscroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
}

.cc-hscroll > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(280px, 78vw);
}

.cc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.cc-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-high);
}

.cc-card__media--tall {
  aspect-ratio: 3 / 4;
}

.cc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cc-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  max-width: 100%;
  margin-inline: auto;
}

.cc-feed__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.cc-feed__media {
  overflow: hidden;
  position: relative;
  background: var(--surface-high);
  line-height: 0;
}

.cc-feed__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
}

.cc-feed__type {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 8px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  line-height: 1.2;
}

.cc-feed__body {
  padding: var(--space-sm) var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-feed__title {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.cc-feed__desc {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-feed__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--outline);
}

.cc-feed__engagement {
  display: flex;
  gap: 10px;
}

.cc-feed__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cc-feed__tag {
  font-size: 0.68rem;
}

/* ETAP 6.5 — live passport panel */
.cc-passport {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cc-passport__levelHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.cc-passport__levelLabel {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--outline);
  letter-spacing: 0.04em;
}

.cc-passport__levelValue {
  font-family: "Manrope", sans-serif;
  font-size: 1.75rem;
  color: var(--primary);
}

.cc-passport__xpBar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-high);
  overflow: hidden;
  margin-top: 8px;
}

.cc-passport__xpFill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: inherit;
}

.cc-passport__xpMeta {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.cc-passport__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-passport__stats li {
  text-align: center;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--surface-high);
}

.cc-passport__stats strong {
  display: block;
  font-size: 1.1rem;
}

.cc-passport__stats span {
  font-size: 0.72rem;
  color: var(--muted);
}

.cc-passport__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cc-passport__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cc-passport__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.cc-passport__when {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

.cc-passport__itemLabel {
  font-size: 0.9rem;
}

.cc-passport__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cc-calendar__panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-image: url("../assets/images/sections/section-calendar.jpg");
  background-size: cover;
  opacity: 0.14;
  z-index: 0;
}

.cc-map__panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.cc-map__globe {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-md);
  background: var(--surface-high);
  overflow: hidden;
}

.cc-map__globe::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-image: url("../assets/images/sections/section-map.jpg");
  background-size: cover;
  opacity: 0.16;
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.cc-job::before,
.cc-award::before,
.cc-passport::before,
.cc-newsletter::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-size: cover;
  opacity: 0.14;
  z-index: 0;
}

.cc-job::before {
  background-image: url("../assets/images/sections/section-career.jpg");
}

.cc-award::before {
  background-image: url("../assets/images/sections/section-awards.jpg");
}

.cc-passport::before {
  background-image: url("../assets/images/sections/section-passport.jpg");
}

.cc-newsletter::before {
  background-image: url("../assets/images/sections/section-newsletter.jpg");
}

.cc-footer {
  margin-top: var(--space-3xl);
  border-top: 1px solid var(--glass-border);
  padding-block: var(--space-xl);
  background: var(--cosmic-void);
}

.cc-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  grid-template-columns: repeat(5, 1fr);
  background: rgba(11, 11, 18, 0.92);
  border-top: 1px solid var(--glass-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.cc-tabbar__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 0.68rem;
  text-decoration: none;
}

body.is-labyrinth-active #gate {
  display: none;
}

@media (max-width: 900px) {
  .cc-header__nav {
    display: none;
  }
  .cc-hero__search {
    display: none;
  }
  .cc-mobile-search {
    display: block;
  }

  /* Jeden wspólny sticky pasek: logo + wyszukiwarka (bez podwójnego „bara”) */
  .cc-top-chrome {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(11, 11, 18, 0.9);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  /* Podstrony hub — tylko logo (bez duplikatu wyszukiwarki) */
  .cc-top-chrome--slim .cc-mobile-search {
    display: none !important;
  }

  .cc-top-chrome--slim .cc-header__inner {
    height: 48px;
  }

  .cc-top-chrome .cc-header__inner {
    height: 52px;
  }

  [data-theme="light"] .cc-top-chrome {
    background: rgba(247, 244, 239, 0.94);
  }

  .cc-top-chrome .cc-header {
    position: static;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cc-top-chrome .cc-mobile-search {
    position: static;
    top: auto;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-top: 0;
    padding-bottom: var(--space-sm);
  }

  /* Wąski rząd: input + mic + submit — grid zapobiega nachodzeniu przycisków */
  .cc-search__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
  }

  .cc-search__row .cc-search__input {
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .cc-voice-btn {
    width: 40px;
    height: 40px;
  }

  .cc-search__submitLabel {
    display: none;
  }

  .cc-search__submit:not(.cc-search__submit--icon) .cc-search__submitIcon {
    display: grid;
    place-items: center;
  }

  .cc-search__submit:not(.cc-search__submit--icon) {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--brand-gradient);
  }

  .cc-search__submit--icon {
    width: 44px;
    height: 44px;
  }

  .cc-tabbar {
    display: grid;
  }
  body:not(.is-labyrinth-active) {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 760px) {
  .cc-portals__grid {
    grid-template-columns: 1fr;
  }
  .cc-portals__headline--right {
    text-align: left;
  }
  .cc-map__panel {
    grid-template-columns: 1fr;
  }
}

body.hub-page {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
}

body.hub-page #hub-root {
  position: relative;
  z-index: 1;
}

.cc-listing-page {
  padding-block: var(--space-lg) var(--space-3xl);
}

.cc-listing-title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0.5rem 0 0;
}

.cc-listing-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.cc-back-link {
  color: var(--primary);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.cc-listing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}

.cc-country-filter select {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--surface-high);
  color: var(--text);
}

.cc-filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--surface-high);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.cc-filter-chip--on {
  border-color: var(--primary);
  color: var(--primary);
}

.cc-listing-empty {
  padding: var(--space-3xl) 0;
  text-align: center;
  color: var(--muted);
}

.cc-entity-hero {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-high);
  margin-bottom: var(--space-lg);
}

.cc-entity-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-entity-title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.cc-entity-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md);
}

.cc-search__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-search__row .cc-search__input {
  flex: 1;
  min-width: 0;
}

.cc-map__country {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast, 0.15s);
}

.cc-map__country:hover {
  background: var(--surface-high);
}

@media (max-width: 900px) {
  body.hub-page {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0));
  }
}

/* ============================================================
   POLISH LAYER — spójny system wizualny Hairqoo (10/10)
   ============================================================ */

/* Ikony line-art */
.hq-icon {
  width: 1.25em;
  height: 1.25em;
  display: block;
  flex-shrink: 0;
}

/* --- Subtelne wspólne tło stron hub (spójność z homepage) --- */
body.hub-page {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(123, 97, 255, 0.12) 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(89, 255, 162, 0.05) 0%, transparent 45%),
    var(--cosmic-void);
  background-attachment: fixed;
}

[data-theme="light"] body.hub-page {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(90, 69, 212, 0.1) 0%, transparent 55%),
    var(--light-bg);
  background-attachment: fixed;
}

/* --- Nawigacja headera: active state + hover pill + fade --- */
.cc-header__nav {
  position: relative;
  -webkit-mask: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  mask: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
}

.cc-header__navLink {
  position: relative;
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.cc-header__navLink:hover {
  background: rgba(201, 191, 255, 0.1);
}

.cc-header__navLink--active {
  color: var(--text);
  background: rgba(201, 191, 255, 0.14);
}

.cc-header__navLink--active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

/* --- Karty: tytuł, opis (line-clamp), meta, score --- */
.cc-card__title {
  font-family: "Manrope", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-card__meta {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--outline);
}

.cc-card__typeTag,
.cc-feed__type {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(11, 11, 18, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(123, 97, 255, 0.14);
  border: 1px solid rgba(123, 97, 255, 0.28);
}

/* ETAP 6.6 — AI visibility layer (read-only) */
.cc-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cc-ai-status {
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(123, 97, 255, 0.22);
  background: rgba(123, 97, 255, 0.06);
}

.cc-ai-status__title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--outline);
}

.cc-ai-status__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.cc-ai-status__list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-ai-insight {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}

.cc-ai-insight--collapsible .cc-ai-insight__panel {
  display: none;
  margin-top: 8px;
}

.cc-ai-insight--collapsible:hover .cc-ai-insight__panel,
.cc-ai-insight--collapsible:focus-within .cc-ai-insight__panel,
.cc-ai-insight--collapsible.cc-ai-insight--open .cc-ai-insight__panel {
  display: grid;
}

.cc-ai-insight__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  cursor: pointer;
}

.cc-ai-insight__hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--outline);
  font-size: 0.62rem;
}

.cc-ai-insight__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px 10px;
  margin: 0;
}

.cc-ai-insight__grid dt {
  font-size: 0.62rem;
  color: var(--muted);
  margin: 0;
}

.cc-ai-insight__grid dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.cc-ai-explain {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
}

.cc-ai-explain--compact {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
}

.cc-ai-explain__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.cc-ai-explain__lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cc-ai-explain__entity {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

/* --- Feed --- */
.cc-feed__title {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.25;
}

.cc-feed__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Panel AI: opis + przyciski jako CTA --- */
.cc-ai__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}

.cc-ai__openBtn,
.cc-portal-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cosmic-void);
  background: var(--brand-gradient);
  border: none;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.cc-ai__openBtn:hover,
.cc-portal-tile__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0.32);
}

.cc-portal-tile__cta {
  margin-top: 14px;
  background: transparent;
  color: var(--primary);
  padding: 8px 0;
  font-weight: 700;
}

.cc-portal-tile__cta:hover {
  transform: none;
  box-shadow: none;
  color: var(--secondary);
}

.cc-ai__prompt:hover {
  border-color: rgba(201, 191, 255, 0.4);
  background: var(--surface-highest);
}

/* --- Kafelki portali: ikona SVG + opis --- */
.cc-portal-tile__icon .hq-icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}

.cc-portal-tile__title {
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
  margin: 4px 0 6px;
}

.cc-portal-tile__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 42ch;
}

/* --- Nagrody: medal mięta --- */
.cc-award {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-lg);
}

.cc-award__medal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--brand-mint);
  background: var(--brand-mint-soft);
}

.cc-award__medal .hq-icon {
  width: 22px;
  height: 22px;
}

.cc-award__vote {
  align-self: flex-start;
  margin-top: 4px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface-high);
  border: 1px solid var(--glass-border);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.cc-award__vote:hover {
  border-color: var(--primary);
}

/* --- Badge zweryfikowane (mięta) --- */
.cc-entity-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cc-entity-type {
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-high);
  border: 1px solid var(--glass-border);
}

.cc-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-mint);
  background: var(--brand-mint-soft);
  border: 1px solid rgba(89, 255, 162, 0.32);
}

.cc-verified .hq-icon {
  width: 15px;
  height: 15px;
}

/* --- Footer: layout + logo + kolumny --- */
.cc-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.cc-footer__brand {
  margin-bottom: 12px;
}

.cc-footer__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 36ch;
}

.cc-footer__colTitle {
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--outline);
  margin-bottom: 12px;
}

.cc-footer__link {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.cc-footer__link:hover {
  color: var(--text);
}

.cc-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  color: var(--outline);
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .cc-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .cc-footer__intro {
    grid-column: 1 / -1;
  }
  .cc-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Newsletter --- */
.cc-newsletter__form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cc-newsletter__input {
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--surface-high);
  color: var(--text);
  min-width: 220px;
  outline: none;
}

.cc-newsletter__input:focus {
  border-color: var(--primary);
}

.cc-newsletter__cta {
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--cosmic-void);
  background: var(--brand-gradient);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.cc-newsletter__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0.32);
}

@media (max-width: 680px) {
  .cc-newsletter {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .cc-newsletter__form {
    width: 100%;
  }
  .cc-newsletter__input {
    flex: 1;
    min-width: 0;
  }
}

/* --- Tab bar mobile: ikony + active mięta --- */
.cc-tabbar__icon {
  display: grid;
  place-items: center;
  margin-bottom: 3px;
}

.cc-tabbar__icon .hq-icon {
  width: 22px;
  height: 22px;
}

.cc-tabbar__tab--active {
  color: var(--primary);
}

.cc-tabbar__tab--active .cc-tabbar__icon {
  color: var(--primary);
}

/* --- Search submit: gradient marki --- */
.cc-search__submit {
  background: var(--brand-gradient);
}

.cc-voice-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface-high);
  border: 1px solid var(--glass-border);
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.cc-voice-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.cc-voice-btn .hq-icon {
  width: 20px;
  height: 20px;
}

/* Statystyki zaangażowania z ikonami */
.cc-feed__engagement span,
.cc-entity-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cc-feed__engagement .hq-icon,
.cc-entity-stats .hq-icon {
  width: 16px;
  height: 16px;
  color: var(--outline);
}

.cc-entity-stats .hq-icon {
  width: 18px;
  height: 18px;
}

/* Play overlay na kartach wideo */
.cc-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.cc-card__play span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(11, 11, 18, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cc-card__play .hq-icon {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

/* Paszport — kamienie milowe */
.cc-passport__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

.cc-passport__item:last-child {
  border-bottom: none;
}

.cc-passport__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  color: var(--primary);
  background: rgba(123, 97, 255, 0.12);
}

.cc-passport__icon .hq-icon {
  width: 22px;
  height: 22px;
}

/* ============================================================
   MOBILE POLISH — feed, listing, search, tabbar
   ============================================================ */

@media (max-width: 900px) {
  .cc-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .cc-listing-page {
    padding-block: var(--space-md) var(--space-2xl);
  }

  .cc-listing-head {
    margin-bottom: var(--space-md);
  }

  .cc-listing-title {
    font-size: clamp(1.55rem, 6vw, 2rem);
    margin-top: 0.35rem;
  }

  .cc-listing-filters {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .cc-tag-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .cc-tag-chips::-webkit-scrollbar {
    display: none;
  }

  .cc-filter-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .cc-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .cc-tabbar__tab {
    position: relative;
    padding: 8px 2px 10px;
    min-height: 52px;
    font-size: 0.64rem;
    letter-spacing: 0.01em;
  }

  .cc-tabbar__tab--active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-gradient);
  }

  .cc-tabbar__tab--active {
    color: var(--text);
  }

  .cc-tabbar__tab--active .cc-tabbar__icon {
    color: var(--primary);
  }
}

@media (max-width: 640px) {
  .cc-feed {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 520px) {
  .cc-header__brand .hairqoo-brand__wordmark {
    display: none;
  }
}
