/* Wedtrail design system — platform pages (landing, auth, dashboard, vendors, admin).
   Couple websites keep their own themes; this file is not loaded there. */

:root {
  --wt-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wt-font-serif: "Playfair Display", Georgia, serif;

  --wt-ink: #1c1f26;
  --wt-ink-2: #3d434d;
  --wt-muted: #6b7280;
  --wt-bg: #faf8f5;
  --wt-surface: #ffffff;
  --wt-surface-2: #f3efe8;
  --wt-border: #e7e1d8;

  --wt-brand: #0f766e;
  --wt-brand-dark: #0b5c56;
  --wt-brand-soft: #e3f2ef;
  --wt-gold: #c9a24d;
  --wt-gold-soft: #f6efdc;
  --wt-rose: #c96b7a;
  --wt-danger: #b42318;
  --wt-success: #1f7a4d;

  --wt-radius: 16px;
  --wt-radius-sm: 10px;
  --wt-shadow: 0 1px 2px rgba(28, 31, 38, .04), 0 8px 24px -12px rgba(28, 31, 38, .18);
  --wt-shadow-lg: 0 24px 60px -24px rgba(28, 31, 38, .35);
  --wt-ring: 0 0 0 4px rgba(15, 118, 110, .18);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--wt-font-sans);
  color: var(--wt-ink);
  background: var(--wt-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .wt-serif { font-family: var(--wt-font-serif); letter-spacing: -.01em; color: var(--wt-ink); }
h1 { font-weight: 600; }
h2 { font-weight: 600; }
a { color: var(--wt-brand); text-decoration: none; }
a:hover { color: var(--wt-brand-dark); }
img { max-width: 100%; }

.wt-container { width: min(1180px, 92vw); margin: 0 auto; }
.wt-container--narrow { width: min(820px, 92vw); margin: 0 auto; }
.wt-section { padding: 88px 0; }
.wt-section--tight { padding: 56px 0; }
.wt-eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wt-brand); font-weight: 600; margin-bottom: 12px;
}
.wt-section__title { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; }
.wt-section__lead { color: var(--wt-muted); font-size: 1.08rem; max-width: 640px; margin: 0; }
.wt-center { text-align: center; }
.wt-center .wt-section__lead { margin: 0 auto; }
.wt-muted { color: var(--wt-muted); }

/* ---------- navigation ---------- */
.wt-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--wt-border);
}
.wt-nav--dark { background: rgba(20, 24, 28, .55); border-bottom-color: rgba(255,255,255,.12); }
.wt-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.wt-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--wt-font-serif); font-size: 1.45rem; font-weight: 700; color: var(--wt-ink); }
.wt-brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--wt-brand), #14b8a6); color: #fff; font-size: 1.05rem; font-family: var(--wt-font-serif);
}
.wt-nav--dark .wt-brand { color: #fff; }
.wt-nav__links { display: flex; align-items: center; gap: 6px; }
.wt-nav__links a { color: var(--wt-ink-2); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.wt-nav__links a:hover { background: var(--wt-surface-2); color: var(--wt-ink); }
.wt-nav--dark .wt-nav__links a { color: rgba(255,255,255,.85); }
.wt-nav--dark .wt-nav__links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.wt-nav__links a.is-active { background: var(--wt-brand-soft); color: var(--wt-brand-dark); }
.wt-nav__links .wt-btn { margin-left: 8px; }
.wt-nav__links a.wt-btn--primary, .wt-nav--dark .wt-nav__links a.wt-btn--primary { color: #fff; background: var(--wt-brand); }
.wt-nav__links a.wt-btn--primary:hover { background: var(--wt-brand-dark); color: #fff; }
.wt-nav__toggle { display: none; background: none; border: 1px solid var(--wt-border); border-radius: 10px; width: 42px; height: 42px; color: var(--wt-ink); }
.wt-nav--dark .wt-nav__toggle { color: #fff; border-color: rgba(255,255,255,.3); }
@media (max-width: 900px) {
  .wt-nav__toggle { display: inline-grid; place-items: center; }
  .wt-nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--wt-border); padding: 12px 4vw 16px; gap: 2px; box-shadow: var(--wt-shadow-lg);
  }
  .wt-nav__links.is-open { display: flex; }
  .wt-nav__links a, .wt-nav--dark .wt-nav__links a { color: var(--wt-ink); padding: 12px; border-radius: 10px; }
  .wt-nav--dark .wt-nav__links a:hover { background: var(--wt-surface-2); color: var(--wt-ink); }
  .wt-nav__links .wt-btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- buttons ---------- */
.wt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.wt-btn:hover { transform: translateY(-1px); }
.wt-btn:focus-visible { outline: none; box-shadow: var(--wt-ring); }
.wt-btn--primary { background: var(--wt-brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 118, 110, .7); }
.wt-btn--primary:hover { background: var(--wt-brand-dark); color: #fff; }
.wt-btn--gold { background: var(--wt-gold); color: #1c1f26; }
.wt-btn--gold:hover { background: #b8913f; color: #1c1f26; }
.wt-btn--ghost { background: transparent; border-color: var(--wt-border); color: var(--wt-ink); }
.wt-btn--ghost:hover { background: var(--wt-surface-2); color: var(--wt-ink); }
.wt-btn--light { background: #fff; color: var(--wt-ink); }
.wt-btn--light:hover { background: #f4f4f4; color: var(--wt-ink); }
.wt-btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.wt-btn--outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.wt-btn--sm { padding: 8px 14px; font-size: .85rem; }
.wt-btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.wt-btn--block { width: 100%; }
.wt-btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- cards ---------- */
.wt-card {
  background: var(--wt-surface); border: 1px solid var(--wt-border); border-radius: var(--wt-radius);
  box-shadow: var(--wt-shadow); padding: 28px;
}
.wt-card--flush { padding: 0; overflow: hidden; }
.wt-card--hover { transition: transform .2s, box-shadow .2s; }
.wt-card--hover:hover { transform: translateY(-3px); box-shadow: var(--wt-shadow-lg); }
.wt-card__title { font-family: var(--wt-font-sans); font-weight: 650; font-size: 1.08rem; margin: 0 0 6px; color: var(--wt-ink); }
.wt-card__text { color: var(--wt-muted); font-size: .95rem; margin: 0; }
.wt-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--wt-brand-soft); color: var(--wt-brand-dark); font-size: 1.15rem; margin-bottom: 16px;
}
.wt-icon--gold { background: var(--wt-gold-soft); color: #8a6a1f; }
.wt-icon--rose { background: #f8e8eb; color: var(--wt-rose); }
.wt-grid { display: grid; gap: 20px; }
.wt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .wt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wt-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wt-grid--2, .wt-grid--3, .wt-grid--4 { grid-template-columns: 1fr; } }

/* ---------- page header (inside app pages) ---------- */
.wt-page-head { padding: 40px 0 8px; }
.wt-page-head h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0 0 6px; }
.wt-page-head p { color: var(--wt-muted); margin: 0; }
.wt-page-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wt-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--wt-surface-2); color: var(--wt-ink-2); }
.wt-badge--brand { background: var(--wt-brand-soft); color: var(--wt-brand-dark); }
.wt-badge--gold { background: var(--wt-gold-soft); color: #8a6a1f; }
.wt-badge--success { background: #e3f4ea; color: var(--wt-success); }
.wt-badge--danger { background: #fbe9e7; color: var(--wt-danger); }

/* ---------- forms (also restyles Bootstrap controls on legacy pages) ---------- */
.form-control, .form-select, input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="url"], input[type="date"], input[type="time"], textarea, select {
  font-family: var(--wt-font-sans);
}
.form-control, .form-select { border-radius: 10px; border-color: var(--wt-border); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--wt-brand); box-shadow: var(--wt-ring); }
.form-label, label { font-weight: 600; font-size: .9rem; color: var(--wt-ink-2); }
.wt-field { margin-bottom: 18px; }
.wt-field label { display: block; margin-bottom: 6px; }
.wt-field input, .wt-field select, .wt-field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--wt-border); border-radius: 10px;
  background: #fff; font-size: .98rem; color: var(--wt-ink); transition: border-color .15s, box-shadow .15s;
}
.wt-field input:focus, .wt-field select:focus, .wt-field textarea:focus { outline: none; border-color: var(--wt-brand); box-shadow: var(--wt-ring); }
.wt-help { font-size: .82rem; color: var(--wt-muted); margin-top: 6px; }

/* Bootstrap overrides for a consistent look on legacy pages */
.btn { border-radius: 999px; font-weight: 600; padding: .55rem 1.1rem; }
.btn-sm { padding: .35rem .8rem; }
.btn-primary { background: var(--wt-brand); border-color: var(--wt-brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--wt-brand-dark); border-color: var(--wt-brand-dark); }
.btn-outline-primary { color: var(--wt-brand); border-color: var(--wt-brand); }
.btn-outline-primary:hover { background: var(--wt-brand); border-color: var(--wt-brand); }
.card { border-radius: var(--wt-radius); border-color: var(--wt-border); box-shadow: var(--wt-shadow); }
.card-header { background: #fff; border-bottom-color: var(--wt-border); font-weight: 600; }
.modal-content { border-radius: var(--wt-radius); border: 1px solid var(--wt-border); box-shadow: var(--wt-shadow-lg); }
.modal-header { border-bottom-color: var(--wt-border); }
.modal-footer { border-top-color: var(--wt-border); }
.table { --bs-table-border-color: var(--wt-border); }
.table thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wt-muted); font-weight: 600; }
.alert { border-radius: 12px; border: 1px solid transparent; }
.form-check-input:checked { background-color: var(--wt-brand); border-color: var(--wt-brand); }
.form-switch .form-check-input:focus { box-shadow: var(--wt-ring); }

/* ---------- flash messages ---------- */
.wt-flash { position: fixed; top: 84px; right: 20px; z-index: 1100; display: grid; gap: 10px; width: min(380px, 92vw); }
.wt-flash .alert { box-shadow: var(--wt-shadow-lg); margin: 0; }

/* ---------- auth ---------- */
.wt-auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1.05fr 1fr; }
.wt-auth__visual {
  position: relative; background: #1c1f26 url("../landing_page/couple3.jpeg") center/cover; color: #fff; padding: 56px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.wt-auth__visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,28,.05) 20%, rgba(20,24,28,.85)); }
.wt-auth__visual > * { position: relative; }
.wt-auth__quote { font-family: var(--wt-font-serif); font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.25; max-width: 520px; margin: 0 0 14px; }
.wt-auth__visual p { color: rgba(255,255,255,.8); max-width: 520px; }
.wt-auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px 6vw; }
.wt-auth__card { width: 100%; max-width: 440px; }
.wt-auth__card h1 { font-size: 2rem; margin: 0 0 6px; }
.wt-auth__card .wt-muted { margin-bottom: 26px; display: block; }
.wt-auth__alt { margin-top: 22px; font-size: .92rem; color: var(--wt-muted); text-align: center; }
.g-recaptcha { margin: 6px 0 18px; }
@media (max-width: 900px) { .wt-auth { grid-template-columns: 1fr; } .wt-auth__visual { min-height: 260px; padding: 32px; } }

/* simple modal used by the login verification step (not Bootstrap) */
.wt-modal { display: none; position: fixed; inset: 0; z-index: 1200; background: rgba(20, 24, 28, .55); backdrop-filter: blur(4px); }
.wt-modal .modal-content { position: relative; margin: 10vh auto 0; width: min(440px, 92vw); padding: 32px; }
.wt-modal .close-button { position: absolute; top: 14px; right: 18px; font-size: 1.5rem; cursor: pointer; color: var(--wt-muted); }
.wt-modal h2 { font-family: var(--wt-font-sans); font-size: 1.3rem; font-weight: 650; margin: 0 0 10px; }
.wt-modal .resend-button { background: transparent; color: var(--wt-brand); border: 0; font-weight: 600; margin-top: 10px; cursor: pointer; }
#countdown { font-size: .88rem; color: var(--wt-muted); margin-bottom: 14px; }

/* ---------- dashboard ---------- */
.wt-hero-strip {
  background: linear-gradient(135deg, #0b5c56 0%, #0f766e 55%, #14a394 100%); color: #fff; border-radius: 22px;
  padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--wt-shadow-lg); margin-top: 32px; position: relative; overflow: hidden;
}
.wt-hero-strip::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.wt-hero-strip h1 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 0 0 6px; }
.wt-hero-strip p { color: rgba(255,255,255,.82); margin: 0; }
.wt-hero-strip .wt-hero-strip__actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.wt-site-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; background: rgba(255,255,255,.14); padding: 8px 14px; border-radius: 999px; color: #fff; font-size: .92rem; }
.wt-site-link:hover { background: rgba(255,255,255,.24); color: #fff; }
.wt-group-title { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 16px; }
.wt-group-title h2 { font-size: 1.35rem; margin: 0; }
.wt-group-title span { color: var(--wt-muted); font-size: .92rem; }
.wt-tile { display: flex; flex-direction: column; padding: 24px; height: 100%; }
.wt-tile .wt-btn { margin-top: auto; align-self: flex-start; }
.wt-tile .wt-card__text { margin-bottom: 18px; }

/* ---------- footer ---------- */
.wt-footer { border-top: 1px solid var(--wt-border); padding: 40px 0; color: var(--wt-muted); font-size: .9rem; margin-top: 60px; background: #fff; }
.wt-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wt-footer a { color: var(--wt-ink-2); margin-left: 18px; }
.wt-footer a:hover { color: var(--wt-brand); }

/* ---------- legacy page wrapper ---------- */
.wt-legacy main, .wt-legacy .container { max-width: 1180px; }
.wt-legacy h1 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }

/* ---------- admin stat tiles (management.html) ---------- */
.wt-stat { background: #fff !important; color: var(--wt-ink) !important; border: 1px solid var(--wt-border); text-align: left; }
.wt-stat .card-body { align-items: flex-start !important; text-align: left !important; padding: 22px 24px; }
.wt-stat i.fa-3x { font-size: 1.2rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--wt-brand-soft); color: var(--wt-brand-dark); margin-bottom: 14px !important; }
.wt-stat .card-title { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wt-muted); font-weight: 600; margin-bottom: 4px; }
.wt-stat .card-text { font-family: var(--wt-font-serif); font-size: 2rem !important; font-weight: 600; color: var(--wt-ink); }
.wt-legacy .card-header.bg-danger, .wt-legacy .card-header.bg-info, .wt-legacy .card-header.bg-primary, .wt-legacy .card-header.bg-success,
.wt-legacy .card-header.bg-warning, .wt-legacy .card-header.bg-dark, .wt-legacy .card-header.bg-secondary { background: #fff !important; color: var(--wt-ink) !important; }

/* =====================================================================
   App pages: couple setup, guests, RSVP, admin. Shared components so
   every management page looks like one product.
   ===================================================================== */
.wt-app { padding: 32px 0 72px; }
.wt-back { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--wt-muted); margin-bottom: 12px; }
.wt-back:hover { color: var(--wt-brand); }
.wt-app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 24px; }
.wt-app-head h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 4px; }
.wt-app-head p { color: var(--wt-muted); margin: 0; max-width: 640px; }
.wt-app-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.wt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.wt-layout--side-left { grid-template-columns: 300px minmax(0, 1fr); }
.wt-layout--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .wt-layout, .wt-layout--side-left, .wt-layout--equal { grid-template-columns: 1fr; } }
.wt-sticky { position: sticky; top: 88px; }
@media (max-width: 1000px) { .wt-sticky { position: static; } }

/* panel = card with a header row */
.wt-panel { background: var(--wt-surface); border: 1px solid var(--wt-border); border-radius: var(--wt-radius); box-shadow: var(--wt-shadow); }
.wt-panel + .wt-panel { margin-top: 24px; }
.wt-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--wt-border); }
.wt-panel__title { font-family: var(--wt-font-sans); font-weight: 650; font-size: 1.02rem; margin: 0; color: var(--wt-ink); display: flex; align-items: center; gap: 10px; }
.wt-panel__title i { color: var(--wt-brand); }
.wt-panel__title .wt-badge { margin-left: 4px; }
.wt-panel__sub { color: var(--wt-muted); font-size: .88rem; margin: 2px 0 0; }
.wt-panel__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wt-panel__body { padding: 24px; }
.wt-panel__body--flush { padding: 0; }
.wt-panel__foot { padding: 14px 24px; border-top: 1px solid var(--wt-border); background: var(--wt-surface-2); border-radius: 0 0 var(--wt-radius) var(--wt-radius); display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .wt-panel__head, .wt-panel__body, .wt-panel__foot { padding-left: 18px; padding-right: 18px; } }

/* long forms: titled sections separated by rules */
.wt-form-section { padding: 28px 0; border-top: 1px solid var(--wt-border); }
.wt-form-section:first-child { border-top: 0; padding-top: 0; }
.wt-form-section:last-child { padding-bottom: 0; }
.wt-form-section__head { margin-bottom: 18px; }
.wt-form-section__head h2 { font-family: var(--wt-font-sans); font-size: 1.1rem; font-weight: 650; margin: 0 0 4px; }
.wt-form-section__head p { color: var(--wt-muted); font-size: .92rem; margin: 0; }
.wt-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; }
.wt-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wt-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .wt-form-grid--2, .wt-form-grid--3 { grid-template-columns: 1fr; } }
.wt-field--span { grid-column: 1 / -1; }
.wt-req { color: var(--wt-danger); }
.wt-field .form-text, .wt-help { font-size: .82rem; color: var(--wt-muted); margin-top: 6px; }

/* tables */
.wt-table-wrap { overflow-x: auto; }
.wt-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.wt-table th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wt-muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--wt-border); background: var(--wt-surface-2); white-space: nowrap; }
.wt-table td { padding: 14px 16px; border-bottom: 1px solid var(--wt-border); vertical-align: middle; color: var(--wt-ink-2); }
.wt-table td:first-child, .wt-table th:first-child { padding-left: 24px; }
.wt-table td:last-child, .wt-table th:last-child { padding-right: 24px; }
.wt-table tbody tr:last-child td { border-bottom: 0; }
.wt-table tbody tr:hover td { background: #fcfaf7; }
.wt-table__primary { font-weight: 600; color: var(--wt-ink); }
.wt-table__muted { color: var(--wt-muted); font-size: .86rem; }
.wt-table__actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.wt-table .wt-table__actions form { display: inline; margin: 0; }
.wt-table td.wt-table__clamp { max-width: 360px; }
.wt-table td.wt-table__clamp > * { margin: 0; }
.wt-table th.wt-right, .wt-table td.wt-right { text-align: right; }
.wt-table th.wt-center, .wt-table td.wt-center { text-align: center; }

/* thumbnails */
.wt-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--wt-border); background: var(--wt-surface-2); display: block; }
.wt-thumb--lg { width: 96px; height: 96px; border-radius: 12px; }
.wt-thumb--empty { display: grid; place-items: center; color: var(--wt-muted); font-size: 1rem; }

/* icon buttons */
.wt-iconbtn { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid var(--wt-border); background: #fff; color: var(--wt-ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; font-size: .88rem; text-decoration: none; padding: 0; line-height: 1; }
.wt-iconbtn:hover { background: var(--wt-surface-2); color: var(--wt-ink); border-color: #d9d2c7; }
.wt-iconbtn--sm { width: 30px; height: 30px; border-radius: 8px; font-size: .78rem; }
.wt-iconbtn--danger:hover { background: #fbe9e7; color: var(--wt-danger); border-color: #f3c9c4; }
.wt-iconbtn--brand { background: var(--wt-brand-soft); color: var(--wt-brand-dark); border-color: transparent; }
.wt-iconbtn--brand:hover { background: var(--wt-brand); color: #fff; border-color: transparent; }
.wt-iconbtn[disabled], .wt-iconbtn.is-disabled { opacity: .4; cursor: default; pointer-events: none; }

/* text/danger button variants */
.wt-btn--danger { background: var(--wt-danger); color: #fff; }
.wt-btn--danger:hover { background: #8f1c13; color: #fff; }
.wt-btn--danger-ghost { background: transparent; border-color: #f3c9c4; color: var(--wt-danger); }
.wt-btn--danger-ghost:hover { background: #fbe9e7; color: var(--wt-danger); }
.wt-btn--soft { background: var(--wt-brand-soft); color: var(--wt-brand-dark); }
.wt-btn--soft:hover { background: #d3ebe6; color: var(--wt-brand-dark); }
.wt-btn--link { background: transparent; color: var(--wt-brand); padding-left: 6px; padding-right: 6px; }
.wt-btn--link:hover { color: var(--wt-brand-dark); transform: none; }
.wt-btn .spinner-border { width: 1em; height: 1em; border-width: .15em; }

/* empty states */
.wt-empty { text-align: center; padding: 48px 24px; color: var(--wt-muted); }
.wt-empty i { font-size: 1.4rem; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--wt-brand-soft); color: var(--wt-brand-dark); margin: 0 auto 14px; }
.wt-empty h3 { font-family: var(--wt-font-sans); font-size: 1.05rem; font-weight: 650; color: var(--wt-ink); margin: 0 0 6px; }
.wt-empty p { margin: 0 0 16px; font-size: .92rem; max-width: 420px; margin-left: auto; margin-right: auto; }
.wt-empty--sm { padding: 28px 16px; }
.wt-empty--sm i { width: 44px; height: 44px; font-size: 1.1rem; }

/* rich-text editors (Quill 1.x and 2.x): wrap toolbar + editor in .wt-editor */
.wt-editor .ql-toolbar.ql-snow { border: 1px solid var(--wt-border); border-radius: 10px 10px 0 0; background: var(--wt-surface-2); font-family: var(--wt-font-sans); padding: 8px 10px; }
.wt-editor .ql-container.ql-snow { border: 1px solid var(--wt-border); border-top: 0; border-radius: 0 0 10px 10px; font-family: var(--wt-font-sans); font-size: .98rem; background: #fff; height: auto; }
.wt-editor .ql-editor { min-height: 160px; line-height: 1.6; padding: 14px 16px; color: var(--wt-ink); }
.wt-editor--tall .ql-editor { min-height: 240px; }
.wt-editor--short .ql-editor { min-height: 110px; }
.wt-editor .ql-editor.ql-blank::before { color: var(--wt-muted); font-style: normal; left: 16px; }
.wt-editor:focus-within .ql-container.ql-snow, .wt-editor:focus-within .ql-toolbar.ql-snow { border-color: var(--wt-brand); }
.wt-editor:focus-within .ql-container.ql-snow { box-shadow: var(--wt-ring); }
.wt-editor .ql-snow .ql-picker-label { color: var(--wt-ink-2); }
.wt-editor .ql-snow .ql-stroke { stroke: var(--wt-ink-2); }
.wt-editor .ql-snow .ql-fill { fill: var(--wt-ink-2); }
.wt-editor .ql-snow.ql-toolbar button:hover .ql-stroke, .wt-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--wt-brand); }
.wt-editor .ql-snow.ql-toolbar button:hover .ql-fill, .wt-editor .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--wt-brand); }

/* file inputs: <label class="wt-file"><input type=file> <span class="wt-file__icon"><i></i></span><span class="wt-file__text"><strong>Choose a photo</strong><span>JPG or PNG, up to 10 MB</span></span></label> */
.wt-file { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed #d4cdc2; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; font-weight: 400; }
.wt-file:hover, .wt-file.is-drag { border-color: var(--wt-brand); background: var(--wt-brand-soft); }
.wt-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.wt-file__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--wt-brand-soft); color: var(--wt-brand-dark); flex-shrink: 0; }
.wt-file__text { min-width: 0; }
.wt-file__text strong { display: block; font-size: .92rem; color: var(--wt-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-file__text span { font-size: .82rem; color: var(--wt-muted); }
.wt-file.has-file { border-style: solid; border-color: var(--wt-brand); }
.wt-file.has-file .wt-file__icon { background: var(--wt-brand); color: #fff; }

/* image previews with a remove button */
.wt-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.wt-thumbs__item { position: relative; width: 120px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--wt-border); background: var(--wt-surface-2); }
.wt-thumbs__item--wide { width: 200px; aspect-ratio: 3 / 2; }
.wt-thumbs__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-thumbs__remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(28, 31, 38, .72); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: .72rem; transition: background .15s; }
.wt-thumbs__remove:hover { background: var(--wt-danger); }
.wt-thumbs__remove[disabled] { display: none; }
.wt-thumbs__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-size: .72rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); }

/* pill checkboxes, e.g. picking events */
.wt-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.wt-choice { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid var(--wt-border); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; font-size: .92rem; color: var(--wt-ink-2); transition: border-color .15s, background .15s, color .15s; margin: 0; }
.wt-choice input { accent-color: var(--wt-brand); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.wt-choice:hover { border-color: #cfc7bb; }
.wt-choice:has(input:checked) { border-color: var(--wt-brand); background: var(--wt-brand-soft); color: var(--wt-brand-dark); }
.wt-choice small { color: var(--wt-muted); font-weight: 400; }
.wt-choice:has(input:checked) small { color: var(--wt-brand-dark); opacity: .8; }
.wt-choices--stack { flex-direction: column; align-items: stretch; }
.wt-choices--stack .wt-choice { border-radius: 12px; }

/* sticky save bar at the bottom of long forms */
.wt-save-bar { position: sticky; bottom: 16px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-top: 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--wt-border); border-radius: 14px; box-shadow: var(--wt-shadow-lg); }
.wt-save-bar span { color: var(--wt-muted); font-size: .9rem; }
.wt-save-bar__actions { display: flex; gap: 10px; margin-left: auto; }

/* simple item lists with trailing actions */
.wt-list { list-style: none; margin: 0; padding: 0; }
.wt-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--wt-border); }
.wt-list li:last-child { border-bottom: 0; }
.wt-list__main { min-width: 0; }
.wt-list__title { font-weight: 600; color: var(--wt-ink); margin: 0; }
.wt-list__meta { color: var(--wt-muted); font-size: .86rem; margin: 2px 0 0; }
.wt-list__actions { display: flex; gap: 6px; flex-shrink: 0; }

/* key/value definition lists */
.wt-kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 16px; font-size: .93rem; margin: 0; }
.wt-kv dt { color: var(--wt-muted); font-weight: 600; }
.wt-kv dd { margin: 0; color: var(--wt-ink); }
@media (max-width: 560px) { .wt-kv { grid-template-columns: 1fr; gap: 2px 0; } .wt-kv dd { margin-bottom: 10px; } }

/* master/detail (guest list, staff couples): a list on the left, details on the right */
.wt-master { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 60vh; }
.wt-master__side { border-right: 1px solid var(--wt-border); padding: 16px; background: #fcfaf7; border-radius: var(--wt-radius) 0 0 var(--wt-radius); }
.wt-master__list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 70vh; overflow-y: auto; }
.wt-master__list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; color: var(--wt-ink-2); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wt-master__list li:hover { background: var(--wt-surface-2); color: var(--wt-ink); }
.wt-master__list li.active, .wt-master__list li.is-active { background: var(--wt-brand-soft); color: var(--wt-brand-dark); }
.wt-master__main { padding: 24px; min-width: 0; }
@media (max-width: 900px) { .wt-master { grid-template-columns: 1fr; } .wt-master__side { border-right: 0; border-bottom: 1px solid var(--wt-border); border-radius: var(--wt-radius) var(--wt-radius) 0 0; } .wt-master__list { max-height: 260px; } }
.wt-search { position: relative; }
.wt-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--wt-muted); font-size: .85rem; pointer-events: none; }
.wt-search input { width: 100%; box-sizing: border-box; padding: 11px 14px 11px 38px; border: 1px solid var(--wt-border); border-radius: 10px; background: #fff; font-size: .95rem; }
.wt-search input:focus { outline: none; border-color: var(--wt-brand); box-shadow: var(--wt-ring); }

/* stat row (counts) */
.wt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wt-stat-tile { background: var(--wt-surface-2); border-radius: 12px; padding: 14px 16px; }
.wt-stat-tile__label { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wt-muted); font-weight: 600; }
.wt-stat-tile__value { font-family: var(--wt-font-serif); font-size: 1.7rem; font-weight: 600; color: var(--wt-ink); line-height: 1.2; }

/* inline notice */
.wt-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--wt-brand-soft); color: var(--wt-brand-dark); font-size: .92rem; }
.wt-note i { margin-top: 3px; }
.wt-note--gold { background: var(--wt-gold-soft); color: #8a6a1f; }
.wt-note--danger { background: #fbe9e7; color: var(--wt-danger); }

/* ---------- third-party widgets ---------- */
.flatpickr-calendar { font-family: var(--wt-font-sans); border-radius: 14px; box-shadow: var(--wt-shadow-lg); border: 1px solid var(--wt-border); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--wt-brand); border-color: var(--wt-brand); }
.flatpickr-day.today { border-color: var(--wt-brand); }
.flatpickr-day.today:hover { background: var(--wt-brand-soft); color: var(--wt-ink); }
.flatpickr-months .flatpickr-month, .flatpickr-current-month, .flatpickr-weekdays, span.flatpickr-weekday { background: transparent; color: var(--wt-ink); fill: var(--wt-ink); }
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus { background: var(--wt-surface-2); }

.select2-container { width: 100% !important; font-family: var(--wt-font-sans); }
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple { border: 1px solid var(--wt-border); border-radius: 10px; min-height: 46px; background: #fff; }
.select2-container--default .select2-selection--single { height: 46px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; color: var(--wt-ink); padding-left: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.select2-container--default .select2-selection--multiple { padding: 4px 8px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--wt-brand-soft); border: 0; color: var(--wt-brand-dark); border-radius: 999px; padding: 3px 10px 3px 8px; margin: 4px 4px 0 0; font-size: .88rem; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--wt-brand-dark); margin-right: 4px; border: 0; background: transparent; }
.select2-container--default .select2-search--inline .select2-search__field { margin-top: 6px; font-family: var(--wt-font-sans); }
.select2-container--default.select2-container--focus .select2-selection--multiple, .select2-container--default.select2-container--open .select2-selection--single, .select2-container--default.select2-container--open .select2-selection--multiple { border-color: var(--wt-brand); box-shadow: var(--wt-ring); }
.select2-dropdown { border: 1px solid var(--wt-border); border-radius: 12px; box-shadow: var(--wt-shadow-lg); overflow: hidden; font-family: var(--wt-font-sans); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--wt-brand); color: #fff; }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--wt-border); border-radius: 8px; padding: 8px 10px; }

/* ---------- more Bootstrap overrides ---------- */
.btn-secondary { background: var(--wt-surface-2); border-color: var(--wt-border); color: var(--wt-ink); }
.btn-secondary:hover, .btn-secondary:focus { background: #e9e3da; border-color: #d9d2c7; color: var(--wt-ink); }
.btn-light { background: #fff; border-color: var(--wt-border); color: var(--wt-ink); }
.btn-light:hover { background: var(--wt-surface-2); border-color: var(--wt-border); color: var(--wt-ink); }
.btn-success { background: var(--wt-success); border-color: var(--wt-success); }
.btn-success:hover, .btn-success:focus { background: #18613d; border-color: #18613d; }
.btn-danger { background: var(--wt-danger); border-color: var(--wt-danger); }
.btn-danger:hover, .btn-danger:focus { background: #8f1c13; border-color: #8f1c13; }
.btn-outline-danger { color: var(--wt-danger); border-color: #f3c9c4; }
.btn-outline-danger:hover { background: #fbe9e7; color: var(--wt-danger); border-color: #f3c9c4; }
.btn-info { background: var(--wt-brand-soft); border-color: var(--wt-brand-soft); color: var(--wt-brand-dark); }
.btn-info:hover, .btn-info:focus { background: #d3ebe6; border-color: #d3ebe6; color: var(--wt-brand-dark); }
.btn-warning { background: var(--wt-gold-soft); border-color: var(--wt-gold-soft); color: #8a6a1f; }
.btn-warning:hover, .btn-warning:focus { background: #efe3c2; border-color: #efe3c2; color: #8a6a1f; }
.btn-outline-secondary { color: var(--wt-ink-2); border-color: var(--wt-border); }
.btn-outline-secondary:hover { background: var(--wt-surface-2); color: var(--wt-ink); border-color: #d9d2c7; }
.btn-link { color: var(--wt-brand); text-decoration: none; }
.form-control[type="file"] { padding: .45rem .85rem; }
.form-control::file-selector-button { border-radius: 8px; background: var(--wt-surface-2); border: 0; padding: 6px 12px; margin-right: 12px; font-weight: 600; color: var(--wt-ink-2); }
.form-check-input { border-color: #c9c2b7; width: 1.1em; height: 1.1em; margin-top: .2em; }
.form-check-input:focus { border-color: var(--wt-brand); box-shadow: var(--wt-ring); }
.form-text { color: var(--wt-muted); }
.modal-header { padding: 18px 24px; }
.modal-header .modal-title { font-family: var(--wt-font-sans); font-weight: 650; font-size: 1.05rem; }
.modal-body { padding: 24px; }
.modal-footer { padding: 14px 24px; background: var(--wt-surface-2); border-radius: 0 0 var(--wt-radius) var(--wt-radius); }
.alert-success { background: #e3f4ea; color: var(--wt-success); border-color: #cfe9d9; }
.alert-danger { background: #fbe9e7; color: var(--wt-danger); border-color: #f3c9c4; }
.alert-info { background: var(--wt-brand-soft); color: var(--wt-brand-dark); border-color: #cfe5e0; }
.alert-warning { background: var(--wt-gold-soft); color: #8a6a1f; border-color: #eadcb5; }
.list-group-item { border-color: var(--wt-border); }
.table thead.table-dark th, .table thead.table-primary th, .table-dark { --bs-table-bg: var(--wt-surface-2); --bs-table-color: var(--wt-muted); --bs-table-border-color: var(--wt-border); color: var(--wt-muted); }
.badge { font-weight: 600; border-radius: 999px; padding: .35em .7em; }
.badge.bg-secondary { background: var(--wt-surface-2) !important; color: var(--wt-ink-2); }
.badge.bg-success { background: #e3f4ea !important; color: var(--wt-success); }
.badge.bg-danger { background: #fbe9e7 !important; color: var(--wt-danger); }
.badge.bg-warning { background: var(--wt-gold-soft) !important; color: #8a6a1f; }
.badge.bg-info, .badge.bg-primary { background: var(--wt-brand-soft) !important; color: var(--wt-brand-dark); }

/* ---------- error pages ---------- */
.wt-error { padding-top: 56px; }
.wt-error .wt-empty { padding: 56px 32px; }
.wt-error__code { display: block; font-family: var(--wt-font-serif); font-size: 3rem; line-height: 1; color: var(--wt-border); margin-bottom: 8px; font-weight: 600; }
