/* ============================================================
   WebDealz - Tailwind Design Layer (wd-compat.css)
   Loaded AFTER style.css. Replaces the Bootstrap CSS foundation
   with a modern, Tailwind-flavored component + utility layer so
   every page keeps its layout and gains the new interface.

   Layering order: Tailwind runtime (injected) -> style.css -> this.
   Spacing scale follows the Bootstrap-compatible values the markup
   was built with (0-5 = 0/.25/.5/1/1.5/3rem).
   ============================================================ */

/* ---------- 1. Base restorations (Tailwind preflight neutralizes these) ---------- */
/* Rule: Tailwind's runtime injects its sheet last in <head>, so preflight
   (element selectors) would beat equal-specificity rules. Prefixing with
   `body` gives these base styles higher specificity than preflight while
   still letting class-scoped rules (.wd-hero h1 etc.) win. */
body h1, body .h1 { font-size: 2.5rem; line-height: 1.18; margin: 0 0 .5rem; font-weight: 700; }
body h2, body .h2 { font-size: 2rem;   line-height: 1.22; margin: 0 0 .5rem; font-weight: 700; }
body h3, body .h3 { font-size: 1.75rem; line-height: 1.28; margin: 0 0 .5rem; font-weight: 700; }
body h4, body .h4 { font-size: 1.5rem;  line-height: 1.3;  margin: 0 0 .5rem; font-weight: 700; }
body h5, body .h5 { font-size: 1.25rem; line-height: 1.35; margin: 0 0 .5rem; font-weight: 700; }
body h6, body .h6 { font-size: 1rem;    line-height: 1.4;  margin: 0 0 .5rem; font-weight: 700; }
body p { margin-top: 0; margin-bottom: 1rem; }
body ol, body ul { margin-top: 0; margin-bottom: 1rem; padding-left: 2rem; list-style: disc; }
body ol { list-style: decimal; }
body dl { margin-top: 0; margin-bottom: 1rem; }
body hr { margin: 1rem 0; border: 0; border-top: 1px solid var(--wd-border); opacity: 1; }
body small, body .small { font-size: .85em; font-weight: inherit; }
body code, body kbd, body samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
body mark { padding: .2em .4em; background: #fff1b8; border-radius: 5px; }
body blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--wd-border-strong); color: var(--wd-text); }
body a { color: var(--wd-primary); text-decoration: none; }
body a:hover { color: var(--wd-primary-dark); }
body label { display: inline-block; }
body [type='checkbox'], body [type='radio'] { accent-color: var(--wd-primary); }

/* ---------- Lead / display ---------- */
.lead { font-size: 1.08rem; font-weight: 400; line-height: 1.55; }
.display-5, .display-6 { font-weight: 800; color: var(--wd-heading); letter-spacing: -.02em; }
.display-5 { font-size: 2.6rem; line-height: 1.15; }
.display-6 { font-size: 2.1rem; line-height: 1.2; }

/* ---------- 2. Container / grid ---------- */
.container, .container-fluid { width: 100%; padding-right: .75rem; padding-left: .75rem; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
/* >=992 / >=1200 / >=1400 max-widths are owned by style.css (wider layout) */

.row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; display: flex; flex-wrap: wrap; margin-top: calc(var(--bs-gutter-y) * -1); margin-right: calc(var(--bs-gutter-x) * -.5); margin-left: calc(var(--bs-gutter-x) * -.5); }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); margin-top: var(--bs-gutter-y); }
.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }

/* Column grid 1-12 (base + responsive) */
.col-1  { flex: 0 0 auto; width: 8.33333333%; }
.col-2  { flex: 0 0 auto; width: 16.66666667%; }
.col-3  { flex: 0 0 auto; width: 25%; }
.col-4  { flex: 0 0 auto; width: 33.33333333%; }
.col-5  { flex: 0 0 auto; width: 41.66666667%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-7  { flex: 0 0 auto; width: 58.33333333%; }
.col-8  { flex: 0 0 auto; width: 66.66666667%; }
.col-9  { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
  .col-sm-1 { flex: 0 0 auto; width: 8.33333333%; } .col-sm-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; } .col-sm-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.66666667%; } .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.33333333%; } .col-sm-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; } .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; } .col-sm-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 auto; width: 8.33333333%; } .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; } .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.66666667%; } .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.33333333%; } .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; } .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.66666667%; } .col-md-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 auto; width: 8.33333333%; } .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; } .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; } .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; } .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; } .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; } .col-lg-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 1200px) {
  .col-xl-1 { flex: 0 0 auto; width: 8.33333333%; } .col-xl-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-xl-3 { flex: 0 0 auto; width: 25%; } .col-xl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.66666667%; } .col-xl-6 { flex: 0 0 auto; width: 50%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.33333333%; } .col-xl-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-xl-9 { flex: 0 0 auto; width: 75%; } .col-xl-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-xl-11 { flex: 0 0 auto; width: 91.66666667%; } .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* Gutters */
.g-0 { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.g-1 { --bs-gutter-x: .25rem; --bs-gutter-y: .25rem; }
.g-2 { --bs-gutter-x: .5rem;  --bs-gutter-y: .5rem; }
.g-3 { --bs-gutter-x: 1rem;   --bs-gutter-y: 1rem; }
.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
.g-5 { --bs-gutter-x: 3rem;   --bs-gutter-y: 3rem; }
.gx-3 { --bs-gutter-x: 1rem; }
.gy-3 { --bs-gutter-y: 1rem; }
@media (min-width: 768px) {
  .g-md-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
}
@media (min-width: 992px) {
  .g-lg-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
  .g-lg-5 { --bs-gutter-x: 3rem; --bs-gutter-y: 3rem; }
  .g-lg-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
}
.gap-0 { gap: 0 !important; }
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* ---------- 3. Spacing utilities (Bootstrap scale) ---------- */
.m-0 { margin: 0 !important; } .m-1 { margin: .25rem !important; } .m-2 { margin: .5rem !important; }
.m-3 { margin: 1rem !important; } .m-4 { margin: 1.5rem !important; } .m-5 { margin: 3rem !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .25rem !important; } .mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; } .mt-4 { margin-top: 1.5rem !important; } .mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .25rem !important; } .mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; } .mb-5 { margin-bottom: 3rem !important; }
.ms-0 { margin-left: 0 !important; } .ms-1 { margin-left: .25rem !important; } .ms-2 { margin-left: .5rem !important; }
.ms-3 { margin-left: 1rem !important; } .ms-4 { margin-left: 1.5rem !important; } .ms-5 { margin-left: 3rem !important; }
.me-0 { margin-right: 0 !important; } .me-1 { margin-right: .25rem !important; } .me-2 { margin-right: .5rem !important; }
.me-3 { margin-right: 1rem !important; } .me-4 { margin-right: 1.5rem !important; } .me-5 { margin-right: 3rem !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; } .mx-1 { margin-left: .25rem !important; margin-right: .25rem !important; }
.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; } .mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; } .mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .my-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; } .my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; } .my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }

.p-0 { padding: 0 !important; } .p-1 { padding: .25rem !important; } .p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; } .p-4 { padding: 1.5rem !important; } .p-5 { padding: 3rem !important; }
.pt-0 { padding-top: 0 !important; } .pt-1 { padding-top: .25rem !important; } .pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; } .pt-4 { padding-top: 1.5rem !important; } .pt-5 { padding-top: 3rem !important; }
.pb-0 { padding-bottom: 0 !important; } .pb-1 { padding-bottom: .25rem !important; } .pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; } .pb-4 { padding-bottom: 1.5rem !important; } .pb-5 { padding-bottom: 3rem !important; }
.ps-0 { padding-left: 0 !important; } .ps-1 { padding-left: .25rem !important; } .ps-2 { padding-left: .5rem !important; }
.ps-3 { padding-left: 1rem !important; } .ps-4 { padding-left: 1.5rem !important; } .ps-5 { padding-left: 3rem !important; }
.pe-0 { padding-right: 0 !important; } .pe-1 { padding-right: .25rem !important; } .pe-2 { padding-right: .5rem !important; }
.pe-3 { padding-right: 1rem !important; } .pe-4 { padding-right: 1.5rem !important; } .pe-5 { padding-right: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; } .px-1 { padding-left: .25rem !important; padding-right: .25rem !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; } .px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; } .px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; } .py-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; } .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; } .py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* ---------- 4. Display / flex / sizing ---------- */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }
.d-table-cell { display: table-cell !important; }
.d-lg-none { display: none !important; } .d-md-none { display: none !important; } .d-sm-none { display: none !important; }
.d-lg-block { display: block !important; } .d-md-block { display: block !important; }
.d-lg-flex { display: flex !important; } .d-md-flex { display: flex !important; } .d-sm-flex { display: flex !important; }
.d-lg-table-cell { display: table-cell !important; } .d-md-table-cell { display: table-cell !important; } .d-xl-table-cell { display: table-cell !important; }
@media (min-width: 576px) { .d-sm-none { display: none !important; } .d-sm-block { display: block !important; } .d-sm-flex { display: flex !important; } .d-sm-inline { display: inline !important; } }
@media (min-width: 768px) { .d-md-none { display: none !important; } .d-md-block { display: block !important; } .d-md-flex { display: flex !important; } .d-md-inline-block { display: inline-block !important; } .d-md-table-cell { display: table-cell !important; } }
@media (min-width: 992px) { .d-lg-none { display: none !important; } .d-lg-block { display: block !important; } .d-lg-flex { display: flex !important; } .d-lg-inline-flex { display: inline-flex !important; } .d-lg-table-cell { display: table-cell !important; } }
@media (min-width: 1200px) { .d-xl-table-cell { display: table-cell !important; } .d-xl-flex { display: flex !important; } }

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-baseline { align-items: baseline !important; }
.align-self-start { align-self: flex-start !important; }
.align-self-center { align-self: center !important; }
.align-self-end { align-self: flex-end !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }
.align-middle { vertical-align: middle !important; }
.align-baseline { vertical-align: baseline !important; }
.align-top { vertical-align: top !important; }
.align-bottom { vertical-align: bottom !important; }
.align-text-bottom { vertical-align: text-bottom !important; }

.w-25 { width: 25% !important; } .w-50 { width: 50% !important; } .w-75 { width: 75% !important; }
.w-100 { width: 100% !important; } .w-auto { width: auto !important; }
.h-25 { height: 25% !important; } .h-50 { height: 50% !important; } .h-75 { height: 75% !important; }
.h-100 { height: 100% !important; } .h-auto { height: auto !important; }
.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

.vh-100 { height: 100vh !important; }
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* ---------- 5. Text / font utilities ---------- */
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-decoration-none { text-decoration: none !important; }
.text-primary { color: var(--wd-primary) !important; }
.text-secondary { color: #8a94a6 !important; }
.text-success { color: var(--wd-green) !important; }
.text-info { color: var(--wd-primary) !important; }
.text-dark { color: var(--wd-heading) !important; }
.text-white { color: #fff !important; }
.text-body { color: var(--wd-text) !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-light { font-weight: 300 !important; }
.fst-italic { font-style: italic !important; }
.fst-normal { font-style: normal !important; }
.fs-1 { font-size: 2.5rem !important; } .fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; } .fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.22rem !important; } .fs-6 { font-size: .98rem !important; }

/* ---------- 6. Position / border / bg ---------- */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.sticky-top { position: sticky !important; top: 0; z-index: 1020; }
.top-0 { top: 0 !important; } .bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; } .end-0 { right: 0 !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }

.border { border: 1px solid var(--wd-border) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--wd-border) !important; }
.border-bottom { border-bottom: 1px solid var(--wd-border) !important; }
.border-start { border-left: 1px solid var(--wd-border) !important; }
.border-end { border-right: 1px solid var(--wd-border) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: .25rem !important; }
.rounded-2 { border-radius: .375rem !important; }
.rounded-3 { border-radius: .5rem !important; }
.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 999px !important; }

.bg-white { background-color: #fff !important; }
.bg-light { background-color: var(--wd-bg-soft) !important; }
.bg-transparent { background-color: transparent !important; }
.bg-dark { background-color: var(--wd-navy) !important; }
.bg-secondary { background-color: #8a94a6 !important; }
.bg-success { background-color: var(--wd-green) !important; }
.bg-warning { background-color: var(--wd-yellow) !important; }
.bg-info { background-color: var(--wd-primary) !important; }
.bg-primary { background-color: var(--wd-primary) !important; }

.list-unstyled { padding-left: 0 !important; list-style: none !important; }
.list-inline { padding-left: 0 !important; list-style: none !important; }
.list-inline-item { display: inline-block !important; }
.list-inline-item:not(:last-child) { margin-right: .5rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.float-start { float: left !important; }
.float-end { float: right !important; }
.object-fit-cover { object-fit: cover !important; }
.user-select-none { user-select: none !important; }
.pointer-events-none { pointer-events: none !important; }

/* ---------- 7. Button base ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid transparent;
  font-size: .92rem;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }
.btn-outline-secondary { color: var(--wd-text); border-color: var(--wd-border-strong); background: #fff; }
.btn-outline-secondary:hover { border-color: var(--wd-navy); background: var(--wd-bg-soft); }
.btn-link { background: none; border: 0; color: var(--wd-primary); text-decoration: underline; font-weight: 600; }
.btn-link:hover { color: var(--wd-primary-dark); }

/* ---------- 8. Badge base ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .42em .72em;
  font-size: .75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 999px;
}

/* ---------- 9. Form controls ---------- */
.form-control {
  display: block;
  width: 100%;
  padding: .62rem .82rem;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--wd-heading);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--wd-border-strong);
  border-radius: 10px;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: #9aa6ba; opacity: 1; }
.form-control-sm { padding: .44rem .68rem; font-size: .82rem; border-radius: 8px; }
.form-control-lg { padding: .8rem 1rem; font-size: 1rem; border-radius: 12px; }
textarea.form-control { min-height: 110px; resize: vertical; }

.form-select {
  display: block;
  width: 100%;
  padding: .62rem 2.4rem .62rem .82rem;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--wd-heading);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7a94' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 14px 12px;
  border: 1px solid var(--wd-border-strong);
  border-radius: 10px;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-select-sm { padding: .44rem 1.9rem .44rem .68rem; font-size: .82rem; border-radius: 8px; }

.input-group { display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; position: relative; }
.input-group > .form-control, .input-group > .form-select { position: relative; width: auto; flex: 1 1 auto; min-width: 0; }
.input-group-text {
  display: flex;
  align-items: center;
  padding: .62rem .9rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--wd-text);
  background: var(--wd-bg-soft);
  border: 1px solid var(--wd-border-strong);
  border-radius: 10px;
  white-space: nowrap;
}
.input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.form-check { display: flex; align-items: flex-start; gap: .6rem; min-height: 1.4rem; margin-bottom: .45rem; }
.form-check-input {
  flex: none;
  width: 1.12rem;
  height: 1.12rem;
  margin-top: .16rem;
  appearance: none;
  border: 1.5px solid var(--wd-border-strong);
  border-radius: 5px;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.form-check-input:checked {
  background-color: var(--wd-primary);
  border-color: var(--wd-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 8.5 3.2 3.2L13 4.5'/%3e%3c/svg%3e");
}
.form-check-input:focus { border-color: var(--wd-primary); box-shadow: 0 0 0 .18rem rgba(8,102,245,.18); }
.form-check-label { font-size: .9rem; color: var(--wd-text); cursor: pointer; }

/* ---------- 10. Alerts ---------- */
.alert { position: relative; display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 12px; font-size: .9rem; }
.fade { transition: opacity .16s linear; }
.fade:not(.show) { opacity: 0; }
.alert-dismissible { padding-right: 3.2rem; }
.alert-dismissible .btn-close { position: absolute; top: 50%; right: .8rem; transform: translateY(-50%); }
.alert-danger { color: #b45309; background: var(--wd-orange-soft); border-color: #ffd9bb; }
.alert-success { color: #0c7a4b; background: #e7f7ef; border-color: #cdeeda; }
.alert-warning { color: var(--wd-yellow-dark); background: var(--wd-yellow-soft); border-color: #ffe08a; }
.alert-info { color: var(--wd-primary-dark); background: var(--wd-primary-soft); border-color: #cfe0fc; }
.alert-primary { color: var(--wd-primary-dark); background: var(--wd-primary-soft); border-color: #cfe0fc; }
.alert-light { color: var(--wd-text); background: var(--wd-bg-soft); border-color: var(--wd-border); }
.alert-dark { color: var(--wd-navy); background: #eaf0fa; border-color: #c9d6ec; }
.btn-close {
  box-sizing: content-box;
  width: .9em;
  height: .9em;
  padding: .4em;
  border: 0;
  border-radius: 50%;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7a94'%3e%3cpath d='M.3 1.7 1.7.3 8 6.6 14.3.3l1.4 1.4L9.4 8l6.3 6.3-1.4 1.4L8 9.4 1.7 15.7.3 14.3 6.6 8z'/%3e%3c/svg%3e") center/1em no-repeat;
  cursor: pointer;
  opacity: .65;
  transition: opacity .15s;
}
.btn-close:hover { opacity: 1; }

/* ---------- 11. Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  display: none;
  min-width: 11rem;
  padding: .5rem;
  margin: .35rem 0 0;
  background: #fff;
  border: 1px solid var(--wd-border);
  border-radius: 14px;
  box-shadow: var(--wd-shadow-lg);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { right: 0; left: auto; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .52rem .8rem;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--wd-text);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--wd-bg-soft); color: var(--wd-primary); }
.dropdown-item.active { background: var(--wd-primary-soft); color: var(--wd-primary); font-weight: 600; }
.dropdown-item.disabled { opacity: .5; pointer-events: none; }
.dropdown-divider { height: 1px; margin: .45rem 0; background: var(--wd-border); }
.dropdown-header { padding: .5rem .8rem .3rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wd-muted); }

/* New navbar dropdowns (Tailwind-based) */
.wd-menu { position: absolute; z-index: 50; }
.wd-menu.show { display: block; }
.wd-menu.wd-mega-twe.show { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

/* ---------- 12. Collapse / Accordion ---------- */
/* NOTE: the local Tailwind runtime injects `.collapse { visibility: collapse }`,
   which matches Bootstrap-style collapsibles and hides their content even when
   shown. Re-assert visibility with higher specificity so content is painted. */
.collapse:not(.show) { display: none; }
.collapse.show { display: block; visibility: visible; }
.wd-nav-panel.collapse:not(.show) { display: none; }
.wd-nav-panel.show { display: block; visibility: visible; }
@media (min-width: 1024px) { .wd-nav-panel { display: none !important; } }

.accordion-item { border: 1px solid var(--wd-border); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: .6rem; transition: border-color .18s; }
.accordion-item:hover { border-color: var(--wd-border-strong); }
.accordion-header { margin: 0; }
.accordion-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 0;
  color: var(--wd-heading);
  font-size: .95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.accordion-button::after {
  content: "";
  flex: none;
  width: .8rem;
  height: .8rem;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230866F5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e") center/contain no-repeat;
  transition: transform .22s ease;
}
.accordion-button:not(.collapsed) { color: var(--wd-primary); }
.accordion-button:not(.collapsed)::after { transform: rotate(180deg); }
.accordion-body { padding: .1rem 1.15rem 1.1rem; font-size: .9rem; line-height: 1.65; color: var(--wd-text); }
.accordion-body p:last-child { margin-bottom: 0; }

/* ---------- 13. Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--wd-border); border-radius: var(--wd-radius); box-shadow: var(--wd-shadow-xs); }
.card-header { padding: 1rem 1.2rem; background: #fff; border-bottom: 1px solid var(--wd-border); font-weight: 700; }
.card-body { padding: 1.2rem; flex: 1 1 auto; }
.card-footer { padding: .9rem 1.2rem; background: var(--wd-bg-soft2); border-top: 1px solid var(--wd-border); border-radius: 0 0 var(--wd-radius) var(--wd-radius); }
.card-title { margin: 0 0 .5rem; font-size: 1.05rem; }

/* ---------- 14. Tables (modern, responsive) ---------- */
.table { --wd-table-cell-pad-y: .85rem; --wd-table-cell-pad-x: .95rem; width: 100%; margin-bottom: 1rem; color: var(--wd-text); border-collapse: collapse; }
.table > :not(caption) > * > * { padding: var(--wd-table-cell-pad-y) var(--wd-table-cell-pad-x); vertical-align: middle; border-bottom: 1px solid var(--wd-border); }
.table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--wd-muted); font-weight: 700; border-bottom: 1px solid var(--wd-border); white-space: nowrap; }
.table tbody tr:hover { background: #fafbfe; }
.table > tbody > tr:last-child > * { border-bottom: 0; }
.table-sm { --wd-table-cell-pad-y: .5rem; --wd-table-cell-pad-x: .65rem; font-size: .85rem; }
.table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive > .table { margin-bottom: 0; }

/* ---------- 15. List group ---------- */
.list-group { display: flex; flex-direction: column; padding: 0; margin: 0; border-radius: 12px; list-style: none; }
.list-group-item { position: relative; display: block; padding: .85rem 1.05rem; background: #fff; border: 1px solid var(--wd-border); color: var(--wd-text); }
.list-group-item + .list-group-item { border-top-width: 0; }
.list-group-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.list-group-item:last-child { border-bottom-right-radius: 12px; border-bottom-left-radius: 12px; }
.list-group-item:hover { z-index: 1; }
.list-group-flush > .list-group-item { border-width: 0 0 1px; border-radius: 0; }
.list-group-flush > .list-group-item:last-child { border-bottom: 0; }
.list-group-item-action { width: 100%; text-align: inherit; cursor: pointer; }
.list-group-item-action:hover { background: var(--wd-bg-soft); color: var(--wd-primary); }
.list-group-item.active { background: var(--wd-primary-soft); border-color: var(--wd-primary-soft); color: var(--wd-heading); }

/* ---------- 16. Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 1rem; list-style: none; gap: 0; }
.breadcrumb-item { display: flex; align-items: center; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding: 0 .55rem; color: var(--wd-muted); }

/* ---------- 17. Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: .4rem .7rem;
  border: 1px solid var(--wd-border);
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--wd-text);
  background: #fff;
  text-decoration: none;
  transition: .15s;
}
.page-link:hover { border-color: var(--wd-primary); color: var(--wd-primary); background: var(--wd-primary-soft); }
.page-item.active .page-link { background: var(--wd-primary); border-color: var(--wd-primary); color: #fff; box-shadow: 0 6px 14px rgba(8,102,245,.25); }
.page-item.disabled .page-link { opacity: .5; pointer-events: none; }

/* ---------- 18. Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 1055; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.show { display: flex; }
.modal-dialog { width: 100%; max-width: 520px; max-height: calc(100vh - 2rem); display: flex; }
.modal-content { position: relative; width: 100%; background: #fff; border: 0; border-radius: 16px; box-shadow: var(--wd-shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.modal.fade .modal-dialog { transform: translateY(14px) scale(.98); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.modal.fade.show .modal-dialog { transform: none; opacity: 1; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--wd-border); }
.modal-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--wd-heading); }
.modal-body { padding: 1.3rem; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: .55rem; padding: 1rem 1.3rem; border-top: 1px solid var(--wd-border); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(11, 31, 66, .55); backdrop-filter: blur(2px); }
.modal-backdrop.show { animation: wdFadeIn .18s ease; }
@keyframes wdFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 19. Nav (base) ---------- */
.nav { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.nav-item { margin: 0; }
.nav-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; color: var(--wd-text); text-decoration: none; }
.nav-pills .nav-link { border-radius: 10px; }
.nav-pills .nav-link.active { background: var(--wd-primary); color: #fff; font-weight: 600; }

/* ---------- 20. Misc polished bits ---------- */
figure { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
.img-fluid { max-width: 100%; height: auto; }
.z-1 { z-index: 1 !important; } .z-2 { z-index: 2 !important; } .z-3 { z-index: 3 !important; }
.shadow-none { box-shadow: none !important; }