:root{
  --green-1:#2f7d36;
  --green-2:#4aa84f;
  --bg:#f5f7f6;
  --text:#0b1220;
  --muted:#6b7280;
  --card:#ffffff;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 86px; /* ruimte voor tabbar */
}

/* ===== LINKS reset (voorkomt blauwe/onderstreepte look) ===== */
a{ color: inherit; text-decoration: none; }
a:visited{ color: inherit; }
a:active{ opacity:.95; }

/* ===== HERO ===== */
.hero{
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  padding: env(safe-area-inset-top) 16px 18px;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.hero-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 0 6px;
}

.icon-btn{
  border:0;
  background: rgba(255,255,255,.18);
  color:#fff;
  font-size:18px;
  width: 46px;
  height: 46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  backdrop-filter: blur(6px);
}

.icon-btn.ghost{ opacity:.0; pointer-events:none; }

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#ff3b30;
  color:#fff;
  font-size:12px;
  font-weight:800;
  margin-left: 6px;
}

.hero-mini{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.hero-mini img{
  width:100%;
  height:100%;
  object-fit: cover;
}

/* Home hero logo */
.hero-brand-big{
  display:flex;
  justify-content:center;
  padding: 28px 0 18px;
}
.logo-hero{
  width: min(180px, 55vw);
  height:auto;
  display:block;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.25));
  opacity: .98;
}

/* ===== CONTENT ===== */
.container{
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

h1{
  font-size: 30px;
  letter-spacing:-.02em;
  margin: 14px 0 6px;
}

.subtitle{
  margin:0 0 12px;
  color: var(--muted);
  font-size: 16px;
}

/* ===== BUTTONS ===== */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  border:0;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 900;
  font-size: 16px;
  color:#fff;
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  box-shadow: 0 12px 24px rgba(47,125,54,.22);
}

.btn-primary:disabled{ opacity:.7; }

.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
}

/* ===== STATUS PILL ===== */
.status-pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;

  padding: 14px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow);
  margin: 8px 0 16px;
}

.status-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.status-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  background:#9ca3af;
  box-shadow: 0 0 0 4px rgba(156,163,175,.18);
}
.status-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.status-title{
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
}
.status-sub{
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-right{
  text-align:right;
  font-weight: 900;
  font-size: 14px;
  color: #111827;
  flex: 0 0 auto;
}

.status-pill.status-open .status-dot{
  background:#22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}
.status-pill.status-closed .status-dot{
  background:#ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.18);
}

/* ===== GRID / CARDS ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card{
  background: rgba(255,255,255,.95);
  border-radius: 20px;
  border: 1px solid rgba(16,24,40,.08);
  box-shadow: 0 10px 22px rgba(16,24,40,.06);
  padding: 14px;
  min-height: 112px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.card:active{ transform: scale(.98); }

.card-icon{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(47,125,54,.16), rgba(74,168,79,.10));
  border: 1px solid rgba(47,125,54,.18);
}
.card-icon img{ width: 28px; height: 28px; display:block; }

.card-title{
  font-weight: 950;
  font-size: 16px;
  text-align:center;
  line-height: 1.1;
}
.card-sub{
  font-size: 13px;
  color: var(--muted);
  text-align:center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.card-empty{ opacity:0; pointer-events:none; }

/* ===== AUTH CARD / FORMS ===== */
.auth-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 16px;
}

.auth-tabs{
  display:flex;
  gap: 8px;
  background: rgba(0,0,0,.04);
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.auth-tab{
  flex:1;
  border:0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--muted);
  text-align:center;
}
.auth-tab.is-active{
  background:#fff;
  color: var(--text);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.field-label{
  display:block;
  font-weight: 900;
  margin-bottom: 6px;
}

.field input,
.input{
  width:100%;
  border:1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 16px;
  outline:none;
  background:#fff;
}

.auth-tip{
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.auth-msg{
  margin: 0;
  font-weight: 900;
  color: #d11a2a;
}

/* Logged-in card */
.logged-card{
  margin-top: 14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.logged-title{
  margin: 0 0 8px;
  font-size: 22px;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: rgba(0,0,0,.06);
}
.mini-actions{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* ===== DASHBOARD GRID (cards) ===== */
.dash-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.dash-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.dash-top{
  display:flex;
  align-items:center;
  gap: 12px;
}

.dash-emoji{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(47,125,54,.10);
  border: 1px solid rgba(47,125,54,.18);
  font-size: 22px;
}

.dash-title{
  font-weight: 950;
  font-size: 16px;
}
.dash-sub{
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  margin-top: 2px;
}

.dash-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top: 12px;
}

.dash-chip{
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
}
.dash-arrow{
  font-weight: 950;
  font-size: 18px;
}

/* ===== OPENINGSTIJDEN ===== */
.hours-card{
  background:#fff;
  border-radius:18px;
  padding:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  border:1px solid rgba(15,23,42,.06);
}

.hours-card .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 14px;
  border-radius:14px;
  transition:transform .18s ease, background .18s ease;
  animation:hoursIn .35s ease both;
}

.hours-card .row + .row{
  border-top:1px solid rgba(15,23,42,.06);
  border-top-left-radius:0;
  border-top-right-radius:0;
}

.hours-card .day{
  font-weight:800;
  font-size:16px;
  color:#0f172a;
}
.hours-card .time{
  font-weight:700;
  font-size:15px;
  color:#0f172a;
  opacity:.9;
  white-space:nowrap;
}

.hours-card .row:hover{
  transform:translateY(-1px);
  background:rgba(34,197,94,.06);
}

.hours-card .row.today{
  border:1px solid rgba(34,197,94,.25);
  background:linear-gradient(180deg, rgba(34,197,94,.10), rgba(34,197,94,.04));
}

.hours-card .row.closed{
  opacity:.55;
}

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

/* ===== TABBAR ===== */
.tabbar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,.08);
  display:flex;
  justify-content:space-around;
  z-index: 20;
}

.tab{
  color: #111827;
  opacity:.75;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 4px;
  font-size: 18px;
  min-width: 64px;
}
.tab span{
  font-size: 12px;
  font-weight: 900;
}
.tab.active{ opacity:1; }

/* ===== PREMIUM HERO + FONT + INTRO ANIM (FINAL) ===== */
.hero{ text-align:center; padding-bottom:14px; }

.hero-content{
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px 18px;
}

.hero-title{
  font-family: "Playfair Display", serif;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 10px;
  font-weight: 900;
  color: #0b1220;

  opacity: 0;
  transform: translateY(14px);
}

.hero-subtitle{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin: 0 0 14px;
}

.hero-chip{
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 14px;

  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  backdrop-filter: blur(10px);

  opacity: 0;
  transform: translateY(12px);
}

.quickbar{
  margin: 18px auto 0;
  padding: 14px;
  max-width: 420px;

  border-radius: 26px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);

  opacity: 0;
  transform: translateY(14px);
}

.quick-actions{
  display:flex;
  gap:10px;
}

.qbtn{
  flex:1;
  text-decoration:none;
  border-radius: 18px;
  padding: 14px;
  font-family: Inter, sans-serif;
  font-weight: 900;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  transition: transform .12s ease;
}

.qbtn:active{ transform: scale(.97); }

.qbtn-primary{
  background: rgba(0,0,0,.22);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
}

.qbtn-secondary{
  background:#fff;
  color:#0b1220;
}

.login-chip{
  margin-top: 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding: 12px 16px;
  border-radius: 18px;

  font-family: Inter, sans-serif;
  font-weight: 900;
  text-decoration:none;

  background: rgba(0,0,0,.22);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
}

/* intro anim */
body.is-loaded .hero-title{ animation: fadeUp .6s ease forwards; }
body.is-loaded .hero-chip:nth-child(1){ animation: fadeUp .45s ease forwards .18s; }
body.is-loaded .hero-chip:nth-child(2){ animation: fadeUp .45s ease forwards .32s; }
body.is-loaded .hero-chip:nth-child(3){ animation: fadeUp .45s ease forwards .46s; }
body.is-loaded .quickbar{ animation: fadeUp .6s ease forwards .6s; }

@keyframes fadeUp{ to{ opacity:1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce){
  .hero-title, .hero-chip, .quickbar{
    opacity:1 !important;
    transform:none !important;
    animation:none !important;
  }
}

/* plak dit ONDERAAN je styles.css (laat de rest staan) */
.hero{ text-align:center; padding-bottom:14px; }
.hero-content{ max-width:480px; margin:0 auto; padding: 10px 16px 18px; }

.hero-title{
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 6px;
  font-weight: 900;
  color: rgba(11,18,32,.95);
  text-shadow: 0 10px 20px rgba(0,0,0,.18);

  opacity:0;
  transform: translateY(12px);
}

.hero-subtitle{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 15px;
  color: rgba(255,255,255,.92);

  opacity:0;
  transform: translateY(10px);
}
.hero-subtitle .dot{ opacity:.9; padding: 0 4px; }

.quickbar{
  margin: 14px auto 0;
  padding: 14px;
  max-width: 420px;
  border-radius: 26px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);

  opacity:0;
  transform: translateY(12px);
}

.quick-actions{ display:flex; gap:10px; }
.qbtn{
  flex:1;
  text-decoration:none;
  border-radius: 18px;
  padding: 14px;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition: transform .12s ease;
}
.qbtn:active{ transform: scale(.97); }
.qbtn-primary{
  background: rgba(0,0,0,.22);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
}
.qbtn-secondary{
  background:#fff;
  color:#0b1220;
  border:1px solid rgba(0,0,0,.08);
}

.login-chip{
  margin-top: 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 16px;
  border-radius: 18px;
  font-weight: 900;
  background: rgba(0,0,0,.16);
  color:#fff;
  border:1px solid rgba(255,255,255,.22);
}
.login-chip.is-logged{
  background: rgba(255,255,255,.14);
}
.login-chip .arrow{ opacity:.9; }

/* intro anim (minder druk: alleen titel + subtitle + quickbar) */
body.is-loaded .hero-title{ animation: fadeUp .55s ease forwards; }
body.is-loaded .hero-subtitle{ animation: fadeUp .45s ease forwards .18s; }
body.is-loaded .quickbar{ animation: fadeUp .55s ease forwards .32s; }

@keyframes fadeUp{ to{ opacity:1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce){
  .hero-title, .hero-subtitle, .quickbar{
    opacity:1 !important; transform:none !important; animation:none !important;
  }
}

/* === FIX: hero-logo niet giga op iPhone === */
.hero-logo{
  width: 110px !important;
  height: 110px !important;
  margin: 14px auto 10px !important;
  padding: 10px !important;
  border-radius: 26px !important;
  overflow: hidden !important;
}

.hero-logo img{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* extra safety: als ergens img { width:100vw } staat */
.hero img{
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
}

.hero-logo{
  width: 72px;
  height: 72px;
  margin: 12px auto 10px;
  border-radius: 18px;
  padding: 10px;
}

.hero-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

/* === TABBAR GLOBAL UIT === */
.tabbar {
  display: none !important;
}

/* ruimte onderaan ook weghalen */
body {
  padding-bottom: 0 !important;
}

/* ===== HOME V2 – APPLE-STYLE DASHBOARD (ALLEEN INDEX) ===== */
/* Alles is gescoped onder .home zodat andere pagina's hetzelfde blijven. */

/* Achtergrond & basis alleen voor home */
.home {
  background: radial-gradient(circle at top, #e5f9ed 0, #f9fafb 40%, #eef2ff 100%);
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* Zachte fade-in op load */
.home:not(.is-loaded) .hero,
.home:not(.is-loaded) .container,
.home:not(.is-loaded) .tabbar {
  opacity: 0;
  transform: translateY(8px);
}

.home.is-loaded .hero,
.home.is-loaded .container,
.home.is-loaded .tabbar {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease;
}

/* HERO – grote groene kaart, app-achtig */
.home .hero {
  padding: 26px 16px 32px;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  background: radial-gradient(circle at top left, #4ade80 0, #22c55e 40%, #16a34a 100%);
  box-shadow: 0 26px 40px rgba(22,163,74,0.35);
  position: sticky;
  top: 0;
  z-index: 10;
  text-align: center;
}

.home .hero-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 24px;
  padding: 10px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: ggFloat 4.5s ease-in-out infinite;
}

.home .hero-logo::after {
  content: "";
  position: absolute;
  inset: auto 16px -10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,0,0,.22), transparent 70%);
  opacity: .6;
  filter: blur(4px);
  pointer-events: none;
}

.home .hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home .hero-title {
  margin: 10px 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #022c22;
}

.home .hero-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

/* Inlog-chip – netjes onder titel */
.home .hero-main-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #022c22;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 12px 30px rgba(16,172,132,0.45);
  text-decoration: none;
  transform-origin: center;
  transition:
    transform .12s ease-out,
    box-shadow .14s ease-out,
    background-color .14s ease-out;
}

.home .hero-main-action:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 40px rgba(16,172,132,0.65);
}

/* Container – iets breder, maar mobiel-vriendelijk */
.home .container {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 16px 84px;
}

/* STATUS PILL – lichte neuromorph look */
.home .auth-card {
  margin-bottom: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.home .status-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  background: #f9fafb;
  box-shadow:
    -6px -6px 16px rgba(255,255,255,0.9),
    8px 14px 32px rgba(15,23,42,0.12);
  border: 1px solid rgba(148,163,184,0.16);
}

.home .status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: 0 0 0 4px rgba(209,213,219,0.9);
}

/* Als open: groene dot + pulse */
.home .status-pill.status-open .status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(187,247,208,0.9);
  animation: ggPulse 1.8s ease-out infinite;
}

.home .status-pill.status-closed .status-dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(254,202,202,0.9);
}

.home .status-title {
  font-size: 14px;
  font-weight: 700;
}

.home .status-sub {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.home .status-right {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

/* DASHBOARD GRID – Apple-style tiles */
.home .dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* basis */
.home .dash-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border: 1px solid rgba(148,163,184,0.3);
  box-shadow: 0 16px 30px rgba(15,23,42,0.08);
  text-decoration: none;
  color: inherit;
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform .16s ease-out,
    box-shadow .16s ease-out,
    border-color .16s ease-out,
    background-color .16s ease-out;
}

/* "Nieuwe print" = hoofd-CTA → extra accent */
.home .dash-card:first-child {
  background: linear-gradient(135deg, #ecfdf3, #e0f2fe);
  border-color: rgba(34,197,94,0.7);
  box-shadow: 0 20px 36px rgba(22,163,74,0.25);
}

/* cards komen één voor één binnen (stagger) */
.home.is-loaded .dash-card:nth-child(1) { animation: ggCardIn .45s ease-out forwards .08s; }
.home.is-loaded .dash-card:nth-child(2) { animation: ggCardIn .45s ease-out forwards .16s; }
.home.is-loaded .dash-card:nth-child(3) { animation: ggCardIn .45s ease-out forwards .24s; }
.home.is-loaded .dash-card:nth-child(4) { animation: ggCardIn .45s ease-out forwards .32s; }

.home .dash-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(15,23,42,0.16);
  border-color: rgba(34,197,94,0.65);
}

/* inhoud van card */
.home .dash-top {
  display: flex;
  gap: 10px;
}

.home .dash-emoji {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5f9ed;
  font-size: 20px;
}

.home .dash-title {
  font-size: 15px;
  font-weight: 700;
}

.home .dash-sub {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 2px;
}

.home .dash-bottom {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.home .dash-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  font-weight: 700;
  font-size: 11px;
}

.home .dash-arrow {
  font-size: 16px;
  opacity: .7;
}

/* TABBAR – lichte app bar onder */
.home .tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px 12px;
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid rgba(148,163,184,0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 -8px 30px rgba(15,23,42,0.14);
}

.home .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(15,23,42,0.7);
  text-decoration: none;
  transition:
    background-color .16s ease,
    color .16s ease,
    transform .12s ease;
}

.home .tab span {
  font-size: 10px;
  font-weight: 700;
}

.home .tab.active {
  background: rgba(34,197,94,0.12);
  color: #022c22;
  transform: translateY(-1px);
}

/* Kaarten op grotere schermen in 2 kolommen */
@media (min-width: 540px) {
  .home .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === KEYFRAMES === */

@keyframes ggFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes ggPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  70%  { box-shadow: 0 0 0 14px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

@keyframes ggCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* GG POLISH UPDATE */

/* Hero rounded + parallax */
.hero {
  position: sticky;
  top: 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  backdrop-filter: blur(12px);
  transform: translateZ(0);
  will-change: transform;
}

/* Logo float subtle */
.hero-logo {
  animation: floatGG 5.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floatGG {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* Dot pulse */
.status-pill.status-open .status-dot {
  animation: pulseGG 2.2s ease-in-out infinite;
}

@keyframes pulseGG {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  100% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
}

/* Cards stagger */
.dash-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease-out, transform .32s ease-out;
}

body.is-loaded .dash-card:nth-child(1) { transition-delay: .08s; opacity:1; transform:translateY(0); }
body.is-loaded .dash-card:nth-child(2) { transition-delay: .14s; opacity:1; transform:translateY(0); }
body.is-loaded .dash-card:nth-child(3) { transition-delay: .20s; opacity:1; transform:translateY(0); }
body.is-loaded .dash-card:nth-child(4) { transition-delay: .26s; opacity:1; transform:translateY(0); }

/* CTA NIEUWE PRINT BOOST */
.dash-card.cta {
  border-color: rgba(34,197,94,0.8);
  box-shadow: 0 0 38px rgba(34,197,94,0.25);
  background: linear-gradient(135deg, #ecfdf5, #e0f7eb);
}

/* Magnetic hover */
.dash-card.cta:hover {
  transform: translateY(-3px) scale(1.015);
}

/* ===== PRINT SUCCES OVERLAY (A + D STIJL) ===== */

.print-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(12px);
}

.print-success-card {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  background: radial-gradient(circle at top, #ecfdf3 0, #ffffff 45%, #e0f2fe 100%);
  box-shadow:
    0 24px 60px rgba(15,23,42,0.35),
    0 0 0 1px rgba(148,163,184,0.3);
  padding: 18px 18px 16px;
  text-align: center;
  color: #022c22;
}

.print-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #22c55e 0, #16a34a 60%);
  color: #ecfdf5;
  font-size: 26px;
  box-shadow: 0 18px 36px rgba(22,163,74,0.4);
}

.print-success-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.print-success-text {
  margin: 0 0 14px;
  font-size: 13px;
  color: #064e3b;
}

.print-success-meta {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 16px;
}

.print-success-actions {
  display: flex;
  gap: 10px;
}

.print-success-btn {
  flex: 1;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.print-success-btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  box-shadow: 0 16px 36px rgba(22,163,74,0.4);
}

.print-success-btn.secondary {
  background: #e5e7eb;
  color: #111827;
}

/* ============ DASHBOARD – APP LOOK ============ */

body.dashboard-screen {
  min-height: 100vh;
  background: radial-gradient(circle at top, #e5f9ed 0, #f9fafb 40%, #eef2ff 100%);
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* container binnen dashboard */
.dashboard-main {
  flex: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 96px; /* ruimte voor tabbar */
  box-sizing: border-box;
}

/* titel + subtitel */
.dashboard-screen .page-title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #020617;
}

.dashboard-screen .subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6b7280;
}

/* kaart basis */
.dashboard-card {
  border-radius: 22px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 18px 40px rgba(15,23,42,0.16);
  border: 1px solid rgba(148,163,184,0.35);
  padding: 18px 16px 18px;
}

/* logged-out: iets neutraler */
#loggedOutPanel.dashboard-card {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15,23,42,0.12);
}

/* titels in kaarten */
.dashboard-card .card-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #020617;
}

.dashboard-card .card-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #4b5563;
}

.dashboard-card .card-footnote {
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
}

/* USER BLOK – avatar + mail */
.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 18px;
  background: #f3f4f6;
  margin: 6px 0 16px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #166534;
}

.user-email-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.user-email {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.user-status {
  font-size: 12px;
  margin-top: 2px;
  color: #059669; /* groen “E-mail bevestigd ✅” */
  font-weight: 600;
}

/* sectie titel "Snel naar" */
.section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
  margin: 0 0 8px;
}

/* ACTIE KNOPPEN – grid */
.dashboard-card--logged .btn-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

/* hoofdactie volledig breed */
.dashboard-card--logged .btn-primary {
  grid-column: 1 / -1;
  justify-content: center;
}

/* buttons iets meer app-achtig */
.dashboard-card--logged .btn-primary,
.dashboard-card--logged .btn-secondary {
  border-radius: 18px;
  font-size: 14px;
  padding: 12px 14px;
}

/* logout rij */
.logout-row {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logout-row button {
  border: none;
  background: #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

/* TABBAR OP DASHBOARD TERUG LATEN ZIEN */
body.dashboard-screen .tabbar {
  display: flex !important;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px 12px;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid rgba(148,163,184,0.4);
  backdrop-filter: blur(18px);
  box-shadow: 0 -8px 28px rgba(15,23,42,0.18);
}

body.dashboard-screen .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(15,23,42,0.7);
}

body.dashboard-screen .tab span {
  font-size: 10px;
  font-weight: 700;
}

body.dashboard-screen .tab.active {
  background: rgba(34,197,94,0.14);
  color: #022c22;
  transform: translateY(-1px);
}

/* ========== DASHBOARD FINTECH STYLE ========== */

.dashboard-screen {
  background: radial-gradient(circle at top, #e0f2fe 0, #f9fafb 45%, #e5e7eb 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-main {
  flex: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 96px;
}

.page-title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0 0 10px;
  font-size: 14px;
  color: #6b7280;
}

.dashboard-card {
  margin-top: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px 18px 16px;
}

/* logged-in variant met zachte achtergrond */
.dashboard-card--logged {
  background: radial-gradient(circle at top, #ecfdf5 0, #ffffff 50%, #e5ecff 100%);
}

/* header in card */
.dash-header-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dashboard-card--logged .card-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.dashboard-card--logged .card-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #4b5563;
}

/* account blok */
.account-summary {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(209, 213, 219, 0.7);
}

.account-summary .user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #065f46;
}

.account-summary .user-email-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.account-summary .user-email {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.account-summary .user-status {
  font-size: 12px;
  color: #16a34a;
  margin-top: 2px;
}

/* section titles */
.section-title {
  margin: 18px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

/* profiel formulier */
.profile-grid {
  display: grid;
  gap: 10px;
}

.profile-grid .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-grid label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.profile-grid input {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.96);
}

.profile-grid input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.field-row {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr;
  gap: 8px;
}

/* save row */
.profile-save-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-save-msg {
  font-size: 12px;
  color: #16a34a;
}

.profile-save-btn {
  padding-inline: 16px;
}

/* acties onder profiel */
.btn-stack-actions {
  margin-top: 10px;
}

.inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* logout */
.logout-row {
  margin-top: 14px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.logout-row button {
  border-radius: 999px;
  border: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #e5e7eb;
  color: #ef4444;
}

/* tabbar zichtbaar op dashboard */
.dashboard-screen .tabbar {
  display: flex !important;
}

/* Alleen voor dashboard-scherm */
body.dashboard-screen {
  background: radial-gradient(circle at top, #e5f9ed 0, #f9fafb 40%, #eef2ff 100%);
}

/* Kaart met profiel en snelkoppelingen */
.dashboard-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 16px 84px;
}

.dashboard-card {
  margin-top: 16px;
  background: #ffffff;
  border-radius: 24px;
  padding: 18px 16px 18px;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.dashboard-card--logged {
  background: linear-gradient(180deg, #f9fafb 0, #ffffff 45%, #eef2ff 100%);
}

/* User blok */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #166534;
}

.user-email-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.user-email {
  font-size: 15px;
  font-weight: 700;
}

.user-status {
  font-size: 12px;
  color: #16a34a;
}

/* Profiel formulier */
.profile-form {
  margin-top: 4px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(209,213,219,0.8);
}

.field-row {
  margin-bottom: 10px;
}

.field-row--inline {
  display: flex;
  gap: 10px;
}

.field-row--inline > div {
  flex: 1;
}

.profile-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-save-msg {
  font-size: 12px;
  color: #16a34a;
}

/* === DASHBOARD LAYOUT === */
.dashboard-screen {
  background: radial-gradient(circle at top, #e5f9ed 0, #f9fafb 40%, #eef2ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.dashboard-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 110px;
}

.page-title {
  margin: 22px 0 4px;
  font-size: 28px;
  font-weight: 800;
}

.subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  color: #64748b;
}

.dashboard-card {
  margin-top: 18px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 18px 42px rgba(15,23,42,0.12);
  padding: 18px 18px 20px;
}

/* account blok */
.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 12px;
}

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.user-email-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.user-email {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.user-status {
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
  margin-top: 2px;
}

/* kleine stats */
.account-meta {
  display: flex;
  gap: 10px;
  margin: 4px 0 16px;
}

.account-meta .meta-item {
  flex: 1;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid rgba(148,163,184,0.35);
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.account-meta .meta-item strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: #0f172a;
}

/* sectietitels */
.section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #94a3b8;
  margin: 14px 0 8px;
}

/* buttons */
.btn-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.btn-primary {
  width: 100%;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 15px;
}

.btn-secondary {
  border-radius: 18px;
  padding: 12px 14px;
}

/* profiel sectie */
.profile-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(226,232,240,0.9);
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.link-btn {
  border: none;
  background: transparent;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: underline;
}

/* formulier */
.profile-form {
  margin-top: 8px;
  padding: 10px 0 2px;
}

.field-row {
  margin-bottom: 12px;
}

.field-row--inline {
  display: flex;
  gap: 10px;
}

.field-col {
  flex: 1;
}

.field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.input {
  width: 100%;
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.7);
  background: #f9fafb;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.input:focus {
  outline: none;
  border-color: #22c55e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
}

.profile-save-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.profile-save-msg {
  font-size: 12px;
  color: #16a34a;
}

/* logout rij */
.logout-row {
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logout-row button {
  border-radius: 999px;
  padding: 8px 14px;
  border: none;
  background: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

/* ==== DASHBOARD LOOK & FEEL ==== */

.dashboard-screen {
  min-height: 100vh;
  background: radial-gradient(circle at top, #e5f9ed 0, #f9fafb 45%, #eef2ff 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.dashboard-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 96px;
}

.dashboard-screen .page-title {
  margin: 4px 0 2px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #020617;
}

.dashboard-screen .subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
}

.dashboard-card {
  margin-top: 10px;
  border-radius: 24px;
  background: #ffffff;
  padding: 18px 16px 16px;
  box-shadow:
    0 18px 40px rgba(15,23,42,0.18),
    0 0 0 0.5px rgba(148,163,184,0.4);
}

.dashboard-card--logged {
  background: radial-gradient(circle at top, #ecfdf5 0, #ffffff 55%, #eef2ff 100%);
}

/* header + subtekst klein beetje rustiger */
.account-header .card-sub.account-sub {
  margin-top: 4px;
}

/* account samenvatting rij */
.account-summary {
  margin-top: 12px;
  padding: 10px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow:
    -6px -6px 14px rgba(255,255,255,0.9),
    8px 12px 30px rgba(15,23,42,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* avatar + email */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #166534;
}

.user-meta {
  font-size: 13px;
}

.user-email-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.user-email {
  font-size: 14px;
  font-weight: 800;
  color: #020617;
}

.user-status {
  font-size: 12px;
  color: #16a34a;
  margin-top: 2px;
}

/* gratis prints pill */
.freeprints-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #ecfdf3;
  color: #166534;
  white-space: nowrap;
}

/* profiel-link knop */
.profile-link-btn {
  margin-top: 10px;
  margin-bottom: 4px;
  border: none;
  padding: 8px 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

/* ==== PROFIEL MODAL ==== */

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 calc(12px + env(safe-area-inset-bottom));
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(10px);
}

.profile-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  background: #f9fafb;
  box-shadow: 0 -18px 40px rgba(15,23,42,0.4);
  padding: 16px 16px 14px;
  animation: modalSlideUp .25s ease-out;
}

.profile-modal-title {
  margin: 2px 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #020617;
}

.profile-modal-sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b7280;
}

/* formulier */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 8px;
}

.profile-form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.8);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
}

.profile-form input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34,197,94,0.45);
}

.profile-save-msg {
  min-height: 18px;
  margin: 4px 0 0;
  font-size: 12px;
  color: #16a34a;
}

.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

/* modal animatie */
@keyframes modalSlideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==== CONFETTI / VUURWERK EFFECT ==== */

.confetti-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 60;
}

.confetti-piece {
  position: absolute;
  top: -10vh;
  width: 6px;
  height: 14px;
  border-radius: 2px;
  background: #22c55e;
  opacity: 0;
  animation: confettiFall 1.1s ease-out forwards;
}

.confetti-piece:nth-child(3n)  { background: #10b981; }
.confetti-piece:nth-child(4n)  { background: #facc15; }
.confetti-piece:nth-child(5n)  { background: #f97316; }

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(70vh) rotate(260deg);
    opacity: 0;
  }
}
/* =========== MOBILE FRIENDLY FIXES =========== */

/* 1. Inputs minstens 16px → voorkomt irritante iOS zoom */
.profile-form input,
input,
textarea,
select {
  font-size: 16px; /* min 16px voor iPhone */
}

/* 2. Dashboard iets strakker op kleine schermen */
@media (max-width: 480px) {
  .dashboard-main {
    padding: 16px 12px 88px; /* iets minder padding, meer ruimte */
  }

  .dashboard-card {
    border-radius: 20px;
    padding: 14px 12px 14px;
  }

  .account-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .freeprints-pill {
    align-self: flex-start;
    margin-top: 4px;
  }
}

/* 3. Profiel-popup als echte mobiele bottom-sheet + goed scrollen */
.profile-modal {
  align-items: flex-end;
  padding: 0;
}

.profile-modal-card {
  border-radius: 22px 22px 0 0;
  max-height: calc(85vh - env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* soepele iOS scroll */
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

/* Zorg dat knoppen altijd groot genoeg zijn om te tikken */
.btn-primary,
.btn-secondary,
.profile-link-btn,
.logout-row button,
.tab {
  min-height: 44px;
}

/* ==== MOBILE FIX DASHBOARD & TABBAR ==== */

/* voorkom horizontaal scrollen */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* zorg dat kaarten nooit breder zijn dan het scherm */
.dashboard-main,
.dashboard-card,
.btn-primary,
.btn-secondary {
  max-width: 100%;
  box-sizing: border-box;
}

/* tabbar exact schermbreed */
.tabbar {
  max-width: 100vw;
  overflow-x: hidden;
}

/* === ACCOUNT TICKER === */

.account-ticker {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 6px 0 12px;
  height: 24px;
}

.ticker-track {
  white-space: nowrap;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #065f46;
  animation: tickerScroll 12s linear infinite;
}

.account-ticker span {
  padding-right: 40px;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* === ACCOUNT TICKER === */

.account-ticker {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 6px 0 12px;
  height: 24px;
}

.ticker-track {
  white-space: nowrap;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #065f46;
  animation: tickerScroll 12s linear infinite;
}

.account-ticker span {
  padding-right: 40px;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.ticker-track {
  animation: tickerScroll 8s linear infinite;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* === MANAGER SCREEN === */

.manager-screen {
  background: radial-gradient(circle at top, #e5f9ed 0, #f9fafb 40%, #eef2ff 100%);
}

.manager-main {
  max-width: 640px;
  margin-bottom: 90px;
}

.manager-card {
  margin-top: 16px;
}

/* metrics cards bovenaan */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid rgba(148,163,184,0.35);
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}

.metric-value {
  font-size: 18px;
  font-weight: 800;
}

.metric-sub {
  font-size: 11px;
  color: #4b5563;
  margin-top: 2px;
}

/* zoeken */
.manager-search {
  margin: 10px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.manager-search label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.manager-search input {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 14px;
}

/* lijst kop */
.manager-users-header {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

/* user cards */
.manager-user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manager-user-card {
  border-radius: 18px;
  padding: 12px 12px 10px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 12px 24px rgba(15,23,42,0.06);
}

.m-user-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.m-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #064e3b;
  flex-shrink: 0;
}

.m-user-info {
  flex: 1;
  min-width: 0;
}

.m-user-name {
  font-weight: 800;
  font-size: 14px;
}

.m-user-email {
  font-size: 13px;
  color: #4b5563;
}

.m-user-address,
.m-user-phone {
  font-size: 12px;
  color: #6b7280;
}

.m-user-meta {
  text-align: right;
  min-width: 70px;
}

.m-user-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.m-user-prints {
  font-weight: 800;
  font-size: 16px;
}

.m-user-footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.m-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.m-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  font-weight: 700;
}

.m-tag--green {
  background: #dcfce7;
  color: #166534;
}

.m-tag--red {
  background: #fee2e2;
  color: #b91c1c;
}

.m-btn-danger {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #fee2e2;
  color: #b91c1c;
}

/* leeg-state */
.manager-empty {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 16px 0;
}

@media (min-width: 600px) {
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* === MANAGER OVERLAY & DETAIL === */

.manager-main {
  margin-top: 14px;
}

.manager-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.manager-kpi {
  background: #f9fafb;
  border-radius: 14px;
  padding: 10px 12px;
}

.manager-kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  font-weight: 800;
  margin-bottom: 2px;
}

.manager-kpi-value {
  font-size: 18px;
  font-weight: 900;
}

.manager-kpi-sub {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 700;
}

.manager-search-row {
  margin: 8px 0 10px;
}

.manager-search-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  margin-bottom: 4px;
}

.manager-user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.manager-user-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.manager-user-card:active {
  transform: scale(.98);
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
}

.m-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e5f9ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #047857;
  flex-shrink: 0;
}

.m-user-info {
  flex: 1;
  min-width: 0;
}

.m-user-name {
  font-weight: 800;
  font-size: 14px;
}

.m-user-email,
.m-user-address,
.m-user-phone {
  font-size: 12px;
  color: #6b7280;
}

.m-user-meta {
  text-align: right;
  font-size: 11px;
  font-weight: 800;
}

.m-user-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
}

.m-user-prints {
  font-size: 16px;
}

.m-user-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 8px;
}

.m-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-tag {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  font-weight: 800;
}

.m-tag--green {
  background: #dcfce7;
  color: #166534;
}

.m-tag--red {
  background: #fee2e2;
  color: #b91c1c;
}

.m-btn-danger {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  background: #fee2e2;
  color: #b91c1c;
}

/* OVERLAY */

.manager-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 40;
}

.manager-detail-card {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top, #ecfdf3 0, #ffffff 45%, #e0f2fe 100%);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15,23,42,.45);
  border: 1px solid rgba(148,163,184,.4);
  padding: 16px 16px 14px;
  position: relative;
}

.manager-detail-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  color: #6b7280;
}

.manager-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.manager-detail-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #22c55e;
  color: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.manager-detail-name {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.manager-detail-email {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
}

.manager-detail-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manager-field {
  width: 100%;
}

.manager-field-inline {
  display: flex;
  gap: 8px;
}

.manager-field-inline .manager-field {
  flex: 1;
}

.manager-field-group {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(148,163,184,.4);
}

.manager-section-title {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #4b5563;
}

.manager-help {
  margin: 4px 0 0;
  font-size: 11px;
  color: #6b7280;
}

.manager-detail-actions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.manager-save-msg {
  font-size: 11px;
  color: #16a34a;
  font-weight: 700;
}

@media (max-width: 380px) {
  .manager-kpis {
    grid-template-columns: 1fr;
  }
}
/* alles wat hidden is, echt verstoppen */
[hidden] {
  display: none !important;
}

[hidden] {
  display: none !important;
}