/* ============================================================
   TISSIE · platform.css  (klant- & beheeromgeving, Laravel)
   Zelfde warme crème + teal als de marketingsite, als app-shell:
   speels én zakelijk. Kleuren staan als variabelen bovenin.
   Veld-foutmelding bij formulieren:
   .field__err { color:#c0473f; font-size:.8rem; font-weight:600; }
   ============================================================
   (origineel: dashboard.css)
   ============================================================ */

:root {
  /* surfaces */
  --cream: #F7EEE6;
  --cream-2: #F1E3D6;
  --white: #FFFFFF;
  --surface: #FFFFFF;

  /* brand */
  --teal: #2CC3C3;
  --teal-bright: #45E0E0;
  --teal-deep: #0C4A4A;
  --teal-wash: rgba(44, 195, 195, 0.14);

  /* ink */
  --ink: #211A16;
  --ink-soft: #6E5F54;
  --line: rgba(33, 26, 22, 0.09);
  --line-2: rgba(33, 26, 22, 0.14);

  /* status */
  --green: #1f9d57;
  --green-wash: rgba(31, 157, 87, .12);
  --amber: #d98b1f;
  --amber-wash: rgba(217, 139, 31, .14);
  --red: #c0473f;
  --red-wash: rgba(192, 71, 63, .12);

  /* shadows */
  --shadow-soft: 0 10px 28px -16px rgba(70, 40, 18, 0.30);
  --shadow-card: 0 20px 44px -24px rgba(70, 40, 18, 0.34);
  --shadow-pop: 0 34px 64px -28px rgba(70, 40, 18, 0.46);

  --bg: var(--cream);
  --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-w: 260px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Mascottes hebben width/height-attributen (900x675); forceer hoogte op auto
   zodat ze nooit uitrekken als de CSS alleen een width zet. */
.mascot-pic, .mascot-pic img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, select { font-family: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 1.1em; height: 1.1em; vertical-align: middle; }
/* expliciet gesizede iconen (via parent-regels in px) overschrijven dit; dit is
   alleen een vangnet zodat losse iconen (bv. in .linkbtn) niet enorm worden. */
.linkbtn svg { width: 15px; height: 15px; }
::selection { background: var(--teal); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.1; }

/* ============================================================
   BUTTONS  (zelfde taal als de marketingsite)
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 600; font-size: .95rem; padding: .8rem 1.4rem;
  border-radius: 12px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--ink); color: var(--white); box-shadow: var(--shadow-card); }
.btn--solid:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn--teal { background: var(--teal); color: var(--ink); box-shadow: var(--shadow-card); }
.btn--teal:hover { background: var(--teal-bright); transform: translateY(-1px); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }

/* ============================================================
   APP SHELL
   ============================================================ */
.shell { display: flex; min-height: 100vh; }
.shell__main {
  flex: 1; min-width: 0; margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 60;
  display: flex; flex-direction: column; gap: 1.2rem;
  padding: 1.4rem 1rem;
  background: var(--white);
  border-right: 1px solid var(--line);
  transition: transform .45s var(--ease);
}
.sidebar__logo { display: flex; align-items: center; gap: .55rem; padding: .4rem .6rem 1rem; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.sidebar__logo-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 16px rgba(44,195,195,.7); flex-shrink: 0; }
.sidebar__logo-tag { margin-left: auto; font-family: var(--font-body); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-deep); background: var(--teal-wash); padding: .25rem .5rem; border-radius: 8px; }

.sidebar__nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar__link {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .8rem; border-radius: var(--r-sm);
  font-weight: 500; color: var(--ink-soft);
  transition: background .2s, color .2s, transform .2s;
}
.sidebar__link:hover { background: var(--cream); color: var(--ink); }
.sidebar__icon { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; }
.sidebar__icon svg { width: 20px; height: 20px; stroke-width: 1.9; }
.sidebar__link.is-active { background: var(--ink); color: var(--white); box-shadow: var(--shadow-soft); }
.sidebar__link.is-active .sidebar__icon { color: var(--teal-bright); }

.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: .8rem; }
.sidebar__promo {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--teal) 0%, #1AA6A6 100%);
  border-radius: var(--r); padding: 1rem 1rem 1.1rem;
  color: var(--ink); box-shadow: var(--shadow-card);
}
.sidebar__promo b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: .15rem; padding-right: 56px; }
.sidebar__promo span { display: block; font-size: .82rem; color: rgba(6,35,34,.8); padding-right: 56px; line-height: 1.35; }
.sidebar__promo-mascot { position: absolute; right: -12px; bottom: -10px; width: 88px; filter: drop-shadow(0 10px 14px rgba(7,32,31,.32)) drop-shadow(0 0 22px rgba(255,255,255,.3)); }
.sidebar__promo-btn { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; font-weight: 700; font-size: .82rem; color: var(--ink); }
.sidebar__promo-btn svg { width: 15px; height: 15px; transition: transform .25s; }
.sidebar__promo-btn:hover svg { transform: translateX(3px); }

.sidebar__logout { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: var(--r-sm); font-weight: 500; color: var(--ink-soft); transition: background .2s, color .2s; }
.sidebar__logout svg { width: 19px; height: 19px; }
.sidebar__logout:hover { background: var(--red-wash); color: var(--red); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1rem clamp(1rem, 3vw, 2.2rem);
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.topbar__title { min-width: 0; }
.topbar__title h1 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); font-weight: 700; }
.topbar__title p { font-size: .85rem; color: var(--ink-soft); margin-top: .1rem; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: .8rem; }

.topbar__search { display: flex; align-items: center; gap: .55rem; background: var(--white); border-radius: 12px; padding: .55rem .9rem; box-shadow: var(--shadow-soft); min-width: 240px; }
.topbar__search svg { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.topbar__search input { border: none; outline: none; background: none; font-size: .9rem; width: 100%; color: var(--ink); }
.topbar__search input::placeholder { color: #b6a596; }

.topbar__switch { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--teal-deep); background: var(--teal-wash); padding: .55rem .9rem; border-radius: 12px; transition: background .2s, color .2s; }
.topbar__switch svg { width: 16px; height: 16px; }
.topbar__switch:hover { background: var(--teal); color: var(--ink); }

.topbar__bell { position: relative; width: 42px; height: 42px; display: grid; place-items: center; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-soft); color: var(--ink); transition: transform .2s; }
.topbar__bell:hover { transform: translateY(-1px); }
.topbar__bell svg { width: 19px; height: 19px; }
.topbar__dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); border: 2px solid var(--white); }

.topbar__user { display: flex; align-items: center; gap: .65rem; padding: .35rem .5rem .35rem .35rem; border-radius: 12px; transition: background .2s; }
.topbar__user:hover { background: var(--white); box-shadow: var(--shadow-soft); }
.topbar__avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.topbar__user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.topbar__user-meta b { font-size: .88rem; }
.topbar__user-meta i { font-style: normal; font-size: .78rem; color: var(--ink-soft); }

.topbar__burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-soft); }
.topbar__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.topbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__burger.is-open span:nth-child(2) { opacity: 0; }
.topbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   PAGE  +  reveal-animatie
   ============================================================ */
.page { padding: clamp(1.2rem, 3vw, 2.2rem); max-width: 1480px; width: 100%; }
.section-gap > * + * { margin-top: clamp(1.2rem, 2.2vw, 1.6rem); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* ============================================================
   GRID HELPERS
   ============================================================ */
.grid { display: grid; gap: clamp(1rem, 1.6vw, 1.4rem); }
.grid--stats { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: 1.6fr 1fr; align-items: start; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   CARD
   ============================================================ */
.card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-card); padding: clamp(1.2rem, 1.8vw, 1.6rem); }
.card--pad-0 { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.card__head h2, .card__head h3 { font-size: 1.15rem; font-weight: 700; }
.card__head .card__action { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--teal-deep); display: inline-flex; align-items: center; gap: .3rem; }
.card__action svg { width: 15px; height: 15px; transition: transform .25s; }
.card__action:hover svg { transform: translateX(3px); }
.card__sub { font-size: .85rem; color: var(--ink-soft); }

/* ---------- STAT CARD ---------- */
.stat {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-card);
  padding: 1.3rem 1.3rem 1.2rem;
  display: flex; flex-direction: column; gap: .2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.stat__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.stat__icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-wash); color: var(--teal-deep); transform: rotate(-4deg); transition: transform .4s var(--ease); }
.stat:hover .stat__icon { transform: rotate(0); }
.stat__icon svg { width: 21px; height: 21px; }
.stat__label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; color: var(--ink); }
.stat__sub { font-size: .84rem; color: var(--ink-soft); }
.stat__trend { margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--teal-deep); background: var(--teal-wash); padding: .25rem .6rem; border-radius: 8px; align-self: flex-start; }
.stat__trend.is-warn { color: var(--amber); background: var(--amber-wash); }
.stat__trend.is-good { color: var(--green); background: var(--green-wash); }

/* ============================================================
   BADGES / STATUS PILLS
   ============================================================ */
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; padding: .3rem .65rem; border-radius: 8px; text-transform: capitalize; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok    { color: var(--green); background: var(--green-wash); }
.pill--warn  { color: var(--amber); background: var(--amber-wash); }
.pill--bad   { color: var(--red);   background: var(--red-wash); }
.pill--info  { color: var(--teal-deep); background: var(--teal-wash); }
.pill--muted { color: var(--ink-soft); background: rgba(33,26,22,.06); }
.pill--solid { background: var(--ink); color: var(--cream); }
.pill--solid::before { display: none; }

/* ============================================================
   PROGRESS / METER BARS
   ============================================================ */
.meter { display: flex; flex-direction: column; gap: .3rem; }
.meter__top { display: flex; justify-content: space-between; font-size: .8rem; }
.meter__top b { font-weight: 600; }
.meter__top span { color: var(--ink-soft); }
.bar { height: 8px; border-radius: 8px; background: var(--cream-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); transition: width 1s var(--ease); }
.bar.is-warn > span { background: linear-gradient(90deg, var(--amber), #e8a93f); }
.bar.is-bad  > span { background: linear-gradient(90deg, var(--red), #d8615a); }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 700; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--cream); }
.table tbody tr:last-child td { border-bottom: none; }
.table__name { font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.table__dim { color: var(--ink-soft); }
.table__num { font-variant-numeric: tabular-nums; }
.table__bar { min-width: 120px; }
.dot-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-wash); color: var(--teal-deep); flex-shrink: 0; }
.dot-mark svg { width: 16px; height: 16px; }
.table__actions { text-align: right; }
.linkbtn { font-weight: 600; color: var(--teal-deep); font-size: .85rem; }
.linkbtn:hover { color: var(--ink); }

/* ============================================================
   CHARTS
   ============================================================ */
.chart { display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 12px); height: 180px; padding-top: 1rem; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; height: 100%; justify-content: flex-end; }
.chart__bar { width: 100%; max-width: 30px; border-radius: 7px 7px 4px 4px; background: linear-gradient(180deg, var(--teal-bright), var(--teal)); min-height: 6px; transition: height .9s var(--ease), background .2s; height: 0; }
.chart__col:hover .chart__bar { background: linear-gradient(180deg, var(--teal), var(--teal-deep)); }
.chart__col:last-child .chart__bar { background: linear-gradient(180deg, #2f2a25, var(--ink)); }
.chart__label { font-size: .72rem; color: var(--ink-soft); font-weight: 600; }

/* sparkline-achtige area chart (klant verkeer) */
.spark { width: 100%; height: 150px; display: block; }
.spark__area { fill: url(#sparkGrad); }
.spark__line { fill: none; stroke: var(--teal); stroke-width: 2.5; }

/* ============================================================
   WELCOME / HERO BANNER (klant + admin overzicht)
   ============================================================ */
.welcome {
  position: relative; overflow: visible;
  background: linear-gradient(150deg, var(--teal) 0%, #1AA6A6 100%);
  border-radius: var(--r); box-shadow: var(--shadow-pop);
  padding: clamp(1.2rem, 2.2vw, 1.9rem);
  padding-right: clamp(150px, 31%, 350px);
  color: var(--ink); min-height: 190px;
  display: flex; flex-direction: column; justify-content: center; gap: .6rem;
}
.welcome__eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.55); width: fit-content; padding: .35rem .8rem; border-radius: 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-deep); }
.welcome__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-deep); }
.welcome h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--ink); max-width: 22ch; }
.welcome h2 i { font-style: italic; }
.welcome p { color: rgba(6,35,34,.82); max-width: 46ch; font-size: .95rem; }
.welcome__cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .5rem; }
.welcome__cta .btn--teal { background: var(--ink); color: var(--white); }
.welcome__cta .btn--teal:hover { background: var(--teal-deep); }
.welcome__cta .btn--ghost { background: rgba(255,255,255,.8); }
.welcome__mascot {
  position: absolute; z-index: 2;
  right: -8px; bottom: -10px;
  width: clamp(190px, 27vw, 360px);
  filter: drop-shadow(0 26px 30px rgba(7,32,31,.38)) drop-shadow(0 0 38px rgba(255,255,255,.28));
  pointer-events: none;
  animation: floaty 5.5s var(--ease) infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .welcome__mascot { animation: none; } }
.welcome__blob { position: absolute; border-radius: 50%; filter: blur(50px); background: rgba(255,255,255,.25); width: 220px; height: 220px; top: -90px; right: 30%; pointer-events: none; }

/* ============================================================
   LIST / ACTIVITY FEED
   ============================================================ */
.feed { display: flex; flex-direction: column; }
.feed__item { display: flex; align-items: flex-start; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.feed__item:last-child { border-bottom: none; padding-bottom: 0; }
.feed__icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-wash); color: var(--teal-deep); flex-shrink: 0; }
.feed__icon svg { width: 17px; height: 17px; }
.feed__body { min-width: 0; }
.feed__body p { font-size: .9rem; }
.feed__body b { font-weight: 600; }
.feed__time { font-size: .76rem; color: var(--ink-soft); margin-top: .1rem; }

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.quick__btn {
  display: flex; align-items: center; gap: .7rem; text-align: left;
  background: var(--cream); border-radius: var(--r-sm); padding: .9rem 1rem;
  font-weight: 600; font-size: .9rem; transition: background .2s, transform .2s; width: 100%;
}
.quick__btn:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.quick__btn:hover .quick__ic { background: var(--teal); color: var(--ink); }
.quick__ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--white); color: var(--teal-deep); flex-shrink: 0; transition: background .2s, color .2s; box-shadow: var(--shadow-soft); }
.quick__ic svg { width: 18px; height: 18px; }

/* ============================================================
   CARD LIST (hosting/domeinen op kaartjes voor klant)
   ============================================================ */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1rem, 1.6vw, 1.4rem); }
.tile {
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-card);
  padding: 1.3rem; display: flex; flex-direction: column; gap: .9rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.tile__head { display: flex; align-items: center; gap: .7rem; }
.tile__head .dot-mark { width: 40px; height: 40px; border-radius: 11px; }
.tile__head .dot-mark svg { width: 20px; height: 20px; }
.tile__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.tile__meta { font-size: .8rem; color: var(--ink-soft); }
.tile__pill { margin-left: auto; }
.tile__meters { display: flex; flex-direction: column; gap: .7rem; }
.tile__foot { margin-top: auto; padding-top: .3rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.tile__tags { display: flex; gap: .4rem; flex-wrap: wrap; }

/* small label-value blocks */
.kv { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.kv > div { display: flex; flex-direction: column; }
.kv span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; }
.kv b { font-family: var(--font-display); font-size: 1.4rem; }

/* empty / info note */
.note { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-soft); background: var(--cream); border-radius: var(--r-sm); padding: .8rem 1rem; }
.note svg { width: 18px; height: 18px; color: var(--teal-deep); flex-shrink: 0; }

/* settings form */
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select {
  background: var(--cream); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: .8rem 1rem; font-size: .95rem; color: var(--ink); outline: none; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus { border-color: var(--teal); background: var(--white); }
.field__err { color: var(--red); font-size: .8rem; font-weight: 600; }
.field__hint { font-weight: 400; font-size: .82em; color: var(--ink-soft); }
.acct-opt { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s; }
.acct-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); }
.acct-opt input { accent-color: var(--teal); }
.flash { background: var(--green-wash); color: var(--green); border-radius: var(--r-sm); padding: .85rem 1.1rem; font-weight: 600; font-size: .9rem; margin-bottom: clamp(1.2rem, 2.2vw, 1.6rem); }

/* ============================================================
   SALES - actiebalk (topbar) + popup
   ============================================================ */
.sale-bar {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  color: var(--ink); font-weight: 600; font-size: .92rem;
  padding: .7rem 1rem; text-align: center;
}
.sale-bar__tag { background: var(--ink); color: var(--cream); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .22rem .6rem; border-radius: 8px; }
.sale-bar.is-hidden { display: none; }

.sale-popup { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 1.5rem; background: rgba(33,26,22,.45); backdrop-filter: blur(3px); }
.sale-popup.is-open { display: grid; }
.sale-popup__card {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-pop);
  padding: clamp(1.6rem, 3vw, 2.4rem); padding-right: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: .7rem;
  animation: rise .4s var(--ease) both;
}
.sale-popup__card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.sale-popup__card p { color: var(--ink-soft); }
.sale-popup__card .btn { align-self: flex-start; margin-top: .4rem; }
.sale-popup__close { position: absolute; top: .8rem; right: 1rem; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); background: none; border: none; cursor: pointer; }
.sale-popup__mascot { position: absolute; right: -18px; bottom: -14px; width: 110px; opacity: .9; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sale-popup__card { animation: none; } }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row b { font-weight: 600; display: block; }
.toggle-row span { font-size: .82rem; color: var(--ink-soft); }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slot { position: absolute; inset: 0; background: var(--cream-2); border-radius: 20px; transition: background .25s; }
.switch__slot::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-soft); transition: transform .25s var(--ease); }
.switch input:checked + .switch__slot { background: var(--teal); }
.switch input:checked + .switch__slot::before { transform: translateX(20px); }

/* ============================================================
   LOGIN
   ============================================================ */
.login-body { background: var(--cream); min-height: 100vh; }
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login__aside {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--teal) 0%, #1AA6A6 60%, #0f8f8f 100%);
  color: var(--ink); padding: clamp(1.6rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.login__blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.login__blob--1 { width: 360px; height: 360px; background: rgba(255,255,255,.28); top: -120px; right: -80px; }
.login__blob--2 { width: 300px; height: 300px; background: rgba(12,74,74,.3); bottom: -120px; left: -60px; }
.login__brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--white); width: fit-content; }
.login__brand-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: 0 0 16px rgba(255,255,255,.8); }
.login__aside-body { position: relative; z-index: 2; margin-top: auto; }
.login__eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.6); padding: .4rem .85rem; border-radius: 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-deep); margin-bottom: 1rem; }
.login__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-deep); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(12,74,74,.5);} 70% { box-shadow: 0 0 0 8px rgba(12,74,74,0);} 100% { box-shadow: 0 0 0 0 rgba(12,74,74,0);} }
.login__headline { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--white); line-height: .98; }
.login__headline i { font-style: italic; color: var(--ink); }
.login__sub { color: rgba(6,35,34,.85); max-width: 40ch; margin-top: 1rem; }
.login__mascot { position: absolute; right: clamp(-30px, -1vw, 0px); bottom: -10px; width: clamp(220px, 30vw, 360px); z-index: 1; filter: drop-shadow(0 22px 26px rgba(7,32,31,.32)); pointer-events: none; }
.login__points { position: relative; z-index: 2; display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: .5rem; }
.login__points li { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.login__points svg { width: 16px; height: 16px; stroke-width: 3; color: var(--teal-deep); }

.login__main { display: grid; place-items: center; padding: clamp(1.4rem, 4vw, 2.5rem); }
.login__card { width: 100%; max-width: 400px; }
.login__title { font-size: 2.2rem; font-weight: 700; }
.login__lead { color: var(--ink-soft); margin: .3rem 0 1.8rem; }
.login__form { display: flex; flex-direction: column; gap: 1rem; }
.login__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.checkrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-soft); cursor: pointer; }
.checkrow input { accent-color: var(--teal); width: 16px; height: 16px; }
.login__forgot { color: var(--teal-deep); font-weight: 600; }
.login__roles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.login__role { width: 100%; }
.login__role svg { width: 18px; height: 18px; }
.login__demo { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }
.login__demo-tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-deep); background: var(--teal-wash); padding: .2rem .55rem; border-radius: 8px; }
.login__back { margin-top: 1.6rem; font-size: .88rem; }
.login__back a { color: var(--ink-soft); font-weight: 600; }
.login__back a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .grid--stats { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); width: 280px; box-shadow: var(--shadow-pop); }
  .sidebar.is-open { transform: translateX(0); }
  .shell__main { margin-left: 0; }
  .topbar__burger { display: flex; }
  .topbar__search { display: none; }
  .topbar__switch span { display: none; }
  .topbar__user-meta { display: none; }
  .shell__scrim { position: fixed; inset: 0; background: rgba(33,26,22,.4); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 55; }
  .shell__scrim.is-open { opacity: 1; pointer-events: auto; }
  .login { grid-template-columns: 1fr; }
  .login__aside { display: none; }
}

@media (max-width: 560px) {
  .grid--stats { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
  .welcome { padding-right: clamp(1.4rem, 2.6vw, 2.2rem); }
  .welcome__mascot { opacity: .25; right: -30px; }
}
