/* Beheeromgeving van een gebruikerssite */

.admin-logout { margin-left: 0; }

.admin {
  display: grid;
  gap: 1.5rem;
  max-width: 980px;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.admin-success {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1.5px solid var(--ok);
  background: #edf7ef;
  font-weight: 700;
  animation: finish-in .45s ease both;
}
.admin-success .icon { width: 22px; height: 22px; color: var(--ok); }
.admin-success a { margin-left: auto; color: var(--gold-deep); }
.admin > .finish-alert { margin: 0; }

/* Actieknoppen */
.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 1rem;
}
.admin-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.admin-action:hover { border-color: var(--gold); transform: translateY(-2px); }
.admin-action:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.admin-action[aria-expanded="true"] { border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(201, 166, 107, .2); }
.admin-action__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--espresso);
  color: var(--gold-light);
}
.admin-action[aria-expanded="true"] .admin-action__icon { background: var(--gold-grad); color: var(--espresso); }
.admin-action__icon .icon { width: 22px; height: 22px; }
.admin-action__text { display: grid; gap: .15rem; }
.admin-action__text strong { font-size: 1.075rem; }
.admin-action__text small { color: var(--ink-soft); font-size: .9rem; }

.admin-form { display: grid; gap: 1.5rem; }
.admin-panel { animation: finish-in .35s ease both; }

/* Teksten */
.admin-text { margin-top: 1.5rem; }
.admin-text__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-text__head .field__label { margin-bottom: .25rem; }
.admin-text .link-button { min-height: 36px; font-size: .9rem; }
.admin .counter { margin: .4rem 0 0; font-size: .875rem; color: var(--ink-soft); }
.admin .counter.is-over { color: var(--danger); font-weight: 700; }
.admin .counter.is-ok { color: var(--ok); }

/* Extra pagina */
.admin-action--extra { border-color: var(--gold); background: linear-gradient(135deg, #fffaf0 0%, #fff 100%); }
.admin-action--extra .admin-action__icon { background: var(--gold-grad); color: var(--espresso); }
.admin-sub { margin: 2rem 0 0; font-size: 1.1rem; }
#paneel-pagina .check { margin-top: 1.5rem; }
#paneel-pagina .finish-alert { margin-top: 1.25rem; }
.admin-save--pagina { margin-top: 1.5rem; }
.admin-facturen { margin-top: 2rem; }
.admin-facturen__lijst { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.admin-facturen__lijst li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .8rem 1rem; border: 1px solid var(--line, #e4d9c8); border-radius: 14px; background: #fff; }
.admin-facturen__lijst small { display: block; color: var(--ink-soft); }
.admin-save--rij { flex-direction: row-reverse; justify-content: flex-start; }
.admin-save--rij .link-button { color: var(--cream); }
#paneel-instagram .admin-success, #paneel-instagram .finish-alert { margin: 1rem 0 1.25rem; }

/* Gegevens */
.admin-vast { margin: 1.5rem 0 0; padding: 1rem 1.25rem; border-radius: 14px; background: var(--cream); }
.admin-vast p { margin: 0 0 .35rem; }
.admin-vast__note { margin: .6rem 0 0 !important; font-size: .9rem; color: var(--ink-soft); }
.admin-vast a { color: var(--gold-deep); }
.admin-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .75rem; }
.admin-logo img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--cream); padding: 6px; }
.admin-logo .field { flex: 1 1 260px; margin: 0; }

/* Stijl */
.admin-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.25rem 0 0; padding: 0; border: 0; }
.admin-style { position: relative; cursor: pointer; }
.admin-style__input { position: absolute; opacity: 0; pointer-events: none; }
.admin-style__card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.admin-style__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sand); }
.admin-style__name { padding: .75rem 1rem 0; font-weight: 800; }
.admin-style__name small { font-weight: 500; color: var(--ink-soft); }
.admin-style__desc { padding: .25rem 1rem 1rem; font-size: .9rem; color: var(--ink-soft); }
.admin-style:hover .admin-style__card { border-color: var(--gold); }
.admin-style__input:checked + .admin-style__card { border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(201, 166, 107, .35), var(--shadow-sm); background: #fbf5ea; }
.admin-style__input:focus-visible + .admin-style__card { outline: 3px solid var(--gold); outline-offset: 4px; }

/* Foto's */
.admin-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.photo-slot--hero { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .photo-slot--hero { grid-column: span 2; }
}

.photo-slot__label { margin: 0 0 .5rem; font-weight: 700; }
.photo-slot__label small { color: var(--ink-soft); font-weight: 500; }
.photo-slot__preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 2px dashed #ddd0bd;
  background: var(--cream);
  overflow: hidden;
}
.photo-slot--hero .photo-slot__preview { aspect-ratio: 16 / 9; }
.has-photo .photo-slot__preview,
.is-new .photo-slot__preview { border-style: solid; border-color: transparent; }
.photo-slot__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s ease, filter .25s ease;
}
.photo-slot__empty {
  display: grid;
  justify-items: center;
  gap: .4rem;
  color: var(--ink-soft);
  font-size: .9rem;
}
.photo-slot__empty .icon { width: 30px; height: 30px; }
.photo-slot__badge {
  position: absolute;
  left: .6rem; top: .6rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 700;
}
.is-new .photo-slot__preview { box-shadow: 0 0 0 3px var(--ok); }
.is-new .photo-slot__badge { background: var(--ok); color: #fff; }
.is-removed .photo-slot__preview img { opacity: .35; filter: grayscale(1); }
.is-removed .photo-slot__badge { background: var(--danger); color: #fff; }
.photo-slot.is-invalid .photo-slot__preview { box-shadow: 0 0 0 3px var(--danger); }
.photo-slot.is-focus .photo-slot__pick { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

.photo-slot__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: .75rem;
}
.photo-slot__pick { cursor: pointer; }
.photo-slot__pick .icon { width: 18px; height: 18px; }
.photo-slot__actions .link-button { min-height: 40px; font-size: .9rem; }
#fotos-fout { margin-top: 1rem; }

/* Bewaren */
.admin-save {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background: var(--espresso);
  box-shadow: 0 18px 40px rgba(31, 24, 19, .28);
  color: var(--cream);
}
.admin-save__status {
  display: flex;
  flex: 1 1 280px;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  padding-left: .5rem;
}
.admin-save__status p { margin: 0; flex: 1 1 200px; font-size: .95rem; }
.admin-save__status p span { color: rgba(250, 246, 239, .75); }
.admin-save__spinner {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid rgba(201, 166, 107, .3);
  border-top-color: var(--gold);
  animation: finish-spin 1s linear infinite;
}
.admin-save .upload-progress { flex-basis: 100%; max-width: none; }
@media (max-width: 600px) {
  .admin-save { border-radius: 20px; }
  .admin-save .btn { width: 100%; }
}

/* Inloggen / wachtwoord vergeten */
.login-forgot { margin: 1.25rem 0 0; }
.login-forgot a { color: var(--gold-deep); font-weight: 700; text-underline-offset: 3px; }
.login-forgot a:hover { color: var(--espresso); }
.finish-step .admin-success { margin-bottom: 1.25rem; font-weight: 600; line-height: 1.55; align-items: flex-start; }
.finish-step .admin-success .icon { flex-shrink: 0; margin-top: .15rem; }

/* Website verwijderen */
.admin-action--danger:hover,
.admin-action--danger[aria-expanded="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }
.admin-action--danger .admin-action__icon,
.admin-action--danger[aria-expanded="true"] .admin-action__icon { background: var(--danger-soft); color: var(--danger); }

.danger-panel { border-color: #f0c4bf; animation: finish-in .35s ease both; }
.danger-panel .form-section__title { color: var(--danger); }
.danger-panel p { line-height: 1.65; }
.danger-panel__form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.danger-panel__check { margin-top: 0; font-weight: 600; }
.danger-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }

.btn--danger { background: var(--danger); color: #fff; box-shadow: 0 8px 22px rgba(179, 38, 30, .25); }
.btn--danger:hover { background: #8f1d17; transform: translateY(-2px); }
.btn--danger:hover .icon { transform: none; }

/* Upgrades */
.upsell--beheer {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--sand);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.upsell--beheer .upsell__title { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.upsell--beheer .upsell__dees { background: var(--white); }

.upgrades {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--espresso);
  color: var(--cream);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.upgrades__intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}
.upgrades__photo img {
  display: block;
  width: clamp(140px, 22vw, 220px);
  height: auto;
  aspect-ratio: 320 / 358;
  object-fit: cover;
  border-radius: 50% 50% 18px 18px;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(201, 166, 107, .15);
}
.upgrades__title {
  margin: 0 0 .5rem;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  color: var(--white);
}
.upgrades__lede { margin: 0 0 .75rem; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.6; color: rgba(250, 246, 239, .88); }
.upgrades__sub { margin: 0; font-weight: 700; color: var(--gold-light); }
@media (max-width: 560px) {
  .upgrades__intro { grid-template-columns: 1fr; justify-items: start; }
}

.upgrades__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.upgrade {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
}
.upgrade--featured { box-shadow: 0 0 0 3px var(--gold); }
.upgrade__nr {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--espresso);
  font-weight: 800;
}
.upgrade__price {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--gold-deep);
  font-weight: 800;
  font-size: .95rem;
}
.upgrade__title { margin: 0 0 .6rem; font-size: 1.1rem; line-height: 1.4; }
.upgrade__text { margin: 0 0 1.25rem; color: var(--ink-soft); line-height: 1.6; }
.upgrade__form { display: grid; gap: 1rem; justify-items: start; margin-top: auto; }
.upgrade__panel { display: grid; gap: .75rem; justify-items: start; width: 100%; }
.upgrade__panel .field { width: 100%; }
.upgrade__textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.upgrade__done {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: 0;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: #edf7ef;
  color: #1d5e2c;
  font-weight: 600;
}
.upgrade__done .icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: .1rem; color: var(--ok); }
.upgrade__error { margin: 0; color: var(--danger); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .admin-success, .admin-panel { animation: none; }
  .admin-action:hover { transform: none; }
  .admin-save__spinner { animation-duration: 3s; }
}
