: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;
}