/* ========== 
   Basissetting
   ========== */

:root {
  --bg-body: #f3f4f6;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-chip: #e5edff;
  --bg-input: #f9fafb;

  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;

  --danger: #dc2626;
  --danger-soft: #fee2e2;

  --radius-card: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 30px 80px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #e5f0ff 0, #f3f4f6 45%, #f9fafb 100%);
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
}

/* ========== 
   Header / layout
   ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.nav-user {
  color: var(--text-soft);
  font-size: 13px;
}

/* Hamburger button */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 999px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: transform .15s ease, opacity .15s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

/* kruisje animatie */

.nav-toggle.nav-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.nav-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.nav-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== 
   Mobile header
   ========== */

@media (max-width: 720px) {
  .site-header {
    padding: 8px 14px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 8px 14px 12px;
    background: #ffffff;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    flex-direction: column;
    gap: 8px;
    display: none;
    z-index: 25;
  }

  .main-nav.nav-open {
    display: flex;
  }
}

/* hoofdcontent */

.main {
  max-width: 1100px;
  margin: 32px auto 40px;
  padding: 0 16px 40px;
}

/* ========== 
   Cards
   ========== */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.card h1,
.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card h2 {
  font-size: 22px;
  letter-spacing: 0.01em;
}

.card h3 {
  font-size: 16px;
  margin-top: 8px;
}

/* Kleine kaarten in analytics etc. */
.card .card {
  box-shadow: none;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

/* ========== 
   Typografie helpers
   ========== */

.small {
  font-size: 13px;
  color: var(--text-muted);
}

p {
  margin: 6px 0 10px;
}

/* ========== 
   Buttons
   ========== */

.btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn:active,
button:active,
input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.btn.btn-secondary,
button.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.btn.btn-secondary:hover,
button.btn-secondary:hover {
  background: #f9fafb;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.2);
}

/* Verwijderen-knop compact */
button.btn-secondary[data-variant="danger"],
.btn.btn-secondary[data-variant="danger"] {
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: 0 0 0 1px #fecaca;
}

button.btn-secondary[data-variant="danger"]:hover,
.btn.btn-secondary[data-variant="danger"]:hover {
  background: #fecaca;
}

/* ========== 
   Formulieren
   ========== */

form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 9px 11px;
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text-main);
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft), 0 0 0 4px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* =============== 
   Badges & alerts
   =============== */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 11px;
  text-transform: lowercase;
  background: var(--bg-chip);
  color: #1d4ed8;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-right: 6px;
  background: #22c55e;
}

/* Status varianten */
.badge.status-draft {
  background: #fee2e2;
  color: #b91c1c;
}
.badge.status-draft::before {
  background: #f97316;
}

.badge.status-published {
  background: #dcfce7;
  color: #166534;
}
.badge.status-published::before {
  background: #22c55e;
}

.badge.status-closed {
  background: #e5e7eb;
  color: #374151;
}
.badge.status-closed::before {
  background: #6b7280;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background: #e5e7eb;
    color: #374151;
}


/* alerts */

.alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 10px;
}

.alert-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ========== 
   Tabellen
   ========== */

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
  background: #fff;
}

table thead tr,
table tr:first-child {
  background: #f9fafb;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

td:last-child {
  white-space: nowrap;
  font-size: 13px;
}

td a {
  color: var(--primary-dark);
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

/* Maak tabellen op kleine schermen horizontaal scrollbaar */
@media (max-width: 720px) {
  .card table {
    width: 100%;
    overflow-x: auto;
  }
}

/* ========== 
   Bestelpagina / public order
   ========== */

.order-header {
  margin-bottom: 16px;
}

.order-header h1 {
  margin-bottom: 4px;
}

.order-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.order-ticket-block {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 10px;
  margin-bottom: 12px;
  background: #f9fafb;
}

/* ========== 
   Misc
   ========== */

a {
  color: var(--primary-dark);
}

a:hover {
  text-decoration: underline;
}

/* Zorg dat inline knoppen (zoals delete) niet de hele pagina breken */
form.inline {
  display: inline;
}

/* ========== 
   Mobile tweaks (zonder header/nav override)
   ========== */

@media (max-width: 720px) {
  .main {
    margin-top: 20px;
    padding: 0 10px 30px;
  }

  .card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .card h2 {
    font-size: 18px;
  }

    .btn,
  button[type="submit"],
  input[type="submit"] {
    width: 100%;
    justify-content: center;
  }


  td:last-child {
    white-space: normal;
  }
}

/* ========== 
   Order hero (publieke eventpagina)
   ========== */

.order-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.order-hero-main {
  flex: 2;
}

.order-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: .01em;
}

.order-hero-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Rechter widget */

.order-hero-meta {
  flex: 1.4;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 10px;
}

.order-meta-item + .order-meta-item {
  border-top: 1px solid rgba(229, 231, 235, 0.7);
  padding-top: 10px;
  margin-top: 4px;
}

.order-divider {
  height: 1px;
  background: rgba(229, 231, 235, 0.9);
  margin: 8px 0 16px;
}

.meta-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  background: #f9fafb;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-soft);
  margin-bottom: 2px;
}

.meta-value {
  font-size: 13px;
  color: var(--text-main);
}

/* Extra styling ticketgegevens */

.order-ticket-block {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 10px;
  margin-bottom: 12px;
  background: #f9fafb;
}

.order-summary {
  margin-top: 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

.order-summary-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.account-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

.account-column {
  flex: 1 1 260px;
}

.account-column h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

@media (max-width: 720px) {
  .account-layout {
    flex-direction: column;
  }
}

.order-trust-copy {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* compact overzicht op accountpagina */
.account-summary {
  margin-bottom: 18px;
}

/* Mobile layout */
@media (max-width: 720px) {
  .order-hero {
    flex-direction: column;
    gap: 14px;
  }

  .order-title {
    font-size: 20px;
  }

  .order-hero-meta {
    width: 100%;
    order: -1;
  }
}

/* ==========  FIELDS PAGE REDESIGN (kan blijven, maar wordt nu vooral door inline CSS aangevuld)  ========== */

/* ... (dit stuk mag blijven zoals het is; heeft geen directe conflicten) */


/* ==========  FIELDS PAGE REDESIGN  ========== */

.fields-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .fields-layout {
    grid-template-columns: 1fr;
  }
}

/* ------- TOOLBOX LEFT ------- */

.field-toolbox {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(20,20,20,0.06);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.toolbox-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.toolbox-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 16px;
}

.toolbox-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toolbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: #f8f9fc;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .16s ease;
}

.toolbox-item:hover {
  background: #e7ecf7;
}

.toolbox-icon {
  font-size: 18px;
}


/* ------- RIGHT EDITOR ------- */

.field-editor {
  padding: 0 10px 30px;
}

.editor-title {
  font-size: 24px;
  margin-bottom: 6px;
}

.editor-sub {
  color: #6b7280;
  margin-bottom: 20px;
}

.editor-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ------- FIELD CARD ------- */

.editor-card {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.drag-handle {
  cursor: grab;
  font-size: 20px;
  color: #9ca3af;
}

.card-icon {
  font-size: 20px;
}

.card-label {
  font-weight: 600;
  flex: 1;
}

.delete-field {
  background: #fee2e2;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.card-body label {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: 500;
}

.card-body input,
.card-body select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.checkbox {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ========== Landing hero & features ========== */

.hero-full {
  margin: 0 calc(-50vw + 50%);
  padding: 72px 0 88px;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 10px 40px rgba(15,23,42,0.25);
}

.hero-full-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero-full-inner h1 {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-full-inner p {
  font-size: 17px;
  color: rgba(249,250,251,0.9);
  margin-bottom: 26px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn {
  font-size: 15px;
  padding-inline: 22px;
  padding-block: 11px;
}

.hero-actions .btn.btn-secondary {
  background: transparent;
  color: #eef2ff;
  box-shadow: 0 0 0 1px rgba(199,210,254,0.85);
}

.hero-actions .btn.btn-secondary:hover {
  background: rgba(199,210,254,0.15);
}

/* Feature cards onder de hero */
.features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  margin-bottom: 40px;
}

.feature-card {
  flex: 1 1 260px;
}

/* Sold-out badge */
.badge-soldout {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 720px) {
  .hero-full {
    padding: 56px 0 64px;
  }
  .hero-full-inner h1 {
    font-size: 30px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ========== Klantenervaring & tickets ========== */

.app-footer {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 16px 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.app-footer strong {
  color: var(--primary);
}

.ticket-download-header {
  margin-bottom: 16px;
}

.ticket-download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
}

.powered-by-inline {
  font-size: 12px;
  color: var(--text-muted);
}

.inline-powered {
  font-size: 12px;
  color: var(--text-muted);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.ticket-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.ticket-event {
  font-weight: 600;
  color: var(--text-main);
}

.ticket-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ticket-type-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-chip);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-strong);
}

.ticket-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-holder .label,
.ticket-meta .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.ticket-holder .value,
.ticket-meta .value {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}

.ticket-qr {
  margin-top: 12px;
  text-align: center;
}

.ticket-card .qr-img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.ticket-footer {
  margin-top: 10px;
  font-size: 11px;
  text-align: right;
  color: var(--text-muted);
}

.ticket-powered {
  font-weight: 500;
}

/* Status pill re-use for klantentabel */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.status-success {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef9c3;
  color: #854d0e;
}

.status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 720px) {
  .ticket-download-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Printlayout voor tickets downloaden */

@media print {
  body {
    background: #ffffff !important;
  }

  header,
  nav,
  .hero,
  .ticket-download-actions,
  .app-footer {
    display: none !important;
  }

  .main {
    padding: 0 !important;
    margin: 0 !important;
  }

  .ticket-card {
    box-shadow: none !important;
    border-radius: 0;
    border: 1px solid #000000;
    page-break-inside: avoid;
  }

  .ticket-grid {
    gap: 8px;
  }
}

/* Event hero image bovenaan */

/* Ticket type + info icoon */
.ticket-type-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-info-btn {
  border: none;
  padding: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: #eef2ff;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Info modal */
.st-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.st-modal {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.45);
}

.st-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.st-modal-title {
  font-size: 16px;
  font-weight: 600;
}

.st-modal-close {
  border: none;
  background: #4c4a4acf;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.st-modal-body {
  font-size: 14px;
  color: var(--text-main);
  white-space: pre-line;
}

/* Per-ticket “accordion” blokken */
.order-ticket-block {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 10px;
  margin-bottom: 12px;
  background: #f9fafb;
}

.ticket-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ticket-row-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.ticket-row-sub {
  color: var(--text-soft);
}

.ticket-row-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Kleine button variant */
.btn-small {
  padding: 6px 10px;
  font-size: 12px;
}

/* ===== Finale hero image styling ===== */

/* Event hero image bovenaan */
.order-hero-image {
    position: relative;
    width: calc(100% + 44px);
    margin: -20px -22px 16px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;

    height: 260px;  /* desktop hoogte */
}

.order-hero-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* geen zwarte randen, altijd passend */
    object-position: top center; /* toont zoveel mogelijk relevante foto */
}

/* MOBILE */
@media (max-width: 720px) {
    .order-hero-image {
        width: calc(100% + 28px);
        margin: -16px -14px 12px;
        border-radius: 14px 14px 0 0;

        height: 200px; /* iets lager dan vorige versie */
    }

    .order-hero-image-img {
        object-position: center top; /* toont meer van bovenkant: perfect */
    }
}

/* Order form input styling */
#order-form input[type="text"],
#order-form input[type="email"],
#order-form input[type="tel"],
#order-form input[type="number"],
#order-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.15s ease;
}

/* Hover */
#order-form input:hover,
#order-form select:hover {
    border-color: #d1d5db;
}

/* Focus */
#order-form input:focus,
#order-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.25);
}

/* Label styling */
#order-form label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #111827;
    font-size: 14px;
}


/* Event afbeelding upload + preview */
.file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
  flex-wrap: wrap;
}

.file-upload-input {
  display: none;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.file-upload-label:hover {
  background: #1d4ed8;
  box-shadow: 0 8px 26px rgba(37,99,235,0.45);
  transform: translateY(-1px);
}

.file-upload-label:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.file-upload-filename {
  font-size: 13px;
  color: #6b7280;
}

/* Kleine, vaste preview */
.event-image-preview {
  width: 100%;
  max-width: 480px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(15,23,42,0.18);
  margin: 8px 0 10px;
}

.event-image-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* maakt alles netjes zelfde hoogte */
}

/* Afbeelding verwijderen toggle */
.image-remove-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  margin-bottom: 14px;
}

.image-remove-toggle:hover {
  border-color: #fecaca;
  background: #fef2f2;
}

.image-remove-toggle input[type="checkbox"] {
  accent-color: #dc2626;
}

/* Mooie checkbox voor 'Voorraad tonen' */
.ticket-stock-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid #d1d5db;
  background: #f9fafb;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  box-shadow: 0 1px 2px rgba(15,23,42,0.12);
}

.ticket-stock-checkbox:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

.ticket-stock-checkbox:active {
  transform: scale(0.95);
}

.ticket-stock-checkbox:checked {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.25);
}

/* Checkmark */
.ticket-stock-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Payout summary styling */

.payout-summary-card {
  margin-bottom: 20px;
  background: #f9fafb;
  border-radius: 18px;
  padding: 18px 20px 16px;
}

.payout-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.payout-summary-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.payout-summary-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.payout-summary-status {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.payout-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 14px;
}

.payout-summary-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.payout-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.payout-stat:last-child {
  border-bottom: none;
}

.payout-stat-label {
  font-size: 13px;
  color: #6b7280;
}

.payout-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.payout-stat-accent .payout-stat-value {
  font-size: 15px;
}

.payout-stat-warning .payout-stat-value {
  color: #b91c1c;
}

.payout-warning-text {
  margin: 4px 0 0;
  font-size: 12px;
  color: #b91c1c;
}

.payout-summary-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
}

.payout-summary-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.payout-summary-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.payout-summary-note input {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .payout-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .payout-summary-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .payout-summary-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .payout-summary-action-form {
    width: 100%;
  }

  .payout-summary-action-form .btn {
    width: 100%;
    justify-content: center;
  }

  .payout-summary-actions form:last-child .btn {
    width: 100%;
    justify-content: center;
  }
}


/* Payout summary styling */

.payout-summary-card {
  margin-bottom: 20px;
  background: #f9fafb;
  border-radius: 18px;
  padding: 18px 20px 16px;
}

.payout-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.payout-summary-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.payout-summary-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.payout-summary-status {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.payout-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 14px;
}

.payout-summary-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.payout-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.payout-stat:last-child {
  border-bottom: none;
}

.payout-stat-label {
  font-size: 13px;
  color: #6b7280;
}

.payout-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.payout-stat-accent .payout-stat-value {
  font-size: 15px;
}

.payout-stat-warning .payout-stat-value {
  color: #b91c1c;
}

.payout-warning-text {
  margin: 4px 0 0;
  font-size: 12px;
  color: #b91c1c;
}

.payout-summary-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
}

.payout-summary-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.payout-summary-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.payout-summary-note input {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .payout-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .payout-summary-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .payout-summary-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .payout-summary-action-form {
    width: 100%;
  }

  .payout-summary-action-form .btn {
    width: 100%;
    justify-content: center;
  }

  .payout-summary-actions form:last-child .btn {
    width: 100%;
    justify-content: center;
  }
}

.topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #4b5563;
  text-decoration: none;
}
.topbar-icon-btn:hover {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #111827;
}

.payout-reminder {
  margin: 12px 0 0;
}
.payout-reminder-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.payout-reminder-actions .btn-small {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .payout-reminder-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

.settings-section h3 {
  margin-bottom: 8px;
}

.input-disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #4b5563;
  text-decoration: none;
}
.nav-icon-btn:hover {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #111827;
}

.payout-reminder {
  margin: 12px 0 0;
}
.payout-reminder-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.payout-reminder-actions .btn-small {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .payout-reminder-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.settings-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d6d9e0;
  background: #fff;
  padding: 6px;
  transition: all 0.2s ease;
}

.nav-icon-btn:hover {
  background: #f5f6f8;
  border-color: #c5c8ce;
}

/* FIX: iOS Safari zoomt niet meer automatisch in op inputs */
input, select, textarea {
    font-size: 16px !important;
}

