/* =====================================================================
   Consertix — identidade visual (sobre Bootstrap 5)
   ===================================================================== */
:root {
  --cx-primary: #0B3D4F;
  --cx-primary-2: #0E5E6F;
  --cx-primary-50: #E7F1F3;
  --cx-accent: #16A34A;
  --cx-accent-600: #12873D;
  --cx-accent-50: #E8F7EE;
  --cx-ink: #0F1E2E;
  --cx-muted: #5B6B7A;
  --cx-line: #E3E8ED;
  --cx-bg: #F4F6F8;
  --cx-card: #FFFFFF;
  --cx-warning: #EA7A0B;
  --cx-warning-50: #FFF3E6;
  --cx-danger: #DC2626;
  --cx-danger-50: #FDECEC;
  --cx-radius: 16px;
  --cx-radius-sm: 12px;
  --cx-shadow: 0 1px 2px rgba(15, 30, 46, .04), 0 4px 16px rgba(15, 30, 46, .06);
  --cx-shadow-lg: 0 8px 32px rgba(15, 30, 46, .10);
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--cx-ink);
  --bs-body-bg: var(--cx-bg);
  --bs-primary: var(--cx-primary);
  --bs-primary-rgb: 11, 61, 79;
  --bs-success: var(--cx-accent);
  --bs-success-rgb: 22, 163, 74;
  --bs-link-color: var(--cx-primary-2);
  --bs-link-hover-color: var(--cx-primary);
  --bs-border-color: var(--cx-line);
}

html { -webkit-text-size-adjust: 100%; }
body { font-size: 15.5px; line-height: 1.55; background: var(--cx-bg); color: var(--cx-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; letter-spacing: -0.02em; color: var(--cx-ink); }
.display-hero { font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.text-muted, .cx-muted { color: var(--cx-muted) !important; }
.small-caps { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--cx-muted); }
a { text-decoration: none; }
.bg-cx { background: var(--cx-bg); }
.bg-primary-cx { background: var(--cx-primary) !important; color: #fff; }
.text-primary-cx { color: var(--cx-primary) !important; }
.text-accent { color: var(--cx-accent) !important; }

/* ------------------------------------------------ Brand / logo */
.cx-logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--cx-primary); }
.cx-logo-img { width: 36px; height: 36px; border-radius: 10px; }
.cx-logo-lg .cx-logo-img { width: 64px; height: 64px; border-radius: 18px; }
.cx-logo-lg { font-size: 2rem; gap: .7rem; }
.cx-logo { color: #0F172A; font-family: 'Poppins', 'Inter', system-ui, sans-serif; }
.cx-logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--cx-primary); color: #fff; display: grid; place-items: center; position: relative; }
.cx-logo-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--cx-accent); border: 2px solid #fff; }
.cx-logo-light { color: #fff; }
.cx-logo-light .cx-logo-mark { background: #fff; color: var(--cx-primary); }
.cx-logo-light .cx-logo-mark::after { border-color: var(--cx-primary); }

/* ------------------------------------------------ Buttons */
.btn { border-radius: 12px; font-weight: 600; padding: .7rem 1.15rem; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-sm { min-height: 36px; padding: .4rem .8rem; border-radius: 10px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: .85rem 1.5rem; font-size: 1.05rem; border-radius: 14px; }
.btn-primary { --bs-btn-bg: var(--cx-primary); --bs-btn-border-color: var(--cx-primary); --bs-btn-hover-bg: #082f3d; --bs-btn-hover-border-color: #082f3d; --bs-btn-active-bg: #072835; --bs-btn-disabled-bg: var(--cx-primary); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--cx-accent); --bs-btn-border-color: var(--cx-accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--cx-accent-600); --bs-btn-hover-border-color: var(--cx-accent-600); --bs-btn-active-bg: var(--cx-accent-600); --bs-btn-active-color: #fff; }
.btn-outline-primary { --bs-btn-color: var(--cx-primary); --bs-btn-border-color: #C9D6DC; --bs-btn-hover-bg: var(--cx-primary-50); --bs-btn-hover-color: var(--cx-primary); --bs-btn-hover-border-color: var(--cx-primary-2); --bs-btn-active-bg: var(--cx-primary-50); --bs-btn-active-color: var(--cx-primary); }
.btn-soft { background: var(--cx-primary-50); color: var(--cx-primary); border: 0; }
.btn-soft:hover { background: #d8e8ec; color: var(--cx-primary); }
.btn-white { background: #fff; color: var(--cx-primary); border: 0; }
.btn-white:hover { background: #eef4f6; color: var(--cx-primary); }
.btn-urgent { background: var(--cx-warning); color: #fff; border: 0; }
.btn-urgent:hover { background: #cf6a05; color: #fff; }

/* ------------------------------------------------ Cards */
.cx-card { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); }
.cx-card-body { padding: 1.15rem; }
@media (min-width: 768px) { .cx-card-body { padding: 1.5rem; } }
.cx-card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.cx-card-hover:hover { transform: translateY(-2px); box-shadow: var(--cx-shadow-lg); }
.cx-section { padding: 3.5rem 0; }
@media (min-width: 992px) { .cx-section { padding: 5rem 0; } }
.cx-section-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .35rem; }

/* ------------------------------------------------ Forms */
.form-control, .form-select { border-radius: 12px; min-height: 50px; border-color: #D3DCE3; font-size: 1rem; padding: .7rem .95rem; }
textarea.form-control { min-height: 120px; }
.form-control:focus, .form-select:focus { border-color: var(--cx-primary-2); box-shadow: 0 0 0 .2rem rgba(14, 94, 111, .15); }
.form-label { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.form-text { color: var(--cx-muted); }
.form-check-input:checked { background-color: var(--cx-accent); border-color: var(--cx-accent); }
.form-switch .form-check-input { width: 3em; height: 1.6em; }
.form-switch-lg .form-check-input { width: 3.4em; height: 1.85em; cursor: pointer; }

/* Option tiles (radio/checkbox as big buttons) */
.cx-option { position: relative; display: block; cursor: pointer; }
.cx-option input { position: absolute; opacity: 0; pointer-events: none; }
.cx-option .cx-option-body { border: 1.5px solid var(--cx-line); background: #fff; border-radius: 14px; padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem; min-height: 56px; transition: all .12s; }
.cx-option input:checked + .cx-option-body { border-color: var(--cx-primary-2); background: var(--cx-primary-50); box-shadow: 0 0 0 3px rgba(14, 94, 111, .10); }
.cx-option input:focus-visible + .cx-option-body { outline: 2px solid var(--cx-primary-2); }
.cx-option .cx-option-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--cx-primary-50); color: var(--cx-primary); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }

/* ------------------------------------------------ Public header & hero */
.cx-navbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--cx-line); }
.cx-navbar .nav-link { font-weight: 500; color: var(--cx-ink); padding: .5rem .9rem !important; }
.cx-navbar .nav-link:hover, .cx-navbar .nav-link.active { color: var(--cx-primary-2); }
.cx-hero { background: linear-gradient(180deg, #fff 0%, var(--cx-bg) 100%); padding: 2.5rem 0 3rem; overflow: hidden; }
@media (min-width: 992px) { .cx-hero { padding: 4.5rem 0 5rem; } }
.cx-hero-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--cx-shadow-lg); aspect-ratio: 4/5; background: var(--cx-primary-50); position: relative; }
.cx-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.cx-hero-float { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--cx-shadow-lg); padding: .7rem .9rem; font-size: .85rem; display: flex; align-items: center; gap: .6rem; }
.cx-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: var(--cx-accent-50); color: var(--cx-accent-600); font-weight: 600; font-size: .82rem; }

/* Search box */
.cx-search { background: #fff; border-radius: 20px; box-shadow: var(--cx-shadow-lg); padding: .6rem; border: 1px solid var(--cx-line); }
.cx-search .form-control, .cx-search .form-select { border: 0; min-height: 54px; background: transparent; }
.cx-search .cx-search-field { display: flex; align-items: center; gap: .25rem; padding-left: .75rem; border-radius: 14px; background: var(--cx-bg); }
.cx-search .cx-search-field i { color: var(--cx-muted); font-size: 1.1rem; }
.cx-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--cx-line); font-size: .87rem; color: var(--cx-ink); font-weight: 500; white-space: nowrap; }
.cx-chip:hover, .cx-chip.active { border-color: var(--cx-primary-2); color: var(--cx-primary); background: var(--cx-primary-50); }
.cx-scroll-x { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cx-scroll-x::-webkit-scrollbar { display: none; }

/* Category tile */
.cx-cat { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1rem; height: 100%; color: var(--cx-ink); }
.cx-cat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cx-primary-50); color: var(--cx-primary); font-size: 1.4rem; }
.cx-cat:hover .cx-cat-icon { background: var(--cx-primary); color: #fff; }
.cx-cat-name { font-weight: 650; font-size: .97rem; line-height: 1.25; }

/* Steps */
.cx-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--cx-primary); color: #fff; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.cx-step-num.accent { background: var(--cx-accent); }

/* ------------------------------------------------ Avatars & badges */
.cx-avatar { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--cx-primary-50); flex-shrink: 0; }
.cx-avatar-sm { width: 40px; height: 40px; border-radius: 12px; }
.cx-avatar-xs { width: 32px; height: 32px; border-radius: 10px; }
.cx-avatar-lg { width: 96px; height: 96px; border-radius: 24px; }
.cx-avatar-initials { display: grid; place-items: center; font-weight: 700; color: var(--cx-primary); background: var(--cx-primary-50); }
.cx-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 8px; font-size: .78rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.cx-badge-verified { background: var(--cx-accent-50); color: var(--cx-accent-600); }
.cx-badge-identity { background: var(--cx-primary-50); color: var(--cx-primary); }
.cx-badge-phone { background: #EEF2F6; color: #334155; }
.cx-badge-pro { background: var(--cx-primary); color: #fff; letter-spacing: .02em; }
.cx-badge-neutral { background: #EEF2F6; color: #475569; }
.cx-badge-warning { background: var(--cx-warning-50); color: #B45309; }
.cx-badge-danger { background: var(--cx-danger-50); color: var(--cx-danger); }
.cx-badge-success { background: var(--cx-accent-50); color: var(--cx-accent-600); }
.cx-badge-primary { background: var(--cx-primary-50); color: var(--cx-primary); }
.cx-badge-accent { background: var(--cx-accent-50); color: var(--cx-accent-600); }
.cx-badge-secondary { background: #EEF2F6; color: #64748B; }
.cx-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #CBD5E1; }
.cx-dot.on { background: var(--cx-accent); box-shadow: 0 0 0 3px var(--cx-accent-50); }
.cx-stars { color: #F5A524; letter-spacing: 1px; }
.cx-stars .bi-star { color: #D7DEE5; }
.cx-rating-num { font-weight: 700; }

/* Professional card */
.cx-pro-card { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; height: 100%; }
.cx-pro-card .cx-pro-meta { font-size: .85rem; color: var(--cx-muted); display: flex; flex-wrap: wrap; gap: .25rem .8rem; }
.cx-pro-card .cx-pro-name { font-weight: 700; font-size: 1.02rem; color: var(--cx-ink); }
.cx-pro-card.is-pro { border-color: #BFD7DE; }

/* Proposal card */
.cx-proposal { padding: 1.1rem; }
.cx-proposal .cx-amount { font-size: 1.5rem; font-weight: 800; color: var(--cx-primary); letter-spacing: -0.02em; }
.cx-proposal.is-chosen { border: 2px solid var(--cx-accent); }
.cx-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.cx-kv > div { background: var(--cx-bg); border-radius: 10px; padding: .5rem .6rem; font-size: .8rem; color: var(--cx-muted); }
.cx-kv strong { display: block; color: var(--cx-ink); font-size: .95rem; }

/* Status progress */
.cx-progress { list-style: none; padding: 0; margin: 0; }
.cx-progress li { display: flex; gap: .85rem; position: relative; padding-bottom: 1.1rem; }
.cx-progress li:last-child { padding-bottom: 0; }
.cx-progress li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--cx-line); }
.cx-progress li:last-child::before { display: none; }
.cx-progress .cx-progress-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cx-line); background: #fff; display: grid; place-items: center; font-size: .8rem; color: #fff; flex-shrink: 0; z-index: 1; }
.cx-progress li.done .cx-progress-dot { background: var(--cx-accent); border-color: var(--cx-accent); }
.cx-progress li.done::before { background: var(--cx-accent); }
.cx-progress li.current .cx-progress-dot { border-color: var(--cx-primary-2); background: var(--cx-primary-2); box-shadow: 0 0 0 4px var(--cx-primary-50); }
.cx-progress li .cx-progress-label { font-weight: 600; padding-top: 3px; }
.cx-progress li:not(.done):not(.current) .cx-progress-label { color: var(--cx-muted); font-weight: 500; }
.cx-progress-bar { display: flex; gap: 4px; }
.cx-progress-bar span { flex: 1; height: 6px; border-radius: 4px; background: var(--cx-line); }
.cx-progress-bar span.done { background: var(--cx-accent); }
.cx-progress-bar span.current { background: var(--cx-primary-2); }

/* Request card */
.cx-request { padding: 1rem; display: flex; gap: .9rem; align-items: flex-start; }
.cx-request-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--cx-primary-50); color: var(--cx-primary); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.cx-request.urgent .cx-request-icon { background: var(--cx-warning-50); color: var(--cx-warning); }

/* Job alert (professional) */
.cx-alert-job { border-left: 4px solid var(--cx-primary-2); }
.cx-alert-job.urgent { border-left-color: var(--cx-warning); background: linear-gradient(90deg, #FFF8F0 0%, #fff 40%); }

/* Empty state */
.cx-empty { text-align: center; padding: 2.5rem 1.25rem; }
.cx-empty-icon { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 1rem; background: var(--cx-primary-50); color: var(--cx-primary-2); display: grid; place-items: center; font-size: 2rem; }

/* Metrics */
.cx-metric { padding: 1rem 1.1rem; }
.cx-metric-label { font-size: .82rem; color: var(--cx-muted); font-weight: 500; }
.cx-metric-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.cx-metric-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--cx-primary-50); color: var(--cx-primary); }
.cx-earnings { background: var(--cx-primary); color: #fff; border-radius: var(--cx-radius); padding: 1.25rem; position: relative; overflow: hidden; }
.cx-earnings::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.cx-earnings .cx-earnings-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }

/* Availability toggle card */
.cx-availability { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--cx-radius); background: #fff; border: 1.5px solid var(--cx-line); }
.cx-availability.on { border-color: #A7DDBA; background: var(--cx-accent-50); }

/* ------------------------------------------------ App shell (dashboards) */
.cx-app { min-height: 100vh; padding-bottom: 84px; }
@media (min-width: 992px) { .cx-app { padding-bottom: 0; padding-left: 264px; } }
.cx-topbar { position: sticky; top: 0; z-index: 1020; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cx-line); height: 62px; display: flex; align-items: center; }
.cx-topbar .cx-icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--cx-ink); position: relative; font-size: 1.2rem; }
.cx-topbar .cx-icon-btn:hover { background: var(--cx-bg); }
.cx-count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cx-danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.cx-main { padding: 1.1rem 0 2rem; }
@media (min-width: 992px) { .cx-main { padding: 2rem 0 3rem; } }
/* Sidebar: fixed column on desktop, off-canvas drawer (Bootstrap .offcanvas-lg) on phones */
.cx-sidebar { display: flex; flex-direction: column; background: #fff; padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.cx-sidebar.dark { background: var(--cx-primary); }
@media (max-width: 991.98px) {
  .cx-sidebar.offcanvas-lg { --bs-offcanvas-width: min(300px, 86vw); width: var(--bs-offcanvas-width); z-index: 1060; border-right: 0; }
  .cx-sidebar-close { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 0; background: var(--cx-bg); color: var(--cx-ink); font-size: 1.2rem; flex-shrink: 0; }
  .cx-sidebar.dark .cx-sidebar-close { background: rgba(255, 255, 255, .1); color: #fff; }
  .offcanvas-backdrop { z-index: 1055; }
}
@media (min-width: 992px) {
  .cx-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; background: #fff !important; border-right: 1px solid var(--cx-line); padding: 1.25rem 1rem; z-index: 1030; visibility: visible; transform: none; }
  .cx-sidebar.dark { background: var(--cx-primary) !important; border-right: 0; }
}
.cx-side-link { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 12px; color: var(--cx-ink); font-weight: 500; margin-bottom: 2px; }
.cx-side-link i { font-size: 1.1rem; color: var(--cx-muted); width: 22px; text-align: center; }
.cx-side-link:hover { background: var(--cx-bg); color: var(--cx-ink); }
.cx-side-link.active { background: var(--cx-primary-50); color: var(--cx-primary); font-weight: 650; }
.cx-side-link.active i { color: var(--cx-primary); }
.cx-sidebar.dark .cx-side-link { color: rgba(255, 255, 255, .78); }
.cx-sidebar.dark .cx-side-link i { color: rgba(255, 255, 255, .55); }
.cx-sidebar.dark .cx-side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.cx-sidebar.dark .cx-side-link.active { background: rgba(255, 255, 255, .12); color: #fff; }
.cx-sidebar.dark .cx-side-link.active i { color: #6EE7A0; }
.cx-side-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--cx-muted); padding: 1rem .85rem .4rem; }
.cx-sidebar.dark .cx-side-group { color: rgba(255, 255, 255, .4); }
.cx-side-badge { margin-left: auto; background: var(--cx-danger); color: #fff; font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 8px; }

/* Bottom nav (mobile) */
.cx-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 1px solid var(--cx-line); display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(15, 30, 46, .05); }
.cx-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--cx-muted); padding: 6px 0; border-radius: 12px; position: relative; min-height: 54px; justify-content: center; }
.cx-bottom-nav a i { font-size: 1.35rem; line-height: 1; }
.cx-bottom-nav a.active { color: var(--cx-primary); }
.cx-bottom-nav a.active i { color: var(--cx-primary); }
.cx-bottom-nav a .cx-count { top: 2px; right: calc(50% - 22px); }
@media (min-width: 992px) { .cx-bottom-nav { display: none; } }

/* Sticky action bar (mobile forms) */
.cx-sticky-actions { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(244, 246, 248, 0) 0%, var(--cx-bg) 30%); padding: 1rem 0 calc(.75rem + env(safe-area-inset-bottom)); z-index: 5; }
.cx-app .cx-sticky-actions { bottom: 72px; }
@media (min-width: 992px) { .cx-app .cx-sticky-actions { bottom: 0; } }

/* Multi-step wizard */
.cx-wizard-step { display: none; animation: cxFade .2s ease; }
.cx-wizard-step.active { display: block; }
@keyframes cxFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cx-wizard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; font-size: .85rem; color: var(--cx-muted); font-weight: 600; }

/* Upload zone & previews */
.cx-dropzone { border: 2px dashed #C9D6DC; border-radius: 16px; padding: 1.5rem; text-align: center; background: #fff; cursor: pointer; display: block; }
.cx-dropzone:hover { border-color: var(--cx-primary-2); background: var(--cx-primary-50); }
.cx-dropzone i { font-size: 2rem; color: var(--cx-primary-2); }
.cx-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; margin-top: .75rem; }
.cx-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* Portfolio gallery */
.cx-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 768px) { .cx-gallery { grid-template-columns: repeat(3, 1fr); } }
.cx-gallery-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--cx-primary-50); aspect-ratio: 4/3; }
.cx-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.cx-gallery-tag { position: absolute; top: 8px; left: 8px; background: rgba(15, 30, 46, .78); color: #fff; font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; }
.cx-gallery-actions { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.cx-gallery-actions .btn { min-height: 32px; width: 32px; padding: 0; border-radius: 8px; background: rgba(255, 255, 255, .95); }
.cx-gallery-item.dragging { opacity: .4; }

/* Chat */
.cx-chat { display: flex; flex-direction: column; height: calc(100vh - 62px - 84px); }
@media (min-width: 992px) { .cx-chat { height: calc(100vh - 62px - 4rem); } }
.cx-chat-head { padding: .8rem 1rem; border-bottom: 1px solid var(--cx-line); background: #fff; display: flex; align-items: center; gap: .75rem; }
.cx-chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--cx-bg); display: flex; flex-direction: column; gap: .5rem; }
.cx-msg { max-width: 78%; padding: .6rem .85rem; border-radius: 16px; background: #fff; border: 1px solid var(--cx-line); font-size: .95rem; word-wrap: break-word; }
.cx-msg.me { margin-left: auto; background: var(--cx-primary); color: #fff; border-color: var(--cx-primary); border-bottom-right-radius: 6px; }
.cx-msg.them { border-bottom-left-radius: 6px; }
.cx-msg time { display: block; font-size: .7rem; opacity: .65; margin-top: 2px; text-align: right; }
.cx-msg img { max-width: 220px; border-radius: 10px; display: block; }
.cx-msg-system { align-self: center; background: #E6ECF0; color: #475569; font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; text-align: center; max-width: 90%; }
.cx-chat-input { padding: .65rem; border-top: 1px solid var(--cx-line); background: #fff; display: flex; gap: .5rem; align-items: center; }
.cx-chat-input .form-control { min-height: 46px; border-radius: 23px; }
.cx-chat-input .btn { width: 46px; min-height: 46px; padding: 0; border-radius: 50%; }
.cx-conv { display: flex; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--cx-line); color: var(--cx-ink); align-items: center; }
.cx-conv:hover { background: var(--cx-bg); color: var(--cx-ink); }
.cx-conv:last-child { border-bottom: 0; }

/* Onboarding slides */
.cx-onboard { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.cx-onboard-slide { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem; }
.cx-onboard-slide.active { display: flex; animation: cxFade .25s ease; }
.cx-onboard-art { width: 220px; height: 220px; border-radius: 40px; background: var(--cx-primary-50); display: grid; place-items: center; font-size: 5.5rem; color: var(--cx-primary); margin-bottom: 2rem; }
.cx-onboard-dots { display: flex; gap: 6px; justify-content: center; }
.cx-onboard-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--cx-line); transition: all .2s; }
.cx-onboard-dots span.active { width: 26px; background: var(--cx-primary); }

/* Trust section */
.cx-trust { background: var(--cx-primary); color: #fff; border-radius: 28px; }
.cx-trust h2, .cx-trust h3, .cx-trust h4 { color: #fff; }
.cx-trust .cx-trust-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #6EE7A0; display: grid; place-items: center; font-size: 1.35rem; }
.cx-trust p { color: rgba(255, 255, 255, .75); }

/* Testimonials */
.cx-quote { font-size: 1rem; line-height: 1.6; }

/* FAQ */
.cx-faq .accordion-item { border: 1px solid var(--cx-line); border-radius: 14px !important; margin-bottom: .6rem; overflow: hidden; }
.cx-faq .accordion-button { font-weight: 600; padding: 1.1rem 1.2rem; }
.cx-faq .accordion-button:not(.collapsed) { background: var(--cx-primary-50); color: var(--cx-primary); box-shadow: none; }
.cx-faq .accordion-button:focus { box-shadow: none; }

/* Footer */
.cx-footer { background: #0A2632; color: rgba(255, 255, 255, .7); padding: 3rem 0 6rem; }
@media (min-width: 992px) { .cx-footer { padding-bottom: 2rem; } }
.cx-footer a { color: rgba(255, 255, 255, .7); }
.cx-footer a:hover { color: #fff; }
.cx-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }

/* CTA band */
.cx-cta { background: linear-gradient(135deg, var(--cx-primary) 0%, var(--cx-primary-2) 100%); color: #fff; border-radius: 28px; overflow: hidden; position: relative; }
.cx-cta h2 { color: #fff; }
.cx-cta p { color: rgba(255, 255, 255, .8); }

/* Urgent banner */
.cx-urgent-banner { background: var(--cx-warning-50); border: 1px solid #FBD5AC; border-radius: var(--cx-radius); color: #7C3A06; }
.cx-urgent-banner .cx-urgent-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--cx-warning); color: #fff; display: grid; place-items: center; font-size: 1.4rem; }

/* PWA install prompt */
.cx-install { position: fixed; left: 12px; right: 12px; bottom: 92px; z-index: 1050; background: #fff; border-radius: 18px; box-shadow: var(--cx-shadow-lg); border: 1px solid var(--cx-line); padding: 1rem; display: none; max-width: 440px; margin: 0 auto; }
.cx-install.show { display: block; animation: cxFade .25s ease; }
@media (min-width: 992px) { .cx-install { left: auto; right: 24px; bottom: 24px; } }

/* Tables (admin) */
.cx-table { margin: 0; }
.cx-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cx-muted); font-weight: 700; background: #F8FAFB; border-bottom: 1px solid var(--cx-line); padding: .85rem 1rem; white-space: nowrap; }
.cx-table td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--cx-line); }
.cx-table tbody tr:hover { background: #FAFCFD; }
.cx-admin-filter { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Profile page */
.cx-profile-hero { background: #fff; border-bottom: 1px solid var(--cx-line); }
.cx-insight { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--cx-primary); background: var(--cx-primary-50); padding: .35rem .7rem; border-radius: 10px; font-weight: 500; }
.cx-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--cx-line); padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); z-index: 1035; display: flex; gap: .5rem; }
@media (min-width: 992px) { .cx-mobile-cta { display: none; } }

/* Completeness ring */
.cx-ring { --p: 70; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--cx-accent) calc(var(--p) * 1%), var(--cx-line) 0); display: grid; place-items: center; flex-shrink: 0; }
.cx-ring span { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }

/* Plans */
.cx-plan { padding: 1.5rem; height: 100%; display: flex; flex-direction: column; }
.cx-plan.featured { border: 2px solid var(--cx-primary); position: relative; }
.cx-plan-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.cx-plan ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.cx-plan li { padding: .4rem 0; display: flex; gap: .5rem; }
.cx-plan li i { color: var(--cx-accent); }

/* Calendar (agenda) */
.cx-day { min-width: 62px; text-align: center; padding: .6rem .4rem; border-radius: 14px; border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink); }
.cx-day.active { background: var(--cx-primary); color: #fff; border-color: var(--cx-primary); }
.cx-day small { display: block; font-size: .72rem; opacity: .75; }
.cx-day strong { font-size: 1.15rem; }

.cx-divider { height: 1px; background: var(--cx-line); margin: 1rem 0; }
.cx-link-row { display: flex; align-items: center; gap: .85rem; padding: .95rem 1rem; color: var(--cx-ink); border-bottom: 1px solid var(--cx-line); }
.cx-link-row:last-child { border-bottom: 0; }
.cx-link-row:hover { background: var(--cx-bg); color: var(--cx-ink); }
.cx-link-row .bi-chevron-right { margin-left: auto; color: var(--cx-muted); }
.lazy-fade { opacity: 0; transition: opacity .3s; }
.lazy-fade.loaded { opacity: 1; }
.alert { border-radius: 14px; border: 0; }
.alert-success { background: var(--cx-accent-50); color: #166534; }
.alert-info { background: var(--cx-primary-50); color: var(--cx-primary); }
.alert-warning { background: var(--cx-warning-50); color: #92400E; }
.alert-danger { background: var(--cx-danger-50); color: #991B1B; }
.nav-pills .nav-link { border-radius: 10px; font-weight: 600; color: var(--cx-muted); }
.nav-pills .nav-link.active { background: var(--cx-primary); }
.cx-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.cx-tabs a { padding: .5rem .9rem; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--cx-muted); white-space: nowrap; background: #fff; border: 1px solid var(--cx-line); }
.cx-tabs a.active { background: var(--cx-primary); color: #fff; border-color: var(--cx-primary); }
.min-w-0 { min-width: 0; }
/* Flex children that must be allowed to shrink (truncation on small screens) */
.d-flex > .text-truncate, .d-flex > .flex-fill, .cx-request > div, .cx-conv > div { min-width: 0; }
.cx-request .cx-badge { flex-shrink: 0; }
.d-grid > *, .row > * { min-width: 0; }
.cx-proposal .cx-amount { white-space: nowrap; font-size: 1.35rem; }


/* =====================================================================
   Telemóvel — auditoria de responsividade (360 × 740 e 412 × 915)
   ===================================================================== */
/* Safe areas (ecrãs com entalhe / app instalada em ecrã inteiro) */
.cx-topbar { height: calc(62px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
.cx-navbar { padding-top: max(.5rem, env(safe-area-inset-top)); }
.cx-app, .cx-navbar, .cx-footer, .cx-mobile-cta { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.cx-app { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.cx-app .cx-sticky-actions { bottom: calc(67px + env(safe-area-inset-bottom)); }
.cx-install { bottom: calc(84px + env(safe-area-inset-bottom)); }
.cx-chat { height: calc(100vh - 62px - 67px); height: calc(100dvh - 62px - 67px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
@media (min-width: 992px) {
  .cx-app { padding-bottom: 0; }
  .cx-app .cx-sticky-actions { bottom: 0; }
  .cx-install { bottom: 24px; }
  .cx-chat { height: calc(100vh - 62px - 4rem); }
}
/* Página com barra fixa de ação (perfil público): o rodapé não fica tapado */
body:has(.cx-mobile-cta) .cx-footer { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body:has(.cx-mobile-cta) .cx-footer { padding-bottom: 2rem; } }

/* Texto longo nunca empurra a página para o lado */
body { overflow-wrap: break-word; }
.cx-msg, .cx-phone-notif, .cx-hint, .cx-say, td { overflow-wrap: anywhere; }
.cx-cat-name { hyphens: manual; overflow-wrap: normal; word-break: normal; }
.btn, .cx-badge, .cx-chip, .cx-tabs a, .cx-bottom-nav a, .cx-amount, .cx-metric-value, .cx-plan-price, th { overflow-wrap: normal; }
img, video, canvas, iframe { max-width: 100%; }
pre, code { white-space: pre-wrap; }

/* Alvos de toque ≥ 44 px em telemóvel */
@media (max-width: 991.98px) {
  .btn-sm { min-height: 44px; padding: .5rem .9rem; }
  .cx-topbar .cx-icon-btn, .cx-icon-btn { width: 44px; height: 44px; }
  .cx-logo { min-height: 44px; }
  .cx-tabs a, .cx-chip { min-height: 44px; display: inline-flex; align-items: center; }
  a.cx-badge { min-height: 44px; }
  .cx-gallery-actions .btn { width: 44px; min-height: 44px; }
  .form-check { min-height: 44px; display: flex; align-items: center; gap: .6rem; padding-left: 0; margin-bottom: .25rem; }
  .form-check .form-check-input { float: none; margin: 0; flex-shrink: 0; }
  .form-switch { padding-left: 0; }
  .form-switch .form-check-input { margin-left: 0; }
  .form-check-label { padding: .55rem 0; flex: 1; min-width: 0; }
  .navbar-toggler { min-width: 44px; min-height: 44px; }
  .btn-close { width: 44px; height: 44px; padding: 0; }
  .cx-side-link { min-height: 48px; }
  .cx-navbar .nav-link { min-height: 48px; display: flex; align-items: center; }
  .page-link { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .cx-stars[data-star-input] i, [data-star-input] [data-star] { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
  .cx-footer a { display: inline-block; padding: .55rem 0; }
}

/* Tabelas da administração → cartões empilhados em telemóvel */
@media (max-width: 767.98px) {
  .cx-table thead { display: none; }
  .cx-table, .cx-table tbody, .cx-table tr, .cx-table td { display: block; width: 100%; }
  .cx-table tr { padding: .9rem 1rem; border-bottom: 1px solid var(--cx-line); }
  .cx-table tbody tr:last-child { border-bottom: 0; }
  .cx-table td { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .3rem 0; border: 0; text-align: right; min-width: 0; }
  .cx-table td::before { content: attr(data-label); font-size: .8rem; font-weight: 600; color: var(--cx-muted); text-align: left; flex-shrink: 0; max-width: 45%; }
  .cx-table td:first-child { display: block; text-align: left; padding: 0 0 .5rem; font-size: 1rem; }
  .cx-table td:first-child::before, .cx-table td[data-label=""]::before, .cx-table td[colspan]::before { display: none; }
  .cx-table td[data-label=""] { justify-content: flex-start; flex-wrap: wrap; padding-top: .6rem; text-align: left; }
  .cx-table td[data-label=""] .btn, .cx-table td[data-label=""] form { flex: 1 1 auto; }
  .cx-table td[data-label=""] form .btn { width: 100%; }
  .cx-table td[colspan] { display: block; text-align: center; }
  .cx-table td.text-end { text-align: right; }
  .cx-table td > .d-flex { flex-wrap: wrap; }
  .cx-table td:first-child > .d-flex { flex-wrap: nowrap; }
  .table-responsive:has(> .cx-table) { overflow-x: visible; }
  .cx-table tbody tr:hover, .cx-table td { background: transparent; box-shadow: none; }
  .cx-admin-filter > * { flex: 1 1 100%; max-width: none !important; }
}

/* Barra de topo das áreas reservadas */
.cx-menu-btn { margin-left: -6px; }
.cx-bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--cx-muted); padding: 6px 0; border-radius: 12px; min-height: 54px; justify-content: center; background: none; border: 0; }
.cx-bottom-nav button i { font-size: 1.35rem; line-height: 1; }

/* =====================================================================
   Ilustrações, botões grandes e cores de estado (fácil de perceber)
   ===================================================================== */
.cx-ic { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.cx-ic-btn { width: 1.35em; height: 1.35em; }
.cx-ic-sm { width: 40px; height: 40px; }
.cx-ic-md { width: 56px; height: 56px; }
.cx-ic-lg { width: 76px; height: 76px; }
.cx-ic-xl { width: 120px; height: 120px; }
.btn .cx-ic-btn { --cx-ic-cut: var(--bs-btn-bg, #fff); margin-right: .1rem; }
.btn-soft .cx-ic-btn, .btn-white .cx-ic-btn { --cx-ic-cut: var(--cx-primary-50); }
.btn-outline-primary .cx-ic-btn { --cx-ic-cut: #fff; }
.btn-xl { min-height: 64px; font-size: 1.15rem; border-radius: 18px; padding: .9rem 1.4rem; font-weight: 700; }
.btn-xl .cx-ic-btn { width: 1.6em; height: 1.6em; }
.btn { transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.cx-pulse { animation: cxPulse 2s ease-in-out infinite; }
@keyframes cxPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 50% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .cx-pulse, .cx-skeleton, .cx-pop { animation: none !important; } }

/* ETA chips */
.cx-eta { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.cx-eta-opt input { position: absolute; opacity: 0; }
.cx-eta-opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--cx-line); background: #fff; font-weight: 700; font-size: .92rem; cursor: pointer; }
.cx-eta-opt input:checked + span { border-color: var(--cx-primary-2); background: var(--cx-primary-50); color: var(--cx-primary); }

/* Estado: verde = bom/feito, laranja = à espera, vermelho = problema */
.cx-state-ok, .cx-state-wait, .cx-state-bad, .cx-state-info { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: 16px; font-size: .97rem; }
.cx-state-ok { background: var(--cx-accent-50); color: #14532D; }
.cx-state-wait { background: var(--cx-warning-50); color: #7C3A06; }
.cx-state-bad { background: var(--cx-danger-50); color: #7F1D1D; }
.cx-state-info { background: var(--cx-primary-50); color: var(--cx-primary); }
.cx-state-ok .cx-ic-btn, .cx-state-wait .cx-ic-btn, .cx-state-bad .cx-ic-btn, .cx-state-info .cx-ic-btn { width: 2.2em; height: 2.2em; }
.cx-tone-ok { --tone: var(--cx-accent); --tone-bg: var(--cx-accent-50); }
.cx-tone-wait { --tone: var(--cx-warning); --tone-bg: var(--cx-warning-50); }
.cx-tone-bad { --tone: var(--cx-danger); --tone-bg: var(--cx-danger-50); }
.cx-tone-info { --tone: var(--cx-primary-2); --tone-bg: var(--cx-primary-50); }
.cx-status-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem .3rem .35rem; border-radius: 999px; background: var(--tone-bg); color: var(--tone); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.cx-status-chip .cx-ic-btn { width: 1.5em; height: 1.5em; }

/* Linha do tempo ilustrada */
.cx-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.cx-timeline li { display: flex; align-items: center; gap: .8rem; position: relative; padding: .35rem 0; }
.cx-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 58px; height: calc(100% - 50px); width: 3px; border-radius: 2px; background: var(--cx-line); }
.cx-timeline li.done:not(:last-child)::after { background: var(--cx-accent); }
.cx-timeline li .cx-ic-md { transition: transform .2s; }
.cx-timeline li.todo .cx-ic-md { filter: grayscale(1); opacity: .45; }
.cx-timeline li.current .cx-ic-md { transform: scale(1.08); box-shadow: 0 0 0 4px var(--cx-primary-50); border-radius: 50%; }
.cx-timeline li strong { display: block; font-size: 1rem; }
.cx-timeline li small { color: var(--cx-muted); }

/* Cartões de categoria ilustrados */
.cx-cat-ill { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 1rem .6rem; height: 100%; color: var(--cx-ink); border-radius: 18px; }
.cx-cat-ill .cx-ic-lg { transition: transform .18s ease; }
.cx-cat-ill:hover .cx-ic-lg, .cx-cat-ill:focus-visible .cx-ic-lg { transform: translateY(-3px) scale(1.04); }
.cx-cat-ill .cx-cat-name { font-size: .95rem; }
.cx-cat-ill input:checked ~ .cx-cat-name { color: var(--cx-primary); }

/* Ecrã de confirmação */
.cx-confirm { text-align: center; padding: 2rem 1rem; }
.cx-confirm .cx-ic-xl { margin-bottom: 1rem; }
.cx-pop { animation: cxPop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes cxPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Esqueleto de carregamento */
.cx-skeleton { background: linear-gradient(90deg, #EEF2F5 25%, #F7F9FA 37%, #EEF2F5 63%); background-size: 400% 100%; animation: cxSkel 1.3s ease infinite; border-radius: 12px; min-height: 1em; }
@keyframes cxSkel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Página com cabeçalho «o que fazer» */
.cx-howto { display: flex; align-items: center; gap: .9rem; }
.cx-howto h1 { font-size: clamp(1.35rem, 5vw, 1.8rem); margin: 0; }
.cx-hint { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: var(--cx-muted); }
.cx-hint i { color: var(--cx-primary-2); margin-top: .1rem; }

/* Botão Ouvir */
.cx-ouvir { position: relative; }
.cx-ouvir.a-falar { background: var(--cx-accent) !important; color: #fff !important; }

/* Guia de primeira vez (coach marks) */
.cx-coach-backdrop { position: fixed; inset: 0; background: rgba(10, 30, 40, .55); z-index: 1080; }
.cx-coach { position: fixed; left: 12px; right: 12px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 1082; background: #fff; border-radius: 20px; padding: 1.1rem; box-shadow: var(--cx-shadow-lg); max-width: 420px; margin: 0 auto; }
.cx-coach-target { position: relative; z-index: 1081; box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--cx-accent); border-radius: 14px; }
@media (min-width: 992px) { .cx-coach { left: auto; right: 24px; bottom: 24px; } }
.cx-dots { display: flex; gap: 6px; }
.cx-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--cx-line); }
.cx-dots span.on { width: 22px; background: var(--cx-primary); }

/* Cartões e sombras mais suaves */
.cx-card { transition: box-shadow .2s ease, transform .2s ease; }
a.cx-card:active { transform: scale(.99); }
.cx-ring-sm { --p: 50; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--ring, var(--cx-accent)) calc(var(--p) * 1%), var(--cx-line) 0); display: grid; place-items: center; flex-shrink: 0; }
.cx-ring-sm span { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.cx-level { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; color: #fff; font-weight: 800; letter-spacing: .02em; }

/* Chat: áudio, vídeo, pré-visualização */
.cx-msg video { max-width: 240px; width: 100%; border-radius: 10px; display: block; background: #000; }
.cx-audio { display: flex; align-items: center; gap: .4rem; }
.cx-audio audio { height: 40px; max-width: 210px; }
.cx-msg.me .cx-audio i { color: #fff; }
.cx-mic { touch-action: none; user-select: none; -webkit-user-select: none; }
.cx-mic.a-gravar { background: var(--cx-danger) !important; border-color: var(--cx-danger) !important; transform: scale(1.15); }
.cx-rec-hint { display: flex; align-items: center; gap: .5rem; padding: .5rem .9rem; background: var(--cx-danger-50); color: #7F1D1D; font-weight: 600; }
.cx-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cx-danger); animation: cxPulse 1s infinite; }
.cx-media-wrap { padding: .75rem; border-top: 1px solid var(--cx-line); background: #fff; }
.cx-media-preview img, .cx-media-preview video { max-height: 240px; max-width: 100%; border-radius: 12px; display: block; margin: 0 auto; }
.cx-upload-bar { padding: .4rem .9rem; background: #fff; }
.cx-attach-menu .dropdown-item { min-height: 48px; display: flex; align-items: center; gap: .6rem; cursor: pointer; }
/* Pedido de autorização de notificações */
.cx-push-prompt { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 1050; background: #fff; border-radius: 20px; box-shadow: var(--cx-shadow-lg); border: 1px solid var(--cx-line); padding: 1rem; display: none; max-width: 440px; margin: 0 auto; }
.cx-push-prompt.show { display: block; animation: cxFade .25s ease; }
@media (min-width: 992px) { .cx-push-prompt { left: auto; right: 24px; bottom: 24px; } }
/* Pré-visualização de notificação num telefone */
.cx-phone { max-width: 320px; margin: 0 auto; border-radius: 36px; background: #0F172A; padding: 12px; box-shadow: var(--cx-shadow-lg); }
.cx-phone-screen { border-radius: 26px; min-height: 420px; padding: 1rem .75rem; background: linear-gradient(160deg, #0E5E6F 0%, #0B3D4F 100%); }
.cx-phone-time { color: #fff; text-align: center; font-size: 2.2rem; font-weight: 300; margin: .5rem 0 1rem; }
.cx-phone-notif { background: rgba(255, 255, 255, .96); border-radius: 18px; padding: .75rem .85rem; margin-bottom: .6rem; overflow-wrap: anywhere; }

/* =====================================================================
   Entrar / Criar conta
   ===================================================================== */
.cx-auth-body { background: var(--cx-bg); }
.cx-auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cx-auth-hero { background: linear-gradient(160deg, #0E5E6F 0%, #0B3D4F 100%); color: #fff; padding: calc(.9rem + env(safe-area-inset-top)) 1rem 4.2rem; position: relative; overflow: hidden; }
.cx-auth-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .06); right: -80px; top: -90px; }
.cx-auth-logo { height: 40px; width: auto; }
.cx-auth-close { color: #fff; background: rgba(255, 255, 255, .12); border: 0; width: 44px; }
.cx-auth-close:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.cx-auth-art { position: relative; width: 150px; height: 130px; margin: .4rem auto 0; display: grid; place-items: center; }
.cx-auth-art > .cx-ic-xl { width: 116px; height: 116px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .18)); }
.cx-auth-bubble { position: absolute; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); animation: cxFloat 4s ease-in-out infinite; }
.cx-auth-bubble .cx-ic-sm { width: 34px; height: 34px; display: block; }
.cx-auth-bubble.b1 { left: -10px; top: 18px; } .cx-auth-bubble.b2 { right: -8px; top: 4px; animation-delay: .8s; } .cx-auth-bubble.b3 { right: -16px; bottom: 6px; animation-delay: 1.6s; }
@keyframes cxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cx-auth-card { background: #fff; border-radius: 26px 26px 0 0; margin: -3rem auto 0; width: 100%; padding: 1.5rem 1.1rem 2rem; position: relative; z-index: 1; flex: 1; box-shadow: 0 -6px 24px rgba(15, 30, 46, .06); }
@media (min-width: 576px) { .cx-auth-card { border-radius: 26px; flex: 0 0 auto; margin-bottom: 2rem; padding: 2rem; box-shadow: var(--cx-shadow-lg); } }
.cx-auth-card h1 { font-size: 1.55rem; }
.cx-choice { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; border-radius: 20px; border: 2px solid var(--cx-line); background: #fff; color: var(--cx-ink); min-height: 96px; transition: border-color .15s, transform .12s, box-shadow .15s; }
.cx-choice:hover, .cx-choice:focus-visible { border-color: var(--cx-primary-2); color: var(--cx-ink); box-shadow: var(--cx-shadow); }
.cx-choice:active { transform: scale(.98); }
.cx-choice .cx-choice-title { font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.cx-choice.pro { border-color: #BFE6CC; background: linear-gradient(90deg, var(--cx-accent-50) 0%, #fff 70%); }
/* Campo de telefone com +258 */
.cx-phone-field { display: flex; align-items: stretch; border: 1.5px solid #D3DCE3; border-radius: 14px; overflow: hidden; background: #fff; }
.cx-phone-field:focus-within { border-color: var(--cx-primary-2); box-shadow: 0 0 0 .2rem rgba(14, 94, 111, .15); }
.cx-phone-field .cx-prefix { display: flex; align-items: center; gap: .35rem; padding: 0 .8rem; background: var(--cx-bg); font-weight: 700; font-size: 1.1rem; color: var(--cx-ink); border-right: 1.5px solid #D3DCE3; }
.cx-phone-field input { border: 0 !important; box-shadow: none !important; font-size: 1.3rem; letter-spacing: .04em; min-height: 58px; font-weight: 600; }
.cx-phone-field.is-invalid, .form-control.is-invalid { border-color: var(--cx-danger) !important; }
.cx-field-error { display: flex; gap: .4rem; align-items: center; color: #B91C1C; font-weight: 600; font-size: .9rem; margin-top: .35rem; }
/* Mostrar/esconder palavra-passe */
.cx-pw-wrap { position: relative; }
.cx-pw-wrap .form-control { padding-right: 3.4rem; }
.cx-pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; background: transparent; color: var(--cx-muted); font-size: 1.3rem; border-radius: 12px; }
.cx-pw-toggle:hover { background: var(--cx-bg); color: var(--cx-ink); }
.cx-big-input { font-size: 1.15rem; min-height: 58px; }
/* Passos com ícones (registo) */
.cx-step-dots { display: flex; justify-content: space-between; gap: .3rem; margin-bottom: 1.2rem; position: relative; }
.cx-step-dots::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 3px; background: var(--cx-line); z-index: 0; }
.cx-step-dot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; color: var(--cx-muted); flex: 1; min-width: 0; text-align: center; }
.cx-step-dot i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--cx-line); font-size: 1.15rem; transition: all .2s; }
.cx-step-dot.done i { background: var(--cx-accent); border-color: var(--cx-accent); color: #fff; }
.cx-step-dot.current i { background: var(--cx-primary-2); border-color: var(--cx-primary-2); color: #fff; box-shadow: 0 0 0 5px var(--cx-primary-50); }
.cx-step-dot.current { color: var(--cx-primary); }

/* Alvos de toque — reforço (telemóvel) */
@media (max-width: 991.98px) {
  .btn, .btn-sm { min-width: 44px; min-height: 44px; }
  .btn.px-2 { padding-left: .6rem !important; padding-right: .6rem !important; }
  .form-check-label { min-height: 44px; display: flex; align-items: center; }
  .cx-table a:not(.btn):not(.cx-badge) { display: inline-flex; align-items: center; min-height: 44px; }
  .cx-admin-filter > * { flex: 1 1 100%; max-width: none !important; }
  a.cx-tap { min-height: 44px; }
  a.cx-tap:not(.d-flex) { display: inline-flex; align-items: center; }
  /* área de toque maior sem mudar o desenho (padding + margem negativa) */
  .cx-footer a { padding: .75rem 0; margin: -.2rem 0; }
  a.cx-pro-name { padding: .6rem 0; margin: -.6rem 0; }
  a.cx-tap-pad { padding: .75rem 0; margin: -.75rem 0; }
  a:has(> .cx-auth-logo) { display: inline-flex; align-items: center; min-height: 44px; }
}

.btn { white-space: nowrap; }
.btn-xl, .btn-lg, .d-grid > .btn, .w-100.btn, .cx-choice { white-space: normal; }
.cx-cat-ill .cx-cat-name { font-size: .85rem; line-height: 1.15; }
