/* ══════════════════════════════════════════════════
   Naanoos Loyaliteitsprogramma — Frontend CSS v1.4
   ══════════════════════════════════════════════════ */

:root {
  --nl-pink:   #F2D7DA;
  --nl-blush:  #F5C4C9;
  --nl-sand:   #EDE0D4;
  --nl-linen:  #F5EEE6;
  --nl-mauve:  #C9A8A8;
  --nl-terra:  #8D6B6B;
  --nl-dark:   #4A3535;
  --nl-text:   #5C3A3A;
  --nl-muted:  #7A5050;
  --nl-r:      12px;
  --nl-rs:     8px;
  --nl-font:   -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nl-wrap { font-family: var(--nl-font); color: var(--nl-text); max-width: 780px; margin: 0 auto 40px; }

/* ── Notificaties ──────────────────────────────────────────── */
.nl-notifications {
  background: var(--nl-pink); border: 1px solid var(--nl-blush);
  border-radius: var(--nl-r); padding: 14px 18px; margin-bottom: 20px;
  animation: nl-slide-in .4s ease;
}
@keyframes nl-slide-in { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.nl-notif-item { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--nl-dark); padding:5px 0; border-bottom:.5px solid var(--nl-blush); }
.nl-notif-item:last-of-type { border:none; }
.nl-notif-dismiss { background:none; border:.5px solid var(--nl-mauve); color:var(--nl-muted); font-size:12px; padding:4px 14px; border-radius:20px; cursor:pointer; margin-top:10px; display:block; }
.nl-notif-dismiss:hover { background:var(--nl-mauve); color:#fff; }

/* ── Header ────────────────────────────────────────────────── */
.nl-header { border-radius:var(--nl-r); padding:22px 24px 20px; margin-bottom:16px; border:.5px solid rgba(74,53,53,.1); }
.nl-header-top { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:16px; }
.nl-greeting { font-size:21px; font-weight:500; color:var(--nl-dark); }
.nl-subline   { font-size:13px; color:var(--nl-muted); margin-top:2px; }
.nl-badge { display:flex; align-items:center; gap:6px; color:#fff; font-size:13px; font-weight:500; padding:6px 14px; border-radius:20px; }
.nl-badge-icon { width:18px; height:18px; display:flex; align-items:center; }
.nl-badge-icon svg { width:100%; height:100%; }
.nl-points-big { text-align:center; padding:8px 0 14px; }
.nl-points-number { font-size:56px; font-weight:600; color:var(--nl-dark); line-height:1; display:block; }
.nl-points-label  { font-size:13px; color:var(--nl-muted); letter-spacing:.08em; text-transform:uppercase; display:block; margin-top:4px; }
.nl-progress-labels { display:flex; justify-content:space-between; font-size:12px; color:var(--nl-muted); margin-bottom:6px; font-weight:500; }
.nl-progress-bar  { height:10px; background:rgba(255,255,255,.5); border-radius:10px; overflow:hidden; }
.nl-progress-fill { height:100%; border-radius:10px; transition:width .8s ease; min-width:6px; }
.nl-progress-text { font-size:13px; color:var(--nl-muted); margin:8px 0 0; }
.nl-progress-text strong { color:var(--nl-terra); }

/* ── Secties ────────────────────────────────────────────────── */
.nl-section-title { font-size:16px; font-weight:500; color:var(--nl-dark); margin:0 0 14px; }
.nl-levels-section, .nl-earn-section, .nl-history-section { margin-bottom:20px; }

/* ── Level kaarten: slider op mobiel, grid op desktop ─────── */
.nl-levels-slider-wrap { position:relative; }

/* MOBIEL: horizontaal scrollen */
.nl-levels-slider {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.nl-levels-slider::-webkit-scrollbar { display: none; }
.nl-level-card {
  flex: 0 0 260px; scroll-snap-align: start;
  border-radius: var(--nl-r); overflow: hidden;
  padding: 20px; min-height: 260px;
  border: .5px solid rgba(74,53,53,.08);
  opacity: .55; transition: opacity .2s, box-shadow .2s;
}

/* DESKTOP: vaste 3-koloms grid, geen scroll */
@media (min-width: 640px) {
  .nl-levels-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .nl-level-card { flex: none; }
  .nl-slider-arrow { display: none !important; }
  .nl-slider-dots  { display: none !important; }
}

.nl-level-card.nl-level-reached { opacity: .8; }
.nl-level-card.nl-level-current { opacity: 1; box-shadow: 0 4px 20px rgba(74,53,53,.14); }
.nl-level-label-bar { color:#fff; font-size:12px; text-align:center; padding:5px 0; border-radius:6px; margin:-20px -20px 16px; letter-spacing:.04em; }
.nl-level-icon  { width:44px; height:44px; margin:0 auto 10px; }
.nl-level-icon svg { width:100%; height:100%; }
.nl-level-name  { font-size:22px; font-weight:600; text-align:center; margin-bottom:4px; }
.nl-level-range { font-size:13px; text-align:center; opacity:.7; margin-bottom:4px; }
.nl-perks-list  { list-style:none; padding:0; margin:0; }
.nl-perks-list li { display:flex; align-items:flex-start; gap:8px; font-size:13px; padding:6px 0; border-bottom:.5px solid rgba(74,53,53,.08); }
.nl-perks-list li:last-child { border:none; }
.nl-check { width:14px; height:14px; flex-shrink:0; margin-top:1px; }

/* slider pijlen (alleen mobiel) */
.nl-slider-arrow {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: .5px solid var(--nl-sand);
  border-radius: 50%; width: 32px; height: 32px;
  font-size: 18px; cursor: pointer; color: var(--nl-terra);
  align-items: center; justify-content: center; z-index: 2;
}
.nl-arrow-prev { left: -16px; }
.nl-arrow-next { right: -16px; }
@media (max-width: 639px) { .nl-slider-arrow { display: flex; } }

.nl-slider-dots { display:flex; justify-content:center; gap:6px; margin-top:10px; }
.nl-dot { width:7px; height:7px; border-radius:50%; background:var(--nl-sand); transition:background .2s; }
.nl-dot-active { background:var(--nl-terra); }

/* ── Acties grid ────────────────────────────────────────────── */
.nl-actions-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media (min-width:600px) { .nl-actions-grid { grid-template-columns:repeat(3,1fr); } }
@media (min-width:760px) { .nl-actions-grid { grid-template-columns:repeat(4,1fr); } }

.nl-action-card {
  background:#fff; border:.5px solid var(--nl-sand);
  border-radius:var(--nl-r); padding:16px 12px;
  text-align:center; transition:box-shadow .2s;
  display:flex; flex-direction:column; align-items:center; gap:4px;
}
.nl-action-card:hover { box-shadow:0 2px 12px rgba(74,53,53,.08); }
.nl-action-card.nl-action-done { background:var(--nl-linen); }

.nl-action-icon { width:34px; height:34px; color:var(--nl-terra); margin-bottom:4px; }
.nl-action-icon svg { width:100%; height:100%; }
.nl-action-pts   { font-size:15px; font-weight:600; color:var(--nl-dark); }
.nl-action-label { font-size:11px; color:var(--nl-muted); line-height:1.4; margin-bottom:6px; }
.nl-action-count { font-size:11px; color:var(--nl-terra); font-weight:500; background:var(--nl-pink); padding:2px 8px; border-radius:10px; margin-bottom:4px; }
.nl-action-auto  { font-size:11px; color:var(--nl-mauve); font-style:italic; }

.nl-action-badge-done {
  display:inline-flex; align-items:center; gap:4px;
  background:#EDF7ED; color:#4CAF50;
  font-size:11px; font-weight:500; padding:4px 12px; border-radius:20px;
}

.nl-action-btn {
  display:inline-flex; align-items:center; justify-content:center;
  font-size:12px; padding:7px 16px; border-radius:20px; cursor:pointer;
  text-decoration:none; background:var(--nl-terra); color:#fff;
  border:none; transition:background .2s; font-family:var(--nl-font);
  white-space:nowrap;
}
.nl-action-btn:hover { background:var(--nl-dark); color:#fff; text-decoration:none; }
.nl-follow-btn { background:var(--nl-terra); }

/* ── Puntenoverzicht ────────────────────────────────────────── */
.nl-history-list { display:flex; flex-direction:column; gap:16px; }

.nl-history-group {}

.nl-history-date-label {
  font-size:11px; font-weight:600; color:var(--nl-muted);
  letter-spacing:.06em; text-transform:uppercase;
  padding:0 0 8px; margin-bottom:4px;
  border-bottom:.5px solid var(--nl-sand);
}

.nl-history-row {
  display:flex; align-items:center; gap:12px;
  padding:10px 14px;
  background:#fff; border-radius:var(--nl-rs);
  border:.5px solid var(--nl-linen);
  margin-top:6px;
  transition:background .15s;
}
.nl-history-row:hover { background:var(--nl-linen); }

.nl-history-icon-wrap {
  width:34px; height:34px; border-radius:50%;
  background:var(--nl-pink); display:flex;
  align-items:center; justify-content:center; flex-shrink:0;
}
.nl-history-emoji { font-size:16px; line-height:1; }
.nl-history-desc  { flex:1; font-size:13px; color:var(--nl-text); }
.nl-history-pts   { font-size:15px; font-weight:600; white-space:nowrap; }
.nl-pos { color:#4CAF50; }
.nl-neg { color:#E57373; }

.nl-empty { font-size:13px; color:var(--nl-muted); font-style:italic; }

/* ── Cart melding ───────────────────────────────────────────── */
.nl-cart-notice {
  background:var(--nl-pink); border:.5px solid var(--nl-blush);
  border-radius:var(--nl-rs); padding:10px 16px;
  font-size:13px; color:var(--nl-muted); margin-bottom:16px;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.nl-cart-badge { color:#fff; font-size:11px; font-weight:500; padding:3px 10px; border-radius:20px; }

/* ── Toast ──────────────────────────────────────────────────── */
#nl-toast {
  position:fixed; bottom:24px; right:24px;
  background:var(--nl-dark); color:#F5EEE6;
  padding:12px 20px; border-radius:var(--nl-rs);
  font-size:14px; z-index:99999;
  opacity:0; transform:translateY(10px);
  transition:opacity .3s, transform .3s;
  max-width:300px; pointer-events:none;
}
#nl-toast.nl-show { opacity:1; transform:none; pointer-events:auto; }

/* ── Login melding ──────────────────────────────────────────── */
.nl-login-notice {
  background:var(--nl-linen); border:.5px solid var(--nl-sand);
  border-radius:var(--nl-r); padding:20px; text-align:center;
  font-size:14px; color:var(--nl-muted);
}
.nl-login-notice a { color:var(--nl-terra); }

/* ── Mobiel ─────────────────────────────────────────────────── */
@media (max-width:480px) {
  .nl-points-number { font-size:42px; }
  .nl-actions-grid  { grid-template-columns:1fr 1fr; }
  .nl-level-card    { flex:0 0 82vw; }
}

/* ── Gratis producten beloningen ─────────────────────────────── */
.nl-rewards-section { margin-bottom: 20px; }

.nl-reward-next-card {
  background: linear-gradient(135deg, #F2D7DA 0%, #F9F0EF 100%);
  border: .5px solid #F5C4C9;
  border-radius: var(--nl-r);
  padding: 20px;
  margin-bottom: 12px;
}
.nl-reward-next-label {
  font-size: 11px; font-weight: 600; color: var(--nl-terra);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.nl-reward-next-body {
  display: flex; align-items: flex-start; gap: 16px;
}
.nl-reward-img-wrap {
  width: 80px; height: 80px; border-radius: var(--nl-rs);
  overflow: hidden; flex-shrink: 0;
  background: #fff; border: .5px solid #EDE0D4;
}
.nl-reward-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nl-reward-next-info { flex: 1; }
.nl-reward-product-name { font-size: 15px; font-weight: 500; color: var(--nl-dark); margin-bottom: 6px; }
.nl-reward-pts-needed { font-size: 13px; color: var(--nl-muted); margin-bottom: 10px; }
.nl-reward-pts-needed strong { color: var(--nl-terra); }

.nl-reward-progress-bar {
  height: 8px; background: rgba(255,255,255,.6);
  border-radius: 8px; overflow: hidden; margin-bottom: 4px;
}
.nl-reward-progress-fill {
  height: 100%; background: var(--nl-terra);
  border-radius: 8px; transition: width .8s ease;
}
.nl-reward-progress-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--nl-muted);
}
.nl-reward-more {
  margin-top: 12px; padding-top: 12px;
  border-top: .5px solid #EDE0D4;
  font-size: 12px; color: var(--nl-muted); text-align: center;
}

/* Verdiende beloningen */
.nl-reward-earned-list { display: flex; flex-direction: column; gap: 8px; }
.nl-reward-earned-title {
  font-size: 13px; font-weight: 500; color: var(--nl-dark); margin-bottom: 8px;
}
.nl-reward-earned-row {
  display: flex; align-items: center; gap: 12px;
  background: #EDF7ED; border: .5px solid #C8E6C9;
  border-radius: var(--nl-rs); padding: 12px 14px;
}
.nl-reward-img-sm-wrap {
  width: 48px; height: 48px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0; background: #fff;
  border: .5px solid #C8E6C9;
}
.nl-reward-img-sm-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nl-reward-earned-info { flex: 1; }
.nl-reward-earned-code { font-size: 12px; color: #5C3A3A; margin-top: 3px; }
.nl-reward-earned-code strong { font-family: monospace; color: #4A3535; }
.nl-reward-earned-badge {
  background: #4CAF50; color: #fff; font-size: 11px;
  font-weight: 500; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

@media (max-width: 480px) {
  .nl-reward-next-body { flex-direction: column; }
  .nl-reward-img-wrap  { width: 100%; height: 140px; }
}
