/* ============================================================
   STYLES.CSS — Brover Marketing Hub
   ============================================================
   Huisstijl: Oranje (#FFA500) + Donkergrijs (#212121)
   Lettertype: Urbanist (exclusief)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --orange:            #FFA500;
  --orange-dark:       #E69500;
  --orange-light:      #FFF8EB;
  --dark:              #212121;
  --dark-lighter:      #363636;
  --grey:              #948982;
  --grey-light:        #F5F5F5;
  --text:              #212121;
  --text-sec:          #363636;
  --border:            #E6E6E6;
  --bg:                #FFFFFF;
  --white:             #FFFFFF;
  --green:             #8BC34A;
  --red:               #FF8C66;

  --font: 'Urbanist', sans-serif;
  --mono: 'SF Mono', 'Fira Code', Consolas, monospace;

  --header-h: 60px;
  --sidebar-w: 248px;
  --sidebar-w-compact: 86px;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-hover: 0 3px 12px rgba(0,0,0,0.08);
  --speed: 150ms ease;
  --max-w: 1140px;
}

/* ── Base ────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; font-weight: 900; }
h1 { font-size: 1.75rem; margin-bottom: 14px; }
h2 { font-size: 1.35rem; margin-bottom: 14px; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
p  { margin-bottom: 14px; color: var(--text-sec); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; color: var(--text-sec); font-size: 0.95rem; }

/* ── Container ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; width: 100%; }

.main {
  flex: 1;
  padding: calc(var(--header-h) + 24px) 0 48px;
}

/* Desktop: replace top nav row with fixed left sidebar nav */
@media (min-width: 1024px) {
  .main {
    padding: calc(var(--header-h) + 20px) 0 48px;
    margin-left: var(--sidebar-w);
  }

  .footer {
    margin-left: var(--sidebar-w);
  }

  .header .header__inner {
    max-width: none;
    padding: 0 18px;
  }

  .header .header__hamburger {
    display: none !important;
  }

  .header .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - var(--header-h));
    background: linear-gradient(180deg, #fff 0%, #fff8ea 100%);
    border-right: 1px solid var(--border);
    border-top: 1px solid rgba(255, 165, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    padding: 16px 10px 18px;
    overflow-y: auto;
    box-shadow: 8px 0 24px rgba(33, 33, 33, 0.06);
    z-index: 995;
  }

  .header .header__nav::before {
    content: 'Navigatie';
    display: block;
    margin: 2px 6px 10px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange-dark);
    background: rgba(255, 165, 0, 0.14);
  }

  .header .header__nav a {
    position: relative;
    width: 100%;
    padding: 12px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: var(--text-sec);
    border: 1px solid transparent;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  }

  .header .header__nav a::before {
    content: '';
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: #fff;
    border: 1px solid var(--border);
  }

  .header .header__nav a[data-page="index"]::before { content: '🏠'; }
  .header .header__nav a[data-page="huisstijl"]::before { content: '🎨'; }
  .header .header__nav a[data-page="bibliotheek"]::before { content: '📦'; }
  .header .header__nav a[data-page="fotos"]::before { content: '📷'; }
  .header .header__nav a[data-page="ai"]::before { content: '🤖'; }

  .header .header__nav a:hover {
    transform: translateX(2px);
    background: #fff;
    border-color: rgba(255, 165, 0, 0.28);
    color: var(--dark);
  }

  .header .header__nav a.active {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(255, 165, 0, 0.26);
  }

  .header .header__nav a.active::before {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
  }

  .header .header__nav a.active::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 10px;
    background: var(--orange);
  }

  .header .header__search-btn {
    margin-left: auto;
    background: #fff;
  }

  .header .header__nav.sidebar-enhanced::before {
    display: none;
  }

  .sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
  }

  .sidebar-section__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--grey);
    font-family: var(--font);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
  }

  .sidebar-section__toggle:hover {
    border-color: rgba(255, 165, 0, 0.28);
    color: var(--orange-dark);
  }

  .sidebar-section__toggle-caret {
    font-size: 0.8rem;
    transition: transform 180ms ease;
  }

  .sidebar-section__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sidebar-section.collapsed .sidebar-section__links {
    display: none;
  }

  .sidebar-section.collapsed .sidebar-section__toggle-caret {
    transform: rotate(-90deg);
  }

  .sidebar-quick-actions {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 165, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-quick-actions__title {
    margin: 0;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grey);
  }

  .sidebar-quick-action {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 11px;
    border: 1px solid rgba(255, 165, 0, 0.26);
    border-radius: 8px;
    background: #fff;
    color: var(--text-sec);
    font-family: var(--font);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  .sidebar-quick-action:hover {
    transform: translateY(-1px);
    border-color: var(--orange);
    box-shadow: 0 6px 14px rgba(255, 165, 0, 0.14);
  }

  .sidebar-compact-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    margin-left: auto;
    margin-right: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--grey);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--speed);
  }

  .sidebar-compact-toggle:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
    background: var(--orange-light);
  }

  .sidebar-compact-toggle__icon {
    font-size: 0.85rem;
    line-height: 1;
  }

  body.sidebar-compact .main {
    margin-left: var(--sidebar-w-compact);
  }

  body.sidebar-compact .footer {
    margin-left: var(--sidebar-w-compact);
  }

  body.sidebar-compact .header .header__nav {
    width: var(--sidebar-w-compact);
    padding-left: 8px;
    padding-right: 8px;
  }

  body.sidebar-compact .header .header__nav a {
    justify-content: center;
    gap: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  body.sidebar-compact .header .header__nav a::before {
    margin: 0;
  }

  body.sidebar-compact .header .header__nav a.active::after {
    left: -8px;
  }

  body.sidebar-compact .header__nav-label,
  body.sidebar-compact .sidebar-section__toggle-label,
  body.sidebar-compact .sidebar-quick-actions__title,
  body.sidebar-compact .sidebar-quick-action span,
  body.sidebar-compact .sidebar-compact-toggle__label {
    display: none;
  }

  body.sidebar-compact .sidebar-section__toggle {
    justify-content: center;
    padding: 8px;
  }

  body.sidebar-compact .sidebar-section__toggle-caret {
    display: none;
  }

  body.sidebar-compact .sidebar-quick-action {
    justify-content: center;
    gap: 0;
    padding: 10px 8px;
  }
}

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 2px solid var(--orange);
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
}

.header__brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}

.header__brand img {
  height: 38px; width: auto;
}

.header__nav {
  display: flex; align-items: center; gap: 2px;
}

.header__nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sec);
  transition: background var(--speed), color var(--speed);
  white-space: nowrap;
}

.header__nav a:hover {
  background: var(--grey-light);
  color: var(--dark);
}

.header__nav a.active {
  background: var(--orange);
  color: var(--white);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px; width: 32px; height: 32px;
  background: none; border: none; cursor: pointer; padding: 5px;
}
.header__hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform var(--speed), opacity var(--speed);
}
.header__hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--grey); margin-bottom: 20px;
}
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb__sep { color: var(--border); }
.breadcrumb__current { color: var(--dark); font-weight: 600; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 48px 40px;
  color: var(--white);
  margin-bottom: 32px;
}
.hero h1 { color: var(--white); font-size: 1.85rem; margin-bottom: 8px; }
.hero p { color: rgba(255,255,255,0.75); margin-bottom: 24px; font-size: 1.05rem; }

.hero__search { max-width: 480px; }

/* ── Search Bar ─────────────────────────────────────────── */
.search-bar { position: relative; width: 100%; }
.search-bar__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--grey); pointer-events: none;
}
.search-bar__icon svg { width: 16px; height: 16px; }

.search-bar__input {
  width: 100%; 
  padding: 12px 44px 12px 42px;
  border: 1.5px solid var(--border); 
  border-radius: 8px;
  font-size: 1rem; 
  font-family: var(--font);
  background: var(--white); 
  color: var(--text); 
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.search-bar__input::placeholder { color: var(--grey); font-weight: 500; }
.search-bar__input:focus { 
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.15);
}

.search-bar__clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: var(--grey-light); border: none; cursor: pointer;
  color: var(--grey); font-size: 0.82rem; padding: 5px 10px;
  border-radius: 5px; display: none; font-family: var(--font);
  transition: all 0.2s ease;
}
.search-bar__clear.visible { display: block; }
.search-bar__clear:hover { background: var(--orange-light); color: var(--orange); }

.hero .search-bar__input { background: rgba(255,255,255,0.95); border-color: transparent; }

/* ── Sections ───────────────────────────────────────────── */
.section { margin-bottom: 32px; }
.section--warm { background: var(--orange-light); margin-left: -20px; margin-right: -20px; padding: 24px 20px; border-radius: var(--radius); }
.section__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section__header h2 { margin-bottom: 0; }
.section__link { font-size: 0.9rem; font-weight: 600; color: var(--orange-dark); }

.page-header {
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--orange);
}
.page-header h1 { margin-bottom: 4px; }
.page-header p { font-size: 0.95rem; margin-bottom: 0; }

/* ── MODERN FOTO HERO SECTION ──────────────────────────── */
.foto-hero {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  padding: 48px 0;
  margin: -24px 0 32px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
}

.foto-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.foto-hero__content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.foto-hero__title {
  font-size: 2.8rem;
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.foto-hero__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.95;
  max-width: 600px;
  margin-bottom: 20px;
}

.foto-hero__stats {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.foto-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foto-hero__stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.foto-hero__stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subsection-heading {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--grey); margin: 24px 0 12px;
}

/* ── Grids ──────────────────────────────────────────────── */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 20px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 20px;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Dashboard Tile ─────────────────────────────────────── */
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; text-align: center;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.tile:hover { border-color: var(--orange); box-shadow: var(--shadow-hover); }
.tile__icon { font-size: 2rem; }
.tile__label { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.tile__count { font-size: 0.82rem; color: var(--grey); }

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: box-shadow var(--speed);
}
.card:hover { box-shadow: var(--shadow-hover); }

.card__badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 10px;
}
.badge--pdf  { background: #FEE2E2; color: #B91C1C; }
.badge--pptx { background: #FEF3C7; color: #B45309; }
.badge--svg  { background: #DBEAFE; color: #1D4ED8; }
.badge--png  { background: #D1FAE5; color: #047857; }
.badge--jpg  { background: #EDE9FE; color: #6D28D9; }
.badge--zip  { background: #E0E7FF; color: #3730A3; }

.card__title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.35; }
.card__desc { font-size: 0.9rem; color: var(--text-sec); margin-bottom: 12px; line-height: 1.5; }

.card__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem; color: var(--grey); margin-bottom: 12px;
}
.card__meta span { display: flex; align-items: center; gap: 3px; }

.card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tag {
  display: inline-block; padding: 4px 10px;
  background: var(--grey-light); color: var(--text-sec);
  border-radius: 100px; font-size: 0.8rem; font-weight: 500;
}

.card__audience { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.audience-badge {
  display: inline-block; padding: 4px 10px;
  background: var(--orange-light); color: var(--orange-dark);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
}

.card__actions {
  display: flex; gap: 6px; padding-top: 10px;
  border-top: 1px solid var(--border);
}

.featured-label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--orange-light); color: var(--orange);
  border-radius: 100px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: background var(--speed), color var(--speed);
  text-decoration: none; border: none; line-height: 1.3;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--text-sec); border: 1px solid var(--border); }
.btn--outline:hover { background: var(--grey-light); border-color: var(--orange); color: var(--dark); }
.btn--small { padding: 7px 14px; font-size: 0.82rem; }

/* ── Color Swatch ───────────────────────────────────────── */
.color-swatch {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.color-swatch__preview { height: 80px; }
.color-swatch__info { padding: 14px; }
.color-swatch__name { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.color-swatch__hex {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.color-swatch__hex code {
  font-family: var(--mono); font-size: 0.85rem; color: var(--text);
  background: var(--grey-light); padding: 2px 8px; border-radius: var(--radius-sm);
}
.color-swatch__copy {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 10px; font-size: 0.78rem; cursor: pointer;
  color: var(--text-sec); font-family: var(--font);
  transition: background var(--speed), color var(--speed);
}
.color-swatch__copy:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.color-swatch__copy.copied { background: var(--green); color: var(--white); border-color: var(--green); }
.color-swatch__usage { font-size: 0.82rem; color: var(--grey); line-height: 1.4; }

/* ── Logo Block ─────────────────────────────────────────── */
.logo-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.logo-block__preview {
  height: 160px; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--grey-light);
}
.logo-block__preview--dark { background: var(--dark); }
.logo-block__preview img, .logo-block__img { max-height: 100px; max-width: 85%; object-fit: contain; }
.logo-block__info { padding: 16px; border-top: 1px solid var(--border); }
.logo-block__name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.logo-block__variant { font-size: 0.85rem; color: var(--grey); margin-bottom: 10px; }
.logo-block__actions { display: flex; gap: 6px; }

/* ── USP Card ───────────────────────────────────────────── */
.usp-card {
  display: flex; gap: 14px; padding: 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.usp-card__icon { font-size: 1.6rem; flex-shrink: 0; }
.usp-card__content h3 { font-size: 1rem; margin-bottom: 4px; }
.usp-card__content p { font-size: 0.9rem; margin-bottom: 0; }

/* ── Segment Card ───────────────────────────────────────── */
.segment-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.segment-card__bar { height: 3px; }
.segment-card__body { padding: 20px; }
.segment-card__name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.segment-card__desc { font-size: 0.9rem; color: var(--text-sec); margin-bottom: 12px; line-height: 1.5; }
.segment-card__needs { list-style: none; padding: 0; }
.segment-card__needs li {
  font-size: 0.88rem; color: var(--text-sec); padding: 4px 0 4px 22px; position: relative;
}
.segment-card__needs li::before {
  content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700;
}

/* ── Filter Bar ─────────────────────────────────────────── */
.filter-bar {
  margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px;
}
.filter-bar .search-bar { max-width: 560px; }

.filter-group {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.filter-group__label {
  font-size: 0.82rem; font-weight: 700; color: var(--grey);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-right: 4px; white-space: nowrap;
}

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.88rem; font-weight: 500;
  font-family: var(--font); color: var(--text-sec);
  background: var(--white); cursor: pointer;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}
.chip:hover { border-color: var(--orange); color: var(--dark); }
.chip.active { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ── Typography Preview ─────────────────────────────────── */
.type-preview {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
}
.type-preview__sample {
  font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 14px;
}
.type-preview__meta { display: flex; flex-wrap: wrap; gap: 20px; }
.type-preview__meta dt {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--grey); margin-bottom: 3px;
}
.type-preview__meta dd { font-size: 0.9rem; color: var(--text); margin-bottom: 8px; }

/* ── Guideline Block ────────────────────────────────────── */
.guideline-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
}
.guideline-block h3 { margin-bottom: 14px; }
.guideline-block ul { list-style: none; padding: 0; }
.guideline-block li {
  padding: 8px 0 8px 24px; position: relative; font-size: 0.92rem;
  border-bottom: 1px solid var(--grey-light);
}
.guideline-block li:last-child { border-bottom: none; }
.guideline-block li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}

/* ── Tone of Voice ──────────────────────────────────────── */
.tov-principle {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.tov-principle h4 { font-size: 1rem; margin-bottom: 4px; color: var(--dark); }
.tov-principle p { font-size: 0.9rem; margin-bottom: 0; }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.do-dont__col {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.do-dont__col h4 { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.do-dont__col--do h4 { color: var(--green); }
.do-dont__col--dont h4 { color: var(--red); }
.do-dont__col ul { list-style: none; padding: 0; }
.do-dont__col li { padding: 7px 0; font-size: 0.92rem; border-bottom: 1px solid var(--grey-light); }
.do-dont__col li:last-child { border-bottom: none; }

/* ── Info Block (Over) ──────────────────────────────────── */
.info-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.info-block h3 { margin-bottom: 10px; }
.info-block p { font-size: 0.88rem; }
.info-block pre {
  background: var(--dark); color: #ddd; padding: 16px; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6;
  overflow-x: auto; margin: 10px 0;
}
.info-block code {
  font-family: var(--mono); font-size: 0.82rem; background: var(--grey-light);
  padding: 1px 5px; border-radius: 3px; color: var(--dark);
}
.info-block pre code { background: none; padding: 0; color: inherit; }

/* ── Stats Row ──────────────────────────────────────────── */
.stats-row {
  display: flex; gap: 20px; margin-bottom: 28px;
  padding: 20px 24px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.stat { text-align: center; flex: 1; }
.stat__number { font-size: 1.75rem; font-weight: 800; color: var(--orange); }
.stat__label { font-size: 0.82rem; color: var(--grey); margin-top: 4px; }

/* ── Empty State ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 16px; color: var(--grey); }
.empty-state__icon { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.5; }
.empty-state__title { font-size: 1rem; font-weight: 600; color: var(--text-sec); margin-bottom: 4px; }
.empty-state__text { font-size: 0.85rem; color: var(--grey); }

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--dark); color: var(--white);
  padding: 14px 24px; border-radius: var(--radius); font-size: 0.9rem;
  font-weight: 600; box-shadow: var(--shadow-hover); z-index: 2000;
  opacity: 0; transform: translateY(10px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
}
.toast.visible { opacity: 1; transform: translateY(0); }

/* ── Results Count ──────────────────────────────────────── */
.results-count { font-size: 0.88rem; color: var(--grey); margin-bottom: 12px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--dark); padding: 24px 0; margin-top: auto;
}
.footer p { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 0; }

/* ── Noscript ───────────────────────────────────────────── */
.noscript { background: #FEF3C7; color: #92400E; text-align: center; padding: 12px; font-weight: 500; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .do-dont { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; }
}

@media (max-width: 1023px) {
  .main { margin-left: 0; }
  .footer { margin-left: 0; }
}

@media (max-width: 768px) {
  :root { --header-h: 52px; }

  .header__nav {
    display: none; position: absolute; top: var(--header-h);
    left: 0; right: 0; background: var(--white);
    border-bottom: 2px solid var(--orange);
    flex-direction: column; padding: 6px; box-shadow: var(--shadow-hover);
  }
  .header__nav.open { display: flex; }
  .header__nav a { width: 100%; padding: 10px 12px; }
  .header__hamburger { display: flex; }

  h1 { font-size: 1.3rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .colors-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: 1fr; }

  .filter-group {
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; padding-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .tiles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 16px 10px; }
  .tile__icon { font-size: 1.5rem; }
  .hero { padding: 32px 18px; border-radius: var(--radius); }
  .hero h1 { font-size: 1.3rem; }
  .colors-grid { grid-template-columns: 1fr; }
  .usp-grid, .segment-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; align-items: center; }
}


/* ── Bestanden (File Browser) ─────────────────────────────── */

.lib-results-count {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 12px;
}

.lib-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lib-card {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--speed), box-shadow var(--speed);
}
.lib-card:hover { border-color: var(--orange); box-shadow: var(--shadow-hover); }
.lib-card--selected { border-color: var(--orange); background: var(--orange-light); }

/* ── Stacked file group ─────────────────────────────────── */
.lib-card--stack {
  flex-direction: column;
  align-items: stretch;
  box-shadow: 2px 2px 0 0 var(--border), 4px 4px 0 0 var(--grey-light);
}
.lib-card--stack:hover {
  box-shadow: 2px 2px 0 0 var(--orange), 4px 4px 0 0 rgba(255,165,0,0.18);
}
.lib-card--stack .lib-card__check {
  top: 16px;
  transform: none;
}

.lib-stack {
  width: 100%;
}

.lib-stack__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 10px 38px;
}

.lib-stack__badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.lib-stack__variants {
  border-top: 1px solid var(--border);
}

.lib-stack__variant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 52px;
  transition: background var(--speed);
}
.lib-stack__variant:not(:last-child) {
  border-bottom: 1px solid var(--grey-light);
}
.lib-stack__variant:hover {
  background: var(--orange-light);
}

.lib-stack__vname {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-stack__vmeta {
  font-size: 0.8rem;
  color: var(--grey);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .lib-card--stack { box-shadow: 1px 1px 0 0 var(--border), 2px 2px 0 0 var(--grey-light); }
  .lib-stack__header { padding: 12px 12px 8px 34px; gap: 10px; }
  .lib-stack__variant { padding: 6px 12px 6px 42px; gap: 6px; }
  .lib-stack__vname { font-size: 0.8rem; }
}

.lib-card__check {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0;
  transition: opacity var(--speed);
  cursor: pointer;
}
.lib-card:hover .lib-card__check,
.lib-card--selected .lib-card__check { opacity: 1; }
.lib-card__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}

.lib-card__overlay {
  position: absolute;
  top: 50%;
  right: 56px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--speed);
}
.lib-card:hover .lib-card__overlay { opacity: 1; }

.lib-card__body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 38px;
  flex: 1;
  min-width: 0;
}

.lib-card__icon {
  flex-shrink: 0;
}

.lib-card__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge--pdf  { background: #FEE2E2; color: #B91C1C; }
.badge--pptx { background: #FEF3C7; color: #B45309; }
.badge--svg  { background: #DBEAFE; color: #1D4ED8; }
.badge--png  { background: #D1FAE5; color: #065F46; }
.badge--jpg  { background: #E0F2FE; color: #075985; }
.badge--zip  { background: #F3E8FF; color: #6B21A8; }
.badge--ai   { background: #FFF7ED; color: #C2410C; }
.badge--eps  { background: #FFF7ED; color: #C2410C; }
.badge--psd  { background: #EDE9FE; color: #5B21B6; }
.badge--doc  { background: #DBEAFE; color: #1D4ED8; }
.badge--xls  { background: #D1FAE5; color: #065F46; }
.badge--other { background: var(--grey-light); color: var(--grey); }

.lib-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lib-card__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-card__meta {
  font-size: 0.82rem;
  color: var(--grey);
}

.lib-card__dl {
  flex-shrink: 0;
  text-decoration: none;
}

@media (max-width: 600px) {
  .lib-card__body { padding: 12px 12px 12px 34px; gap: 10px; }
  .lib-card__name { font-size: 0.85rem; }
  .lib-card__meta { font-size: 0.78rem; }
  .lib-card__dl { display: none; }
  .lib-card__check { opacity: 1; }
  .lib-card__overlay { opacity: 1; right: 10px; }
}


/* ── Foto Bibliotheek Header & Navigation ──────────────────── */

.foto-workspace {
  display: block;
}

.foto-sidebar {
  margin-bottom: 18px;
}

.foto-mainpanel {
  min-width: 0;
}

.foto-header-shell {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 165, 0, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(33, 33, 33, 0.06);
  padding: 14px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}

.foto-header-shell .foto-siblings {
  margin-bottom: 14px;
}

.foto-header-shell .foto-filterrow {
  margin-bottom: 0;
}

.foto-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 0.9rem;
  padding: 12px 0;
}

.foto-breadcrumb a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.foto-breadcrumb__root {
  background: var(--orange-light);
  border: 1px solid rgba(255, 165, 0, 0.28);
}

.foto-breadcrumb a:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
}

.foto-breadcrumb__sep {
  color: var(--grey-light);
  font-weight: 300;
  opacity: 0.6;
}

.foto-breadcrumb__current {
  color: var(--text);
  font-weight: 700;
  padding: 4px 8px;
  background: var(--orange-light);
  border-radius: 6px;
}

.foto-breadcrumb__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2);
}

.foto-breadcrumb__back:hover { background: var(--orange); color: #fff !important; }

.foto-breadcrumb__zip {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.9rem;
  padding: 8px 14px;
  background: var(--orange);
  color: #fff;
}

.foto-results-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--orange-light) 0%, rgba(255, 165, 0, 0.05) 100%);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 8px;
  display: inline-block;
  letter-spacing: 0.02em;
}

.foto-loading {
  text-align: center;
  padding: 40px;
  color: var(--grey);
  font-size: 0.9rem;
}

.foto-folders {
  margin-bottom: 32px;
}
.foto-folders__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  grid-auto-rows: auto;
}
.foto-folders-wrap { position: relative; }
.foto-folders__toggle {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 0;
  background: linear-gradient(90deg, transparent, var(--orange-light), transparent);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  color: var(--orange);
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed);
}
.foto-folders__toggle:hover { background: var(--orange-light); color: var(--orange-dark); }
.foto-folders__toggle-extra { opacity: .7; font-size: 0.75rem; }

.foto-folder {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  border: 2px solid var(--border);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  height: 280px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.foto-folder:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(255, 165, 0, 0.15);
  border-color: var(--orange);
}

/* Preview grid (top 3 thumbnails) */
.foto-folder__preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  flex: 1;
  background: var(--grey-light);
  overflow: hidden;
  position: relative;
}

.foto-folder__preview--single {
  grid-template-columns: 1fr;
}

.foto-folder__preview--empty {
  background: linear-gradient(135deg, var(--orange-light) 0%, rgba(255, 165, 0, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.4;
}

.foto-folder__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 2;
}

.foto-folder__preview-item {
  position: relative;
  overflow: hidden;
  background: var(--grey-light);
  aspect-ratio: 1;
}

.foto-folder__preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.foto-folder:hover .foto-folder__preview-item img {
  transform: scale(1.08);
}

/* Folder info footer */
.foto-folder__info {
  padding: 14px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.foto-folder__link {
  display: none;
}

.foto-folder__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
  max-height: 3.3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  letter-spacing: -0.01em;
}

.foto-folder__count {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.foto-folder__actions {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity var(--speed);
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  border-radius: 6px;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.foto-folder:hover .foto-folder__actions { opacity: 1; }

/* Drag-and-drop feedback */
.foto-card--dragging,
.foto-list__row.foto-card--dragging,
.foto-folder.foto-card--dragging { opacity: 0.4; }
.foto-folder--dragover {
  outline: 3px dashed var(--orange);
  outline-offset: -3px;
  background: rgba(255, 165, 0, 0.12);
}
.foto-card[draggable="true"],
.foto-list__row[draggable="true"],
.foto-folder[draggable="true"] { cursor: grab; }
.foto-card[draggable="true"]:active,
.foto-list__row[draggable="true"]:active,
.foto-folder[draggable="true"]:active { cursor: grabbing; }

.foto-folder__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 3px 6px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity var(--speed), background var(--speed);
  display: flex;
  align-items: center;
  justify-content: center;
}
.foto-folder__btn:hover { opacity: 1; background: rgba(255, 165, 0, 0.1); }



/* ── Manage Bar (Upload, New Folder, Delete) ──── */

.manage-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 16px;
}

.manage-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.manage-bar__btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 165, 0, 0.15);
  background: var(--orange-light);
}

.manage-bar__btn svg { flex-shrink: 0; }

.manage-bar__btn--danger { color: var(--grey); }

.manage-bar__btn--danger:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* ── Folder picker modal ─────────────────────────────── */
.folder-picker__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.folder-picker {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  width: 420px;
  max-width: 92vw;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
}
.folder-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.folder-picker__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.folder-picker__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
}
.folder-picker__close:hover { color: #333; }
.folder-picker__list {
  overflow-y: auto;
  padding: 8px 0;
  flex: 1;
}
.folder-picker__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font);
  text-align: left;
  transition: background .15s;
}
.folder-picker__item:hover:not(:disabled) {
  background: #FFF8EB;
}
.folder-picker__item:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.folder-picker__current {
  color: #999;
  font-size: 12px;
  margin-left: auto;
}

/* ── Filter row (search + view toggle) ──────────────────── */
.foto-filterrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--orange-light) 0%, rgba(255, 165, 0, 0.05) 100%);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 165, 0, 0.2);
}
.foto-filterrow .search-bar { 
  flex: 1;
  background: var(--white);
  border-radius: 8px;
}
.foto-view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.foto-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  cursor: pointer;
  color: var(--grey);
  transition: all 0.25s ease;
  font-weight: 600;
}
.foto-view-btn:hover { 
  color: var(--orange);
  background: rgba(255, 165, 0, 0.05);
}
.foto-view-btn--active { 
  background: var(--orange); 
  color: #fff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.foto-view-btn--active:hover { 
  background: var(--orange-dark);
  color: #fff; 
}
.foto-view-btn + .foto-view-btn { border-left: 1px solid var(--border); }

.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* ── Foto list view ─────────────────────────────────────── */
.foto-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.foto-list__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--grey-light);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.foto-list__hcheck { width: 24px; flex-shrink: 0; }
.foto-list__hthumb { width: 48px; flex-shrink: 0; }
.foto-list__hname { flex: 1; min-width: 0; }
.foto-list__hmeta { width: 100px; flex-shrink: 0; text-align: right; }
.foto-list__hactions { width: 140px; flex-shrink: 0; }
.foto-list__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  transition: background var(--speed);
}
.foto-list__row:hover { background: #FFF8EB; }
.foto-list__row--selected { background: var(--orange-light); }
.foto-list__check {
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.foto-list__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
  margin: 0;
}
.foto-list__thumb {
  width: 48px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--grey-light);
  cursor: pointer;
}
.foto-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.foto-list__name {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.foto-list__meta {
  width: 100px;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.8rem;
  color: var(--grey);
}
.foto-list__actions {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--speed);
}
.foto-list__row:hover .foto-list__actions { opacity: 1; }
.foto-list__actions .foto-card__action {
  width: 28px;
  height: 28px;
}

/* ── Foto Siblings (folder quick-switch pills) ──────────── */

.foto-siblings {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 0;
}

.foto-siblings:empty { display: none; }

.foto-siblings__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey);
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.foto-siblings__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
}

.foto-siblings__pill:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 165, 0, 0.15);
}

.foto-siblings__pill--active {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 165, 0, 0.3);
  font-weight: 800;
}

.foto-siblings__pill--active:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.35);
}

.foto-siblings__count {
  font-size: 0.75rem;
  opacity: 0.7;
}

@media (min-width: 1024px) {
  .foto-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .foto-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 28px);
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 0;
  }

  .foto-sidebar .foto-header-shell {
    margin-bottom: 12px;
    padding: 12px;
  }

  .foto-sidebar .foto-breadcrumb {
    margin-bottom: 12px;
    padding: 4px 0;
    font-size: 0.84rem;
  }

  .foto-sidebar .foto-breadcrumb__zip {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .foto-sidebar .foto-siblings {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 2px;
  }

  .foto-sidebar .foto-siblings__label {
    margin-right: 0;
    font-size: 0.76rem;
  }

  .foto-sidebar .foto-siblings__pill {
    width: 100%;
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .foto-sidebar .foto-filterrow {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 0;
    padding: 10px;
  }

  .foto-sidebar .foto-view-toggle {
    align-self: flex-end;
  }

  .foto-sidebar .foto-folders {
    margin-bottom: 0;
  }

  .foto-sidebar .foto-folders__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .foto-sidebar .foto-folder {
    height: auto;
    min-height: 96px;
    flex-direction: row;
  }

  .foto-sidebar .foto-folder__preview {
    width: 92px;
    flex: 0 0 92px;
    grid-template-columns: 1fr;
  }

  .foto-sidebar .foto-folder__preview-item {
    aspect-ratio: auto;
    height: 100%;
  }

  .foto-sidebar .foto-folder__preview--single,
  .foto-sidebar .foto-folder__preview--empty {
    height: auto;
  }

  .foto-sidebar .foto-folder__info {
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 10px 12px;
    justify-content: center;
  }

  .foto-sidebar .foto-folder__name {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .foto-sidebar .foto-folder__count {
    font-size: 0.72rem;
  }
}

/* ── Foto Selection Toolbar ─────────────────────────────── */
.foto-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--orange-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.foto-toolbar__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.foto-toolbar__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}
.foto-toolbar__count {
  font-size: 0.85rem;
  color: var(--grey);
}

/* ── Foto Card (updated with selection + hover) ───────────── */
.foto-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.foto-card:hover { 
  border-color: var(--orange); 
  box-shadow: 0 12px 24px rgba(255, 165, 0, 0.15);
  transform: translateY(-4px);
}
.foto-card--selected { border-color: var(--orange); background: var(--orange-light); }

/* Card checkbox (top-left) */
.foto-card__check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.foto-card:hover .foto-card__check,
.foto-card--selected .foto-card__check { opacity: 1; }
.foto-card__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
  margin: 0;
}

/* Hover action overlay (top-right) */
.foto-card__overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: all 0.3s ease;
}
.foto-card:hover .foto-card__overlay { opacity: 1; }

.foto-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0;
  cursor: pointer;
  transition: background var(--speed), border-color var(--speed);
  text-decoration: none;
}
.foto-card__action:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.foto-card__action svg { width: 16px; height: 16px; }

/* Card body (clickable area for modal) */
.foto-card__body { cursor: pointer; }

.foto-card__preview {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--grey-light);
}
.foto-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-card__info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.foto-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foto-card__meta {
  font-size: 0.8rem;
  color: var(--grey);
}

.foto-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--grey);
  font-size: 0.88rem;
  line-height: 1.6;
}
.foto-empty code {
  background: var(--grey-light);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.82rem;
}

/* Foto modal */
.foto-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.foto-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.foto-modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 720px;
  width: 90%;
  max-height: 85vh;
  overflow: auto;
  padding: 20px;
}
.foto-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  background: var(--grey-light);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--grey);
  line-height: 1;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.foto-modal__close:hover { color: var(--text); }

/* Photo modal navigation arrows */
.foto-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.foto-modal__nav:hover { background: rgba(0,0,0,0.7); }
.foto-modal__nav--prev { left: 16px; }
.foto-modal__nav--next { right: 16px; }
.foto-modal__nav[style*="none"] { display: none; }
.foto-modal__counter {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  pointer-events: none;
}

.foto-modal__preview {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  max-height: 50vh;
  object-fit: contain;
  background: var(--grey-light);
}
.foto-modal__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}
.foto-modal__info strong { font-size: 1rem; color: var(--text); }
.foto-modal__info span { font-size: 0.9rem; color: var(--grey); }
.foto-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foto-modal__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.foto-modal__row--secondary {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Download dropdown */
.foto-modal__dropdown {
  position: relative;
  display: inline-flex;
  overflow: visible;
  z-index: 100;
}
.foto-modal__dropdown .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.foto-modal__dropdown-toggle {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid rgba(255,255,255,0.3);
  padding: 0 8px;
  min-width: 0;
  font-size: 0.7rem;
}
.foto-modal__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  min-width: 180px;
  z-index: 1000;
  overflow-y: auto;
  max-height: 280px;
}
.foto-modal__dropdown.open .foto-modal__dropdown-menu { display: block; }
.foto-modal__dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--speed);
}
.foto-modal__dropdown-item:hover { background: var(--grey-light); }

/* Ghost button style */
.btn--ghost {
  background: none;
  border: none;
  color: var(--grey);
  padding: 4px 10px;
  font-size: 0.82rem;
}
.btn--ghost:hover { color: var(--text); background: var(--grey-light); }
.btn--ghost.btn--danger-outline { color: #dc2626; border: none; }
.btn--ghost.btn--danger-outline:hover { background: #fef2f2; }

.foto-modal__sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}
.btn--danger-outline {
  color: #dc2626;
  border-color: #fca5a5;
}
.btn--danger-outline:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

@media (max-width: 600px) {
  .foto-header-shell {
    padding: 10px;
    border-radius: 10px;
  }
  .foto-breadcrumb {
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    padding: 2px 0;
  }
  .foto-breadcrumb__zip {
    margin-left: 0;
  }
  .foto-folders__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .foto-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .foto-hero__title { font-size: 2rem; }
  .foto-hero__subtitle { font-size: 0.95rem; }
  .foto-hero__stats { gap: 16px; }
  .foto-hero__stat-value { font-size: 1.8rem; }
  .foto-modal__content { width: 95%; padding: 14px; }
  .foto-modal__nav { width: 36px; height: 36px; font-size: 1.6rem; }
  .foto-modal__nav--prev { left: 6px; }
  .foto-modal__nav--next { right: 6px; }
  .foto-toolbar { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .foto-siblings { gap: 8px; }
  .foto-siblings { margin-bottom: 16px; }
  .foto-siblings__pill { padding: 8px 12px; font-size: 0.85rem; }
  .foto-siblings__label { font-size: 0.75rem; }
  .foto-breadcrumb__back { padding: 6px 12px; font-size: 0.8rem; }
  /* Always show checkbox and overlay on touch devices */
  .foto-card__check { opacity: 1; }
  .foto-card__overlay { opacity: 1; }
  .foto-list__actions { opacity: 1; }
  .foto-list__hmeta,
  .foto-list__meta:nth-child(4) { display: none; }
  .foto-list__hactions,
  .foto-list__actions { width: auto; }
  .foto-filterrow { flex-wrap: wrap; padding: 12px; }
  /* Smaller card text on mobile */
  .foto-card__info { padding: 8px 10px; gap: 2px; }
  .foto-card__name { font-size: 0.78rem; }
  .foto-card__meta { font-size: 0.72rem; }
  /* Folder name overflow */
  .foto-folder__name { font-size: 0.9rem; }
  .foto-folder__count { font-size: 0.7rem; }
  .foto-folder { height: 240px; }
  /* Load more button */
  .foto-load-more { width: calc(100% - 16px); }
}

@media (max-width: 400px) {
  .foto-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .foto-folders__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .foto-card__info { padding: 6px 8px; }
  .foto-card__overlay { gap: 4px; }
  .foto-card__action { width: 30px; height: 30px; }
  .foto-modal__row .btn { padding: 7px 10px; font-size: 0.78rem; }
  .foto-modal__dropdown-item { padding: 8px 10px; font-size: 0.8rem; }
}


/* ── Bestanden Preview Modal ──────────────────────────────── */

.lib-preview-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lib-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.lib-preview-modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 900px;
  width: 92%;
  max-height: 88vh;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.lib-preview-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  background: var(--grey-light);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--grey);
  line-height: 1;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.lib-preview-modal__close:hover { color: var(--text); }
.lib-preview-modal__viewer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 200px;
  background: var(--grey-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lib-preview-modal__img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}
.lib-preview-modal__iframe {
  width: 100%;
  min-height: 60vh;
  border: none;
  border-radius: var(--radius-sm);
}
.lib-preview-modal__nopreview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--grey);
  font-size: 0.95rem;
}
.lib-preview-modal__nopreview .lib-type-badge {
  font-size: 1rem;
  padding: 6px 16px;
}
.lib-preview-modal__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}
.lib-preview-modal__info strong { font-size: 1rem; color: var(--text); }
.lib-preview-modal__info span { font-size: 0.9rem; color: var(--grey); }
.lib-preview-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lib-preview-modal__hint {
  font-size: 0.82rem;
  color: var(--grey);
  font-style: italic;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .lib-preview-modal__content { width: 96%; padding: 14px; max-height: 92vh; }
  .lib-preview-modal__iframe { min-height: 45vh; }
}

/* ── Color Combo Preview ──────────────────────────────── */
.color-combo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.color-combo__card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.color-combo__header {
  padding: 16px 18px;
}
.color-combo__header h4 {
  margin-bottom: 2px;
  font-size: 0.92rem;
}
.color-combo__header p {
  font-size: 0.82rem;
  margin-bottom: 0;
}
.color-combo__label {
  padding: 8px 18px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey);
}

/* ══════════════════════════════════════════════════════════
   Header Search Button
   ══════════════════════════════════════════════════════════ */
.header__search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--grey); transition: all var(--speed);
  margin-left: 8px; flex-shrink: 0;
}
.header__search-btn:hover {
  background: var(--grey-light); color: var(--dark);
  border-color: var(--grey);
}
.header__search-btn svg { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .sidebar-compact-toggle {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   Brand Subtabs (Huisstijl)
   ══════════════════════════════════════════════════════════ */
.brand-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.brand-tab {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--grey-light);
  color: var(--text-sec);
  border: none;
  cursor: pointer;
  transition: all var(--speed);
  white-space: nowrap;
}
.brand-tab:hover {
  background: #ffe0b2;
  color: var(--dark);
}
.brand-tab--active {
  background: var(--orange);
  color: #fff;
}
.brand-tab--active:hover {
  background: #e69500;
  color: #fff;
}
.brand-tab-content {
  display: none;
}
.brand-tab-content--active {
  display: block;
  animation: tabFadeIn .25s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   Global Search (⌘K)
   ══════════════════════════════════════════════════════════ */
.gsearch {
  display: none;
  position: fixed; inset: 0;
  z-index: 2000;
  align-items: flex-start; justify-content: center;
  padding-top: 18vh;
}
.gsearch--open { display: flex; }

.gsearch__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
}
.gsearch__dialog {
  position: relative; z-index: 1;
  width: 90%; max-width: 580px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  animation: gsearchIn .2s ease;
}
@keyframes gsearchIn {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.gsearch__input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.gsearch__input-wrap svg { flex-shrink: 0; color: var(--grey); width: 20px; height: 20px; }
.gsearch__input {
  flex: 1; border: none; outline: none;
  font-size: 1.05rem; font-family: var(--font);
  background: transparent; color: var(--dark);
}
.gsearch__input::placeholder { color: var(--grey); }
.gsearch__kbd {
  font-size: 0.7rem; font-family: var(--font);
  background: var(--grey-light); color: var(--grey);
  padding: 3px 8px; border-radius: 4px;
  font-weight: 600; white-space: nowrap;
}
.gsearch__results {
  max-height: 360px; overflow-y: auto;
  padding: 8px 0;
}
.gsearch__group-label {
  padding: 10px 20px 4px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--grey);
}
.gsearch__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background var(--speed);
}
.gsearch__item:hover { background: var(--warm-bg); }
.gsearch__item-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--grey-light);
  font-size: 1rem; flex-shrink: 0;
}
.gsearch__item-thumb {
  width: 40px; height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grey-light);
}
.gsearch__item-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.gsearch__item-text { flex: 1; min-width: 0; }
.gsearch__item-title {
  font-weight: 600; font-size: 0.88rem;
  color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gsearch__item-sub {
  font-size: 0.76rem; color: var(--grey);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gsearch__empty {
  padding: 32px 20px; text-align: center;
  color: var(--grey); font-size: 0.9rem;
}
.gsearch__count {
  padding: 6px 20px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--grey); border-bottom: 1px solid var(--border);
}
.gsearch__loading {
  padding: 12px 20px;
  font-size: 0.82rem; color: var(--grey);
  text-align: center;
  animation: gsearchPulse 1.5s infinite ease-in-out;
}
@keyframes gsearchPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}
.gsearch__more {
  padding: 6px 20px 10px;
  font-size: 0.76rem; color: var(--grey);
  font-style: italic;
}
.gsearch__hints {
  padding: 12px 20px 16px;
}
.gsearch__hints-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--grey); margin-bottom: 8px;
}
.gsearch__hints-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.gsearch__hint {
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--grey-light);
  color: var(--text-sec);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; border: none; font-family: var(--font);
  transition: all var(--speed);
}
.gsearch__hint:hover {
  background: var(--orange); color: #fff;
}

/* ══════════════════════════════════════════════════════════
   AI Assistent Pagina
   ══════════════════════════════════════════════════════════ */
.ai-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h) - 60px);
  min-height: 500px;
}
.ai-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-page__header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ai-page__icon {
  font-size: 2rem;
  line-height: 1;
}
.ai-page__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.ai-page__subtitle {
  font-size: 0.88rem;
  color: var(--grey);
  margin: 2px 0 0;
}
.ai-page__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--grey);
  font-weight: 600;
}
.ai-page__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* Chat area */
.ai-page__chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 8px;
}
.ai-page__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-page__messages .chat-msg {
  max-width: 75%;
  font-size: 0.92rem;
}

/* Suggestions */
.ai-page__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  flex-shrink: 0;
}
.ai-page__suggestion {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-sec);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--speed);
}
.ai-page__suggestion:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* Input bar */
.ai-page__input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-page__input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--speed);
}
.ai-page__input:focus { border-color: var(--orange); }
.ai-page__input::placeholder { color: var(--grey); }
.ai-page__send {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--speed);
  flex-shrink: 0;
}
.ai-page__send:hover { background: #e69500; }
.ai-page__send svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .ai-page { height: calc(100vh - var(--header-h) - 40px); }
  .ai-page__header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ai-page__messages .chat-msg { max-width: 90%; }
  .ai-page__input { padding: 10px 16px; font-size: 0.86rem; }
}


/* ══════════════════════════════════════════════════════════
   AI Chat Widget
   ══════════════════════════════════════════════════════════ */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 1100;
  font-family: var(--font);
}

/* FAB toggle button */
.chat-toggle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(255,165,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(255,165,0,.45);
}
.chat-toggle svg { width: 24px; height: 24px; }

/* Panel */
.chat-panel {
  display: none;
  position: absolute; bottom: 68px; right: 0;
  width: 370px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  overflow: hidden;
  flex-direction: column;
  animation: chatSlideUp .25s ease;
  transition: width .3s ease, max-height .3s ease;
}
.chat-widget--open .chat-panel { display: flex; }
.chat-widget--open .chat-toggle > svg:first-child { display: none; }
.chat-widget--open .chat-toggle > svg:last-child { display: block; }
.chat-toggle > svg:last-child { display: none; }

/* Expanded state — focused workspace */
.chat-widget--expanded .chat-panel {
  position: fixed;
  top: 24px; bottom: 24px; right: 24px;
  width: calc(100vw - 48px);
  max-width: 780px;
  max-height: none;
  height: auto;
  border-radius: 16px;
}
.chat-widget--expanded .chat-panel__messages {
  max-height: none;
  flex: 1;
}
@media (min-width: 900px) {
  .chat-widget--expanded .chat-panel {
    max-width: 860px;
  }
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-panel__header {
  background: var(--orange);
  color: #fff;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.chat-panel__header-actions {
  display: flex; align-items: center; gap: 4px;
}
.chat-panel__expand {
  background: none; border: none; color: #fff;
  cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  opacity: .7; transition: opacity var(--speed);
}
.chat-panel__expand:hover { opacity: 1; }
.chat-panel__header h4 { margin: 0; font-size: 0.95rem; color: #fff; }
.chat-panel__header small { font-size: 0.72rem; opacity: .8; }
.chat-panel__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 700; color: #fff;
}
.chat-panel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; flex-shrink: 0;
}
.chat-panel__close {
  background: none; border: none; color: #fff;
  cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  opacity: .8; transition: opacity var(--speed);
}
.chat-panel__close:hover { opacity: 1; }
.chat-panel__close svg { width: 18px; height: 18px; }
.chat-msg__bubble { /* content wrapper inside message */ }

.chat-panel__messages {
  flex: 1; overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 140px;
}

/* Chat messages */
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--orange);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg--bot {
  align-self: flex-start;
  background: var(--grey-light);
  color: var(--dark);
  border-bottom-left-radius: 4px;
  position: relative;
}
.chat-msg__copy {
  position: absolute; top: 6px; right: -30px;
  background: none; border: none;
  color: var(--grey);
  cursor: pointer; padding: 2px;
  opacity: 0; transition: opacity .2s;
  display: flex; align-items: center; justify-content: center;
}
.chat-msg--bot:hover .chat-msg__copy { opacity: .6; }
.chat-msg__copy:hover { opacity: 1 !important; color: var(--orange); }
.chat-msg__copy svg { width: 14px; height: 14px; }
.chat-msg__copy--done { color: #22c55e !important; opacity: 1 !important; }
.chat-msg--bot p { margin: 0 0 6px; }
.chat-msg--bot p:last-child { margin-bottom: 0; }
.chat-msg--bot strong { color: var(--orange); }
.chat-msg--bot ul, .chat-msg--bot ol {
  margin: 4px 0; padding-left: 18px;
}
.chat-msg--bot li { margin-bottom: 2px; }
.chat-msg--bot code {
  background: rgba(0,0,0,.06);
  padding: 1px 5px; border-radius: 3px;
  font-size: 0.82rem;
}

/* Typing indicator */
.chat-typing {
  display: flex; gap: 4px;
  align-self: flex-start;
  padding: 12px 16px;
  background: var(--grey-light);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grey);
  animation: chatDot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot {
  0%, 80%, 100% { opacity: .3; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Quick action buttons */
.chat-panel__quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-quick-btn {
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-sec);
  font-size: 0.78rem; font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--speed);
}
.chat-quick-btn:hover {
  background: var(--orange); color: #fff;
  border-color: var(--orange);
}

/* Input area */
.chat-panel__input-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input {
  flex: 1; border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.86rem; font-family: var(--font);
  outline: none;
  transition: border-color var(--speed);
}
.chat-input:focus { border-color: var(--orange); }
.chat-input::placeholder { color: var(--grey); }
.chat-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--speed);
  flex-shrink: 0;
}
.chat-send:hover { background: #e69500; }
.chat-send svg { width: 16px; height: 16px; }

/* ── Load More Button ───────────────────────────────────── */
.foto-load-more {
  display: block;
  margin: 24px auto;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--orange-light);
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--speed), color var(--speed);
}
.foto-load-more:hover {
  background: var(--orange);
  color: #fff;
}

/* ── Breadcrumb ZIP Button ──────────────────────────────── */


/* ── Modal Tags ─────────────────────────────────────────── */
.foto-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.foto-modal__tags span {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
}
.foto-modal__add-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px dashed var(--grey-light);
  color: var(--grey);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color var(--speed), color var(--speed);
}
.foto-modal__add-tag:hover { border-color: var(--orange); color: var(--orange); }

/* ── Responsive: Chat & Global Search ───────────────────── */
@media (max-width: 520px) {
  .chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
    max-height: 70vh;
  }
  .gsearch__dialog {
    width: 95%; border-radius: 12px;
  }
  .gsearch { padding-top: 10vh; }
}

@media (max-width: 768px) {
  .header__search-btn { margin-left: 4px; }
  .brand-tabs { gap: 4px; }
  .brand-tab { padding: 6px 12px; font-size: 0.82rem; }

  /* ── Mobile foto improvements ──────────────────────────── */
  .foto-modal__content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
  }
  .foto-modal__preview {
    max-height: 45vh;
    flex-shrink: 0;
  }
  .foto-modal__nav {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
  .foto-modal__nav--prev { left: 4px; }
  .foto-modal__nav--next { right: 4px; }
  .foto-modal__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
  .foto-modal__row { gap: 6px; }
  .foto-modal__row .btn { padding: 8px 14px; font-size: 0.82rem; }

  /* Toolbar wrapping */
  .foto-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .foto-toolbar .btn { padding: 7px 12px; font-size: 0.82rem; }

  /* Larger touch targets for actions */
  .foto-card__action {
    width: 38px;
    height: 38px;
  }
  .foto-folder__btn {
    width: 32px;
    height: 32px;
  }

  /* Breadcrumb */
  .foto-breadcrumb {
    font-size: 0.85rem;
    gap: 4px;
  }
  .foto-breadcrumb__zip {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  /* Filter row */
  .foto-filterrow {
    flex-wrap: wrap;
    gap: 8px;
  }
  .foto-filterrow .search-bar {
    min-width: 0;
    flex-basis: 100%;
  }
}
