/* ═══════════════════════════════════════════════════════════
   Dwello journey UI - Explore → Design → Build → Live
   Wizard steps, choice cards, conversational search, badges,
   sign-up prompts, trackers. Builds on theme.css tokens.
   ═══════════════════════════════════════════════════════════ */

:root {
  --dw-radius: 18px;
  --dw-radius-sm: 12px;
  --dw-shadow: 0 10px 30px rgba(24, 38, 49, .08);
  --dw-shadow-strong: 0 18px 44px rgba(24, 38, 49, .16);
  --dw-success: #15803d;
  --dw-success-soft: #dcfce7;
}

/* ── Verified badge ───────────────────────────────────────── */
.dw-verified-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(21, 128, 61, .94); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .01em;
  padding: 4px 10px; border-radius: 999px; line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.dw-verified-badge i { font-size: .8rem; }
.dw-verified-badge.dw-badge-lg { font-size: .85rem; padding: 6px 14px; }

/* ── Shells ───────────────────────────────────────────────── */
.dw-flow { background: var(--mc-bg-soft); min-height: calc(100vh - var(--mc-header-offset)); padding: 28px 0 110px; }
.dw-flow-card { background: #fff; border-radius: var(--dw-radius); box-shadow: var(--dw-shadow); padding: 28px 22px; max-width: 760px; margin: 0 auto; }
@media (min-width: 768px) { .dw-flow-card { padding: 40px 44px; } }
.dw-flow-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mc-secondary); }
.dw-flow-title { font-size: clamp(1.45rem, 4.5vw, 2rem); font-weight: 800; color: var(--mc-primary); line-height: 1.2; margin: 6px 0 8px; }
.dw-flow-sub { color: var(--mc-text-muted); margin-bottom: 22px; }
.dw-motto { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 800; letter-spacing: .04em; color: var(--mc-primary); }
.dw-motto span:last-child { color: var(--mc-secondary); }

/* ── Progress ─────────────────────────────────────────────── */
.dw-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.dw-progress-label { font-size: .8rem; font-weight: 800; color: var(--mc-primary); white-space: nowrap; letter-spacing: .06em; text-transform: uppercase; }
.dw-progress-track { flex: 1; height: 8px; border-radius: 999px; background: #e6ebef; overflow: hidden; }
.dw-progress-fill { height: 100%; background: linear-gradient(90deg, var(--mc-accent), var(--mc-accent-dk)); border-radius: 999px; transition: width .35s ease; }

/* ── Steps ────────────────────────────────────────────────── */
.dw-step { display: none; animation: dwFade .25s ease; }
.dw-step.is-active { display: block; }
@keyframes dwFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Choice cards (big tap targets) ───────────────────────── */
.dw-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 576px) { .dw-choice-grid.dw-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .dw-choice-grid.dw-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dw-choice-grid.dw-cols-1 { grid-template-columns: 1fr; }
.dw-choice {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 104px; padding: 16px 10px; text-align: center;
  background: #fff; border: 2px solid var(--mc-border); border-radius: var(--dw-radius-sm);
  color: var(--mc-primary); font-weight: 700; font-size: .95rem; line-height: 1.25;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.dw-choice:hover { border-color: var(--mc-accent-dk); box-shadow: var(--dw-shadow); transform: translateY(-2px); }
.dw-choice:focus-visible { outline: 3px solid rgba(var(--mc-accent-rgb), .7); outline-offset: 2px; }
.dw-choice .dw-emoji { font-size: 2rem; line-height: 1; }
.dw-choice small { font-weight: 500; color: var(--mc-text-muted); font-size: .78rem; }
.dw-choice.is-selected, .dw-choice[aria-pressed="true"] { border-color: var(--mc-primary); background: var(--mc-bg-green); box-shadow: 0 0 0 3px rgba(var(--mc-accent-rgb), .45); }
.dw-choice.is-selected::after, .dw-choice[aria-pressed="true"]::after {
  content: "\F26E"; font-family: bootstrap-icons; position: absolute; top: 8px; right: 10px; font-size: 1.05rem; color: var(--dw-success);
}
.dw-choice.dw-choice-row { flex-direction: row; justify-content: flex-start; min-height: 64px; text-align: left; padding: 14px 16px; gap: 12px; }
.dw-choice.dw-choice-row .dw-emoji { font-size: 1.5rem; }

/* ── Chips (multi-select, quick answers) ──────────────────── */
.dw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--mc-border); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: .9rem; color: var(--mc-primary); cursor: pointer; transition: all .15s;
}
.dw-chip:hover { border-color: var(--mc-accent-dk); }
.dw-chip.is-selected, .dw-chip[aria-pressed="true"], .dw-chip-input:checked + .dw-chip { background: var(--mc-primary); border-color: var(--mc-primary); color: #fff; }
.dw-chip-input { position: absolute; opacity: 0; pointer-events: none; }
.dw-chip-input:focus-visible + .dw-chip { outline: 3px solid rgba(var(--mc-accent-rgb), .7); outline-offset: 2px; }

/* ── Form fields ──────────────────────────────────────────── */
.dw-field { margin-bottom: 18px; }
.dw-field > label, .dw-label { display: block; font-weight: 700; color: var(--mc-primary); margin-bottom: 6px; }
.dw-field .form-control, .dw-field .form-select { min-height: 50px; border-radius: var(--dw-radius-sm); border: 1.5px solid var(--mc-border); font-size: 1rem; }
.dw-field textarea.form-control { min-height: 120px; }
.dw-field .form-control:focus, .dw-field .form-select:focus { border-color: var(--mc-primary); box-shadow: 0 0 0 3px rgba(var(--mc-accent-rgb), .35); }
.dw-hint { font-size: .82rem; color: var(--mc-text-muted); margin-top: 4px; }
.dw-error { font-size: .84rem; color: #b42318; margin-top: 4px; font-weight: 600; }
.dw-money { position: relative; }
.dw-money > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--mc-text-muted); }
.dw-money > .form-control { padding-left: 52px; font-weight: 700; font-size: 1.1rem; }
.dw-toggle-row { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.dw-toggle-row input { width: 22px; height: 22px; accent-color: var(--mc-primary); }
.dw-consent-read { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 4px 32px; font-size: .82rem; font-weight: 500; color: var(--mc-primary); text-decoration: underline; }
.dw-consent-read i { font-size: .72rem; }

/* ── Stepper (− 2 +) ──────────────────────────────────────── */
.dw-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--mc-border); border-radius: 999px; overflow: hidden; background: #fff; }
.dw-stepper button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 1.35rem; font-weight: 700; color: var(--mc-primary); }
.dw-stepper button:hover { background: var(--mc-bg-soft); }
.dw-stepper input { width: 52px; border: 0; text-align: center; font-weight: 800; font-size: 1.1rem; color: var(--mc-primary); background: transparent; -moz-appearance: textfield; }
.dw-stepper input::-webkit-outer-spin-button, .dw-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dw-stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef1f4; }
.dw-stepper-row:last-child { border-bottom: 0; }

/* ── Photos ───────────────────────────────────────────────── */
.dw-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 2.5px dashed var(--mc-border); border-radius: var(--dw-radius); padding: 32px 16px; cursor: pointer;
  background: #fbfcfd; color: var(--mc-primary); transition: border-color .15s, background .15s;
}
.dw-dropzone:hover, .dw-dropzone.is-over { border-color: var(--mc-accent-dk); background: var(--mc-bg-green); }
.dw-dropzone i { font-size: 2.4rem; }
.dw-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 576px) { .dw-photo-grid { grid-template-columns: repeat(5, 1fr); } }
.dw-photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e9eef2; }
.dw-photo img { width: 100%; height: 100%; object-fit: cover; }
.dw-photo button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; line-height: 1; }
.dw-photo .dw-cover-tag { position: absolute; left: 6px; bottom: 6px; background: var(--mc-accent); color: var(--mc-primary); font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.dw-tips { background: var(--mc-bg-soft); border-radius: var(--dw-radius-sm); padding: 14px 16px; }
.dw-tips ul { margin: 6px 0 0; padding-left: 20px; }

/* ── Sticky action bar ────────────────────────────────────── */
.dw-actions { display: flex; gap: 10px; margin-top: 26px; }
.dw-actions .btn { min-height: 52px; border-radius: 999px; font-weight: 800; padding-left: 24px; padding-right: 24px; }
.dw-actions .dw-next { flex: 1; }
@media (max-width: 575.98px) {
  .dw-actions.dw-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
}
.btn-dw { background: var(--mc-accent); color: var(--mc-primary); border: 0; font-weight: 800; }
.btn-dw:hover, .btn-dw:focus { background: var(--mc-accent-dk); color: var(--mc-primary); }

/* ── Celebration / confirmation ───────────────────────────── */
.dw-celebrate { text-align: center; }
.dw-celebrate .dw-big-emoji { font-size: 3.6rem; line-height: 1; }
.dw-motto-box { display: inline-block; margin: 18px 0; padding: 14px 22px; border-radius: var(--dw-radius-sm); background: var(--mc-primary); color: #fff; font-weight: 800; letter-spacing: .08em; }
.dw-motto-box span { color: var(--mc-accent); }

/* ── Tracker (project / verification) ─────────────────────── */
.dw-tracker { list-style: none; padding: 0; margin: 0; }
.dw-tracker li { position: relative; display: flex; gap: 14px; padding: 0 0 20px; }
.dw-tracker li::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: #e2e8ee; }
.dw-tracker li:last-child::before { display: none; }
.dw-tracker .dw-dot { flex: 0 0 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: #eef2f5; color: var(--mc-text-muted); z-index: 1; }
.dw-tracker li.is-done .dw-dot { background: var(--dw-success); color: #fff; }
.dw-tracker li.is-current .dw-dot { background: var(--mc-accent); color: var(--mc-primary); box-shadow: 0 0 0 5px rgba(var(--mc-accent-rgb), .3); }
.dw-tracker li.is-done::before { background: var(--dw-success); }
.dw-tracker .dw-track-label { padding-top: 7px; font-weight: 700; color: var(--mc-primary); }
.dw-tracker li:not(.is-done):not(.is-current) .dw-track-label { color: var(--mc-text-muted); font-weight: 600; }
.dw-tracker-inline { display: flex; gap: 6px; }
.dw-tracker-inline span { flex: 1; height: 6px; border-radius: 999px; background: #e2e8ee; }
.dw-tracker-inline span.is-done { background: var(--dw-success); }
.dw-tracker-inline span.is-current { background: var(--mc-accent-dk); }

/* ── Journey cards (home "What are you looking to do?") ───── */
.dw-journey-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .dw-journey-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .dw-journey-grid { grid-template-columns: repeat(4, 1fr); } }
.dw-journey-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px 22px;
  background: #fff; border-radius: var(--dw-radius); box-shadow: var(--dw-shadow); border: 1px solid #edf1f4;
  color: var(--mc-text); text-decoration: none; transition: transform .18s, box-shadow .18s;
}
.dw-journey-card:hover { transform: translateY(-4px); box-shadow: var(--dw-shadow-strong); color: var(--mc-text); }
.dw-journey-card .dw-emoji { font-size: 2.2rem; }
.dw-journey-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--mc-primary); margin: 0; letter-spacing: .02em; }
.dw-journey-card p { color: var(--mc-text-muted); margin: 0; flex: 1; font-size: .93rem; }
.dw-journey-card .dw-cta { font-weight: 800; color: var(--mc-secondary); font-size: .9rem; }

/* ── Cross-link banner ────────────────────────────────────── */
.dw-crosslink { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 24px; border-radius: var(--dw-radius); background: linear-gradient(120deg, var(--mc-primary), #24394a); color: #fff; }
.dw-crosslink h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 2px; color: #fff; }
.dw-crosslink p { margin: 0; color: rgba(255, 255, 255, .78); }

/* ── Search results ───────────────────────────────────────── */
.dw-results-bar { position: sticky; top: var(--mc-header-offset); z-index: 20; background: #fff; border-bottom: 1px solid #eaeef1; padding: 10px 0; }
.dw-summary-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--mc-bg-soft); font-size: .84rem; font-weight: 600; color: var(--mc-primary); }
.dw-card-media { position: relative; height: 210px; overflow: hidden; }
.dw-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .dw-card-media img { transform: scale(1.04); }
.dw-card-media .dw-badge-pos { position: absolute; top: 10px; left: 10px; }
.dw-save-btn { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); display: flex; align-items: center; justify-content: center; color: var(--mc-secondary); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.dw-save-btn i { font-size: 1rem; }
.dw-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--mc-text-muted); }
.dw-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ── Sign-up prompt ───────────────────────────────────────── */
.dw-signup-modal .modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.dw-signup-modal .modal-body { padding: 30px 26px 26px; }
.dw-signup-modal .dw-emoji { font-size: 2.4rem; }
.dw-auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border-radius: 999px; font-weight: 700; margin-bottom: 10px; }
.dw-auth-google { background: #fff; border: 1.5px solid #dadce0; color: #1f1f1f; }
.dw-auth-google:hover { background: #f8f9fa; color: #1f1f1f; }
.dw-auth-google svg { width: 20px; height: 20px; }
.dw-or { display: flex; align-items: center; gap: 10px; color: var(--mc-text-muted); font-size: .8rem; margin: 6px 0 12px; }
.dw-or::before, .dw-or::after { content: ""; flex: 1; height: 1px; background: #e5e9ec; }

/* ── Dashboard tiles ──────────────────────────────────────── */
.dw-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--dw-radius); background: #fff; box-shadow: var(--dw-shadow); text-decoration: none; color: var(--mc-primary); height: 100%; }
.dw-tile:hover { color: var(--mc-primary); box-shadow: var(--dw-shadow-strong); }
.dw-tile .dw-emoji { font-size: 1.8rem; }
.dw-tile strong { display: block; font-size: 1.5rem; line-height: 1; }
.dw-tile small { color: var(--mc-text-muted); font-weight: 600; }

/* ── Owner listing state banners ──────────────────────────── */
.dw-state { border-radius: var(--dw-radius-sm); padding: 12px 14px; font-size: .88rem; }
.dw-state strong { display: block; font-size: .92rem; margin-bottom: 2px; }
.dw-state-warning { background: #fef9c3; color: #713f12; }
.dw-state-danger { background: #fee2e2; color: #7f1d1d; }
.dw-state-info { background: #e0f2fe; color: #0c4a6e; }
.dw-state-primary { background: #eef2ff; color: #1e3a8a; }
.dw-state-success { background: var(--dw-success-soft); color: #14532d; }

/* ── Mega navigation ──────────────────────────────────────── */
.dw-nav-dd .dropdown-menu { border: 0; border-radius: 16px; box-shadow: var(--dw-shadow-strong); padding: 8px; min-width: 230px; }
.dw-nav-dd .dropdown-item { border-radius: 10px; padding: 9px 12px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dw-nav-dd .dropdown-item i { color: var(--mc-secondary); width: 18px; }
.dw-nav-dd .dropdown-header { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* ── SVG icon system (replaces emoji) ─────────────────────── */
.dw-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
.dw-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 14px; transition: background .18s, color .18s, box-shadow .18s, transform .18s;
}
.dw-ico .dw-svg { width: 55%; height: 55%; vertical-align: 0; }
.dw-ico-sm { width: 34px; height: 34px; border-radius: 10px; }
.dw-ico-md { width: 48px; height: 48px; }
.dw-ico-lg { width: 64px; height: 64px; border-radius: 18px; }
.dw-ico-xl { width: 84px; height: 84px; border-radius: 24px; }
.dw-ico-primary { background: rgba(var(--mc-primary-rgb), .07); color: var(--mc-primary); }
.dw-ico-accent  { background: var(--mc-accent); color: var(--mc-primary); box-shadow: 0 6px 16px rgba(var(--mc-accent-rgb), .35); }
.dw-ico-gold    { background: rgba(var(--mc-secondary-rgb), .1); color: var(--mc-secondary); }
.dw-ico-success { background: var(--dw-success-soft); color: var(--dw-success); }
.dw-ico-light   { background: rgba(255, 255, 255, .12); color: var(--mc-accent); }
/* Choice cards: icon tile lights up in brand yellow when chosen / hovered */
.dw-choice:hover .dw-ico-primary { background: rgba(var(--mc-accent-rgb), .35); }
.dw-choice.is-selected .dw-ico, .dw-choice[aria-pressed="true"] .dw-ico { background: var(--mc-accent); color: var(--mc-primary); box-shadow: 0 6px 16px rgba(var(--mc-accent-rgb), .35); }
.dw-journey-card:hover .dw-ico { transform: translateY(-2px); background: var(--mc-accent); color: var(--mc-primary); }
.dw-tile .dw-ico { margin-right: 2px; }
.hero-service-pill .dw-svg { margin-right: 6px; font-size: 1.05em; }
.dw-meta .dw-svg, .dw-summary-chip .dw-svg { font-size: 1.05em; }
.dw-h-ico { display: inline-flex; align-items: center; gap: 10px; }
.dw-h-ico .dw-svg { color: var(--mc-secondary); }

/* ── Navigation: open on hover (desktop pointers), click/keyboard still works ─ */
@media (min-width: 992px) and (hover: hover) {
  .dw-nav-dd { position: relative; }
  .dw-nav-dd > .dropdown-menu {
    display: block; visibility: hidden; opacity: 0; transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
    margin-top: 0; top: 100%;
  }
  /* invisible bridge so the menu doesn't close while the pointer travels to it */
  .dw-nav-dd > .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .dw-nav-dd:hover > .dropdown-menu, .dw-nav-dd:focus-within > .dropdown-menu, .dw-nav-dd > .dropdown-menu.show {
    visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s;
  }
  .dw-nav-dd:hover > .nav-link { color: var(--mc-secondary); }
  .dw-nav-dd > .nav-link.dropdown-toggle::after { transition: transform .16s ease; }
  .dw-nav-dd:hover > .nav-link.dropdown-toggle::after { transform: rotate(180deg); }
}
.dw-nav-dd .dropdown-item .dw-ico { margin-right: 2px; }
.dw-nav-dd .dropdown-item:hover .dw-ico-primary, .dw-nav-dd .dropdown-item:focus .dw-ico-primary { background: var(--mc-accent); }

/* ── Sign-up form (shared by pop-up and /signup) ──────────── */
.dw-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--mc-bg-soft); border-radius: 999px; }
.dw-segment button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; color: var(--mc-text-muted); transition: background .15s, color .15s, box-shadow .15s; }
.dw-segment button.is-active { background: #fff; color: var(--mc-primary); box-shadow: 0 2px 8px rgba(var(--mc-primary-rgb), .12); }
.dw-segment button:focus-visible { outline: 3px solid rgba(var(--mc-accent-rgb), .7); outline-offset: 1px; }
.dw-signup-form .dw-field { margin-bottom: 14px; }
.dw-signup-form .dw-field > label { font-size: .88rem; }
.dw-signup-form .form-control { min-height: 48px; border-radius: 12px; }
.dw-signup-form .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.dw-signup-form .input-group > .btn { border-radius: 0 12px 12px 0; border-color: var(--mc-border); }
.dw-phone-group .input-group-text { border-radius: 12px 0 0 12px; font-weight: 700; color: var(--mc-primary); background: var(--mc-bg-soft); border-color: var(--mc-border); }
.dw-phone-group > .form-control { border-radius: 0 12px 12px 0 !important; }
.dw-signup-form .input-group .invalid-feedback { width: 100%; }
.dw-signup-form .is-invalid ~ .invalid-feedback, .dw-signup-form .input-group .is-invalid ~ .invalid-feedback { display: block; }
.dw-signup-form .invalid-feedback a { font-weight: 700; }
.dw-pw-meter { height: 4px; border-radius: 999px; background: #e6ebef; margin-top: 8px; overflow: hidden; }
.dw-pw-meter span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .2s, background .2s; }
.dw-pw-meter[data-level="1"] span { width: 25%; background: #dc2626; }
.dw-pw-meter[data-level="2"] span { width: 55%; background: var(--mc-accent-dk); }
.dw-pw-meter[data-level="3"] span { width: 80%; background: #65a30d; }
.dw-pw-meter[data-level="4"] span { width: 100%; background: var(--dw-success); }
.dw-signup-modal .modal-body { text-align: center; }
.dw-signup-modal .dw-signup-form { margin-top: 4px; }

/* ── Google personalised button ("Continue as …") ─────────── */
.dw-gsi { margin-bottom: 10px; }
.dw-gsi-slot { display: flex; justify-content: center; min-height: 0; }
.dw-gsi-slot:empty { display: none; }
.dw-gsi.is-gsi [data-gsi-fallback] { display: none; }
.dw-gsi.is-gsi .dw-gsi-slot { min-height: 44px; }

/* ── Complete-your-profile banner ─────────────────────────── */
.dw-profile-banner { background: linear-gradient(90deg, var(--mc-bg-green), #fff); border-bottom: 1px solid rgba(var(--mc-accent-rgb), .45); color: var(--mc-primary); }
.dw-profile-banner strong { margin-right: 6px; }
.dw-profile-banner .btn-link { color: var(--mc-text-muted); }

/* ═══ My Dwello - account dashboard (Booking.com-style) ═══ */
.md-page { background: #f5f5f5; padding: 24px 0 56px; }
.md-card { background: #fff; border: 1px solid #e7e7e7; border-radius: 8px; padding: 20px; }
@media (min-width: 768px) { .md-card { padding: 24px; } }

/* Profile header */
.md-header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }
.md-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--mc-primary); color: #fff; font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; }
.md-avatar img { width: 100%; height: 100%; object-fit: cover; }
.md-identity { flex: 1; min-width: 220px; }
.md-identity h1 { font-size: 1.4rem; margin: 0 0 4px; color: var(--dw-text, #1a1a1a); }
.md-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .875rem; color: var(--dw-text-soft, #595959); }
.md-contact i { margin-right: 6px; color: var(--mc-secondary); }
.md-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.md-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px;
  background: var(--mc-bg-green); border: 1px solid rgba(var(--mc-accent-rgb), .6); border-radius: 8px; font-size: .9rem; }
.md-notice > .dw-svg { color: var(--mc-secondary); font-size: 1.2rem; }

/* Side navigation → swipeable tabs on mobile */
.md-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.md-nav::-webkit-scrollbar { display: none; }
.md-nav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #e7e7e7; color: var(--dw-text, #1a1a1a); text-decoration: none; font-size: .9rem; font-weight: 500; }
.md-nav a .dw-svg, .md-nav a i { color: var(--dw-text-soft, #595959); font-size: 1.05em; }
.md-nav a em { font-style: normal; font-size: .75rem; font-weight: 600; background: #f0f0f0; color: var(--dw-text-soft, #595959); border-radius: 999px; padding: 1px 8px; }
.md-nav a.is-active, .md-nav a:hover { border-color: var(--mc-primary); color: var(--mc-primary); }
.md-nav a.is-active .dw-svg, .md-nav a.is-active i { color: var(--mc-primary); }
.md-nav hr, .md-nav .md-nav-muted { display: none; }
@media (min-width: 992px) {
  .md-nav { position: sticky; top: calc(var(--mc-header-offset) + 16px); flex-direction: column; gap: 0; overflow: visible;
    background: #fff; border: 1px solid #e7e7e7; border-radius: 8px; padding: 8px; }
  .md-nav a { border: 0; border-radius: 6px; padding: 10px 12px; background: transparent; }
  .md-nav a span { flex: 1; }
  .md-nav a:hover { background: #f5f5f5; }
  .md-nav a.is-active { background: rgba(var(--mc-primary-rgb), .06); box-shadow: inset 3px 0 0 var(--mc-primary); }
  .md-nav hr { display: block; margin: 8px 4px; border-color: #e7e7e7; opacity: 1; }
  .md-nav .md-nav-muted { display: inline-flex; color: var(--dw-text-soft, #595959); }
}
#overview, .md-card[id] { scroll-margin-top: calc(var(--mc-header-offset) + 72px); }

/* Overview counters */
.md-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%;
  padding: 16px; background: #fff; border: 1px solid #e7e7e7; border-radius: 8px; text-decoration: none; color: var(--dw-text, #1a1a1a); transition: border-color .15s; }
.md-stat:hover { border-color: #c6c6c6; color: var(--dw-text, #1a1a1a); }
.md-stat .dw-ico { grid-row: span 2; }
.md-stat-label { font-size: .85rem; color: var(--dw-text-soft, #595959); line-height: 1.25; }
.md-stat strong { font-size: 1.35rem; line-height: 1.2; }

/* Section card header */
.md-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.md-card-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.15rem; color: var(--dw-text, #1a1a1a); }
.md-card-head h2 .dw-svg { color: var(--mc-secondary); }
.md-card-head h2 small { font-size: .75rem; font-weight: 600; color: var(--dw-text-soft, #595959); background: #f0f0f0; border-radius: 999px; padding: 2px 8px; }
.md-card-head > a { font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.md-card-head > a:hover { text-decoration: underline; }

/* Row lists */
.md-list { list-style: none; margin: 0; padding: 0; }
.md-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid #efefef; }
.md-list li:first-child { border-top: 0; padding-top: 0; }
.md-list-main { flex: 1; min-width: 200px; }
.md-list-main strong { display: block; font-weight: 600; color: var(--dw-text, #1a1a1a); }
.md-list-main span { display: block; font-size: .85rem; color: var(--dw-text-soft, #595959); margin-top: 2px; }
.md-list-main a { text-decoration: none; }
.md-list-main a:hover { text-decoration: underline; }
.md-list-actions { display: flex; align-items: center; gap: 4px; }
.md-project-track { width: 100%; max-width: 260px; }
@media (min-width: 768px) { .md-project .md-project-track { width: 220px; } }

/* Status pills */
.md-status { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.md-status-info    { background: #e8f1fe; color: #0b5cad; }
.md-status-warning { background: #fff4db; color: #8a5a00; }
.md-status-success { background: #e6f4ea; color: #137333; }
.md-status-danger  { background: #fdecea; color: #b3261e; }
.md-status-muted   { background: #f0f0f0; color: #595959; }

/* Owner panel */
.md-owner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .md-owner-grid { grid-template-columns: repeat(4, 1fr); } }
.md-owner-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid #efefef; border-radius: 8px;
  text-decoration: none; color: var(--dw-text, #1a1a1a); transition: border-color .15s; }
.md-owner-stat:hover { border-color: #c6c6c6; color: var(--dw-text, #1a1a1a); }
.md-owner-stat strong { font-size: 1.5rem; line-height: 1; }

/* Saved plans */
.md-plan { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid #efefef; border-radius: 8px; text-decoration: none; color: var(--dw-text, #1a1a1a); }
.md-plan:hover { border-color: #c6c6c6; color: var(--dw-text, #1a1a1a); }
.md-plan img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.md-plan strong { display: block; font-weight: 600; }
.md-plan small { color: var(--dw-text-soft, #595959); }

/* Empty states */
.md-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 12px; border: 1px dashed #dcdcdc; border-radius: 8px; }
.md-empty p { margin: 0; max-width: 420px; color: var(--dw-text-soft, #595959); font-size: .92rem; }

/* ── Account area: shared layout pieces ─────────────────── */
/* Mobile: the tab strip stays pinned under the header while scrolling */
@media (max-width: 991.98px) {
  .md-aside { position: sticky; top: var(--mc-header-offset); z-index: 20; background: #f5f5f5; padding-top: 8px; padding-bottom: 8px; margin-top: -8px; }
}
.md-page-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; color: var(--dw-text, #1a1a1a); }
.md-page-title .dw-svg, .md-page-title i { color: var(--mc-secondary); }
.md-page-title small { font-size: .75rem; font-weight: 600; color: var(--dw-text-soft, #595959); background: #f0f0f0; border-radius: 999px; padding: 2px 8px; }
.md-page-sub { margin: 4px 0 0; font-size: .9rem; color: var(--dw-text-soft, #595959); }
.md-setting { padding: 20px 0; border-bottom: 1px solid #efefef; }
.md-setting:last-child { border-bottom: 0; }
.md-setting-label { font-weight: 600; margin-bottom: 12px; color: var(--dw-text, #1a1a1a); }
.md-setting .form-control, .md-setting .form-select { border-radius: 8px; min-height: 44px; }
.md-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
.md-facts dt { font-size: .8rem; font-weight: 500; color: var(--dw-text-soft, #595959); }
.md-facts dd { margin: 2px 0 0; font-weight: 600; }

/* ═══ Notifications (bell dropdown + page) ═══ */
.nt-badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  background: #d4111e; color: #fff; font-size: .65rem; font-weight: 700; line-height: 17px; text-align: center; }
.nt-menu { width: 380px; max-width: calc(100vw - 24px); padding: 0; border: 1px solid #e7e7e7; border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.nt-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #efefef; }
.nt-menu-head strong { font-size: .95rem; }
.nt-menu-head .btn-link { font-size: .82rem; font-weight: 500; text-decoration: none; }
.nt-menu-head .btn-link:hover { text-decoration: underline; }
.nt-menu-empty { display: flex; align-items: center; gap: 10px; padding: 20px 16px; color: var(--dw-text-soft, #595959); font-size: .9rem; }
.nt-menu-foot { display: block; padding: 11px 16px; text-align: center; font-size: .88rem; font-weight: 500; border-top: 1px solid #efefef; text-decoration: none; }
.nt-menu-foot:hover { background: #f5f5f5; text-decoration: underline; }

.nt-list { display: flex; flex-direction: column; }
.nt-item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f2f2f2;
  color: var(--dw-text, #1a1a1a); text-decoration: none; transition: background .12s; }
.nt-item:last-child { border-bottom: 0; }
.nt-item:hover { background: #f7f7f7; color: var(--dw-text, #1a1a1a); }
.nt-item.is-unread { background: #f3f8ff; }
.nt-item.is-unread:hover { background: #eaf2fd; }
.nt-item .dw-ico { margin-top: 2px; }
.nt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-title { font-size: .9rem; font-weight: 500; line-height: 1.35; }
.nt-item.is-unread .nt-title { font-weight: 700; }
.nt-text { font-size: .84rem; color: var(--dw-text-soft, #595959); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-item.is-compact .nt-text { -webkit-line-clamp: 1; }
.nt-time { font-size: .76rem; color: #8a8a8a; }
.nt-dot { flex-shrink: 0; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: #0071c2; }

/* Page */
.nt-card { padding-bottom: 12px; }
.nt-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e7e7e7; margin: -4px 0 8px; }
.nt-tabs a { padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--dw-text-soft, #595959);
  font-size: .9rem; font-weight: 500; text-decoration: none; }
.nt-tabs a em { font-style: normal; font-size: .75rem; font-weight: 600; background: #f0f0f0; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.nt-tabs a.is-active { color: var(--mc-primary); border-bottom-color: var(--mc-primary); }
.nt-tabs a.is-active em { background: rgba(var(--mc-primary-rgb), .1); color: var(--mc-primary); }
.nt-day { font-size: .78rem; font-weight: 600; color: var(--dw-text-soft, #595959); padding: 14px 0 6px; }
.nt-card .nt-list { border: 1px solid #efefef; border-radius: 8px; overflow: hidden; }
.nt-card .nt-item { padding: 14px 16px; }

/* ═══ Avatars (photo from website or mobile app, else initials) ═══ */
.dw-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border-radius: 50%;
  background: var(--mc-primary); color: #fff; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.dw-avatar img, .md-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dw-avatar-32 { width: 32px; height: 32px; font-size: .75rem; }
.dw-avatar-40 { width: 40px; height: 40px; font-size: .85rem; }
.dw-mob-avatar-link { display: inline-flex; border-radius: 50%; }
.dw-mob-avatar-link:focus-visible { outline: 3px solid rgba(var(--mc-accent-rgb), .7); outline-offset: 2px; }
.dw-acct-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; min-width: 240px; }
.dw-acct-head strong { display: block; font-size: .9rem; line-height: 1.2; }
.dw-acct-head small { display: block; font-size: .78rem; color: var(--dw-text-soft, #595959); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══ Bell: identical on desktop and mobile ═══ */
.nt-bell { padding: 6px 8px !important; line-height: 1; }
.nt-bell i { font-size: 1.15rem; color: var(--mc-primary); }
/* Mobile: the panel spans the screen under the header instead of hanging off the edge */
@media (max-width: 991.98px) {
  .nt-dropdown-mobile { position: static; }
  .nt-dropdown-mobile .nt-menu { position: fixed !important; top: calc(var(--mc-header-offset) - 4px) !important; left: 12px !important; right: 12px !important;
    width: auto; max-width: none; margin: 0; transform: none !important; max-height: calc(100vh - var(--mc-header-offset) - 24px); overflow-y: auto; }
}
