:root {
    --ninja-blue-900: #0f2c59;
    --ninja-blue-700: #1f5fd6;
    --ninja-blue-600: #2c7dff;
    --ninja-blue-100: #eaf2ff;
    --ninja-blue-50: #f5f9ff;
    --ninja-border: #dbe7ff;
    --ninja-text: #16253d;
    --ninja-muted: #61708a;
    --ninja-white: #ffffff;
}

* {
    font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    color: var(--ninja-text);
    min-height: 100vh;
    background: linear-gradient(180deg, #fcfdff, #eef4ff);
    overflow-x: hidden;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle at right top, rgba(44, 125, 255, 0.12), transparent 30%), radial-gradient(circle at left bottom, rgba(31, 95, 214, 0.09), transparent 35%);
}

.ninja-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--ninja-border);
}

.ninja-nav .navbar-brand,
.ninja-nav .nav-link {
    color: var(--ninja-text) !important;
}

.btn-accent {
    background: linear-gradient(120deg, var(--ninja-blue-700), var(--ninja-blue-600));
    color: #ffffff;
    border: 0;
    font-weight: 700;
}

.btn-accent:hover {
    color: #ffffff;
    filter: brightness(1.05);
}

.glass-card {
    background: #ffffff;
    border: 1px solid var(--ninja-border);
    border-radius: 18px;
    box-shadow: 0 20px 35px rgba(21, 53, 105, 0.08);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
}

.hero-sub {
    color: var(--ninja-muted);
    font-size: 1.1rem;
}

.category-chip {
    background: var(--ninja-blue-50);
    color: var(--ninja-blue-900);
    border: 1px solid var(--ninja-border);
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 5px;
}

.panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.card-clean {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e8eefb;
    color: #1f2937;
    box-shadow: 0 14px 32px rgba(24, 63, 136, 0.06);
}

.card-clean .card-header {
    background: #ffffff;
    border-bottom: 1px solid #eef2fb;
    font-weight: 700;
}

.stats-box {
    background: #ffffff;
    border: 1px solid #e8eefb;
    border-radius: 16px;
    padding: 16px;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(24, 63, 136, 0.05);
}

.map-box {
    width: 100%;
    min-height: 430px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ninja-border);
}

/* === Status badges (PT) === */
.ninja-status{display:inline-block;font-weight:600;letter-spacing:.2px;padding:.35em .7em;border-radius:8px;font-size:.78rem;line-height:1.2}
.ninja-status-success{background:#d1fadf;color:#137333}
.ninja-status-primary{background:#e0ecff;color:#1764f4}
.ninja-status-info{background:#dbeefd;color:#0b6cb5}
.ninja-status-warning{background:#fff3cd;color:#8a6d00}
.ninja-status-danger{background:#fde0e0;color:#b42318}
.ninja-status-secondary{background:#eef1f5;color:#56607a}
.ninja-status-dark{background:#1a2236;color:#fff}

/* === Chat audio + acoes === */
.chat-audio{display:block;margin:6px 0;max-width:260px;height:38px;border-radius:18px}
.btn-audio-record{margin-right:6px;border-radius:10px}
.btn-audio-record.recording{background:#fde0e0!important;color:#b42318!important;border-color:#f5b5b5!important;animation:ninjaPulse 1.1s infinite}
.btn-audio-record .rec-time{font-weight:600;font-size:.8rem;margin-left:4px}
@keyframes ninjaPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.chat-bubble{position:relative}
.chat-actions{position:absolute;top:6px;right:6px;display:flex;gap:4px;opacity:0;transition:opacity .2s}
.chat-bubble:hover .chat-actions{opacity:1}
.chat-actions button{background:rgba(255,255,255,.85);border:1px solid #d9dee7;border-radius:6px;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;color:#56607a;padding:0;cursor:pointer}
.chat-actions button:hover{background:#fff;color:#1764f4}
.chat-bubble.deleted .chat-bubble-body{opacity:.7}
.chat-edited-tag{font-size:.7rem;color:#8a93a6;font-style:italic;margin-left:4px}

/* === Sidebar badge contagem === */
.ninja-side-count{display:inline-block;min-width:20px;height:20px;padding:0 6px;background:#ff3b30;color:#fff;border-radius:10px;font-size:.7rem;font-weight:700;text-align:center;line-height:20px;margin-left:auto}

/* === Mapa: marcadores distintos === */
.custom-marker.marker-client > div > div{border-color:#1764f4!important}
.custom-marker.marker-technician > div > div{border-color:#137333!important;box-shadow:0 0 0 3px rgba(19,115,51,.15)}
.custom-marker.marker-admin > div > div{border-color:#b42318!important}
.marker-pin-label{position:absolute;top:-18px;left:50%;transform:translateX(-50%);background:#1a2236;color:#fff;font-size:.65rem;padding:2px 6px;border-radius:4px;white-space:nowrap}
.marker-last-seen{position:absolute;bottom:-16px;left:50%;transform:translateX(-50%);background:#fff;color:#56607a;font-size:.6rem;padding:1px 5px;border-radius:4px;border:1px solid #e2e6ee;white-space:nowrap}

.auth-box {
    max-width: 520px;
    margin: 30px auto;
    padding: 24px;
}

.form-control, .form-select {
    border-radius: 10px;
}

.table td, .table th {
    vertical-align: middle;
}

.chat-area {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--ninja-border);
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.chat-msg {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.chat-msg.mine {
    border-color: #9bc0ff;
    background: #edf4ff;
}

.panel-shell {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    gap: 0;
}

.panel-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #edf2fb;
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}
.panel-sidebar::-webkit-scrollbar {
    display: none;
}

.panel-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ninja-blue-700);
    text-decoration: none;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.panel-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f7faff;
    border: 1px solid #edf2fb;
    border-radius: 16px;
    margin-bottom: 14px;
}

.panel-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ninja-blue-700);
    color: #fff;
    display: grid;
    place-items: center;
}

.panel-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.panel-link {
    color: var(--ninja-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.panel-link:hover,
.panel-link.active {
    color: var(--ninja-blue-700);
    background: #edf4ff;
}

.panel-main {
    flex: 1;
    min-width: 0;
    padding: 18px 20px 28px;
}

.panel-topbar {
    background: #ffffff;
    border: 1px solid #e8eefb;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 12px 30px rgba(24, 63, 136, 0.05);
}

.panel-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    margin: 0;
}

.panel-content {
    border-radius: 14px;
}

.panel-mobile-nav {
    display: none;
}

.hero-wrap {
    background: #ffffff;
    border: 1px solid var(--ninja-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 30px rgba(32, 71, 140, 0.08);
}

.hero-visual {
    border-radius: 20px;
    min-height: 300px;
    background: linear-gradient(140deg, #dce9ff 5%, #2c7dff 80%);
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    right: -40px;
    top: -30px;
}

.hero-badge {
    position: absolute;
    left: 24px;
    top: 24px;
    background: #ffffff;
    border: 1px solid var(--ninja-border);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 10px 25px rgba(17, 38, 75, 0.12);
}

#homeHeroCarousel .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #6fa0ff;
}

#homeHeroCarousel .carousel-control-prev,
#homeHeroCarousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--ninja-border);
    border-radius: 50%;
    opacity: 1;
}

#homeHeroCarousel .carousel-control-prev {
    left: -12px;
}

#homeHeroCarousel .carousel-control-next {
    right: -12px;
}

#homeHeroCarousel .carousel-control-prev-icon,
#homeHeroCarousel .carousel-control-next-icon {
    filter: invert(28%) sepia(89%) saturate(2055%) hue-rotate(209deg) brightness(100%) contrast(97%);
}

.hero-visual-alt {
    background: linear-gradient(140deg, #dff5ff 5%, #4da7ff 80%);
}

.hero-visual-third {
    background: linear-gradient(140deg, #ebf1ff 5%, #7d9eff 80%);
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--ninja-border);
}

.footer-top {
    background: linear-gradient(120deg, #1f5fd6, #2c7dff);
    color: #fff;
    padding: 18px 0;
}

.footer-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-feature i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #eaf2ff;
    font-size: 1.45rem;
}

.footer-feature strong {
    display: block;
    font-size: 0.95rem;
}

.footer-feature p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.95;
}

.home-hero {
    background: linear-gradient(180deg, #f7f9fd 0%, #f3f6fb 100%);
    padding: 0 0 24px;
}

.home-hero-shell {
    position: relative;
    padding-top: 14px;
    z-index: 1;
}

.home-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.1rem);
    font-weight: 800;
    line-height: 1.03;
    margin: 0 0 14px;
    color: #0f172a;
}

.home-hero-title span {
    color: #1764f4;
}

.home-hero-subtitle {
    max-width: 430px;
    color: #475569;
    font-size: 1.28rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.home-btn-outline {
    border: 1px solid #c7d7f7;
    background: #fff;
    color: #1b5de3;
    font-weight: 600;
}

.home-btn-outline:hover {
    border-color: #1b5de3;
    color: #1b5de3;
    background: #f2f7ff;
}

.home-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 500;
}

.home-hero-features div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-hero-features i {
    color: #2563eb;
}

.home-hero-media {
    min-height: 390px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    isolation: isolate;
}

.home-hero-media::before {
    content: '';
    position: absolute;
    right: -12px;
    bottom: -24px;
    width: 390px;
    height: 390px;
    border-radius: 58% 42% 53% 47% / 43% 44% 56% 57%;
    background: linear-gradient(160deg, #2164ee, #0d58eb);
    z-index: -1;
}

.home-hero-image {
    width: 100%;
    max-width: 640px;
    object-fit: contain;
}

.home-rating-box {
    position: absolute;
    left: 8%;
    top: 44%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.13);
    padding: 16px 18px;
    min-width: 175px;
}

.home-rating-box strong {
    display: block;
    font-size: 1rem;
    color: #0f172a;
}

.home-rating-stars {
    margin: 8px 0 4px;
    color: #1764f4;
    letter-spacing: 2px;
    font-size: 1rem;
}

.home-rating-box small {
    color: #475569;
    font-size: 0.95rem;
}

/* === Avaliações com estrelas === */
.stars-display { color: #f5b400; letter-spacing: 1px; }
.stars-display .stars-num { color: var(--ninja-text); font-weight: 600; margin-left: 4px; }

.star-rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 1.6rem; }
.star-rating-input input { display: none; }
.star-rating-input label { color: #d8dee9; cursor: pointer; transition: color .15s; }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: #f5b400; }

.home-search-card {
    margin: -56px auto 0;
    background: #fff;
    border: 1px solid #e8edf8;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(30, 64, 175, 0.09);
    padding: 24px;
    position: relative;
    z-index: 6;
}

.home-search-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0 0 10px;
    font-weight: 700;
    color: #0f172a;
}

.home-search-card .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.home-search-card .form-control,
.home-search-card .form-select,
.home-search-card .btn {
    min-height: 52px;
    border-radius: 10px;
}

.home-search-card .form-control,
.home-search-card .form-select {
    border-color: #d7e2f6;
}

.home-categories-wrap {
    margin-top: 34px;
    margin-bottom: 16px;
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.home-section-head h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #0f172a;
}

.home-section-head a {
    color: #1764f4;
    text-decoration: none;
    font-weight: 600;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.home-category-item {
    text-align: center;
}

.home-category-icon {
    width: 100%;
    min-height: 74px;
    border: 1px solid #d7e2f6;
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #1764f4;
    font-size: 1.6rem;
}

.home-category-name {
    margin-top: 10px;
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 500;
}

.home-steps-wrap {
    background: linear-gradient(180deg, #f2f6fc 0%, #ebf1f8 100%);
    border-radius: 22px;
    padding: 28px 0 34px;
    margin-bottom: 14px;
}

.home-steps-wrap h3 {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    margin-bottom: 24px;
    color: #111827;
}

.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-step-card {
    text-align: center;
    position: relative;
    padding: 10px 12px 0;
}

.home-step-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.home-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #1764f4;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.home-step-line {
    position: static;
    width: 140px;
    max-width: 58%;
    flex: 0 0 auto;
    height: 0;
    border-top: 2px dotted #9bbaf5;
}

.home-step-icon {
    color: #1764f4;
    font-size: 2.95rem;
    margin-bottom: 12px;
}

.home-step-card h4 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.home-step-card p {
    margin: 0;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.45;
}

.home-pro-wrap {
    padding: 6px 0 0;
}

.home-pro-wrap h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.35rem;
    margin: 0 0 10px;
    color: #111827;
}

.home-pro-sub {
    color: #475569;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.home-pro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.home-pro-grid article i {
    color: #1764f4;
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.home-pro-grid article h4 {
    margin: 0 0 8px;
    font-size: 1.04rem;
    font-weight: 700;
    color: #111827;
}

.home-pro-grid article p {
    margin: 0;
    color: #475569;
    font-size: 0.93rem;
}

.home-pro-cta {
    min-width: 220px;
}

.home-pro-visual {
    min-height: 300px;
    border-radius: 24px;
    background: transparent;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 18px;
}

.home-pro-blob {
    position: absolute;
    right: -82px;
    bottom: -42px;
    width: 430px;
    height: 300px;
    border-radius: 62% 38% 50% 50% / 66% 52% 48% 34%;
    background: linear-gradient(150deg, #2a73ff 0%, #0c57ea 100%);
    z-index: 1;
}

.home-pro-phone-image {
    position: relative;
    z-index: 2;
    width: min(300px, 100%);
    transform: rotate(12deg) translateY(58px);
    transform-origin: bottom center;
    filter: drop-shadow(0 24px 35px rgba(15, 23, 42, 0.22));
}

.home-pro-wrap {
    position: relative;
    z-index: 1;
}

.site-footer {
    position: relative;
    z-index: 20;
}

.home-pro-wrap + .site-footer {
    margin-top: -72px;
}

.footer-top {
    position: relative;
    z-index: 30;
}

.footer-bottom {
    padding: 14px 0;
    color: var(--ninja-muted);
}

.footer-brand {
    color: var(--ninja-blue-700);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.request-wizard-card {
    max-width: 980px;
    margin: 0 auto;
}

.wizard-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.wizard-progress-item {
    background: #f8fbff;
    border: 1px solid var(--ninja-border);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}

.wizard-progress-item span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 5px;
    background: #dbe7ff;
    color: #1f4ca8;
    font-weight: 700;
    font-size: 0.85rem;
}

.wizard-progress-item small {
    color: var(--ninja-muted);
    font-weight: 600;
}

.wizard-progress-item.active {
    border-color: #7da6ff;
    background: #edf3ff;
}

.wizard-progress-item.active span,
.wizard-progress-item.done span {
    background: var(--ninja-blue-700);
    color: #fff;
}

.wizard-cat-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--ninja-border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    color: var(--ninja-text);
}

.wizard-cat-item i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edf3ff;
    color: var(--ninja-blue-700);
}

.wizard-cat-radio:checked + .wizard-cat-item {
    border-color: var(--ninja-blue-700);
    box-shadow: 0 0 0 2px rgba(44, 125, 255, 0.13);
    background: #f3f8ff;
}

.wizard-review-box {
    background: #f8fbff;
    border: 1px solid var(--ninja-border);
    border-radius: 12px;
    padding: 14px;
    height: 100%;
}

.wizard-review-box p {
    margin-bottom: 10px;
}

.wizard-success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #2c7dff, #1f5fd6);
    color: #fff;
    font-size: 2rem;
}

.wizard-next-steps {
    max-width: 520px;
    border: 1px solid var(--ninja-border);
    border-radius: 12px;
    padding: 14px;
    background: #f8fbff;
}

.wizard-next-steps ul {
    padding-left: 18px;
}

.wizard-next-steps li {
    margin-bottom: 5px;
    color: var(--ninja-muted);
}

.request-card {
    background: #fff;
    border: 1px solid #e8eefb;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 12px 24px rgba(15, 44, 89, 0.05);
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2fb;
}

.timeline-item:last-child {
    border-bottom: 0;
}

.timeline-card {
    padding: 14px 0;
}

.tech-stage-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #d4e9ff;
    color: #0f5fd6;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.verified-badge i {
    font-size: 0.85rem;
    color: #2c7dff;
}

.custom-marker {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 44, 89, 0.2) !important;
}

.leaflet-popup-tip {
    background: white;
}

.panel-avatar img {
    width: 100%;
    height: 100%;
}

.request-card:hover {
    border-color: #7da6ff;
    box-shadow: 0 16px 32px rgba(15, 44, 89, 0.1);
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--ninja-blue-700), var(--ninja-blue-600));
    border: 0;
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 16px rgba(44, 125, 255, 0.3);
}

.btn-outline-primary {
    color: var(--ninja-blue-700);
    border-color: var(--ninja-blue-700);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: #edf4ff;
    border-color: var(--ninja-blue-700);
}

.alert-success {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #7f1d1d;
}

@media (max-width: 991px) {
    .home-categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-pro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-step-top {
        justify-content: center;
    }

    .home-step-line {
        display: none;
    }

    .home-hero-media {
        min-height: 350px;
    }

    .home-hero-media::before {
        width: 340px;
        height: 340px;
    }

    .home-pro-phone-image {
        width: min(250px, 92%);
        transform: rotate(10deg) translateY(36px);
    }

    .home-pro-blob {
        right: -36px;
        bottom: -22px;
        width: 270px;
        height: 184px;
    }

    .home-pro-wrap + .site-footer {
        margin-top: -36px;
    }

    .panel-shell {
        flex-direction: column;
    }

    .panel-sidebar {
        display: none;
    }

    .panel-main {
        width: min(100%, 460px);
        margin: 0 auto;
        padding: 12px 12px 90px;
    }

    .panel-topbar {
        border-radius: 20px;
        padding: 14px 16px;
    }

    .panel-mobile-nav {
        position: fixed;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        width: min(100% - 20px, 460px);
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #e7eefb;
        box-shadow: 0 18px 38px rgba(26, 59, 120, 0.14);
        border-radius: 20px;
        padding: 8px 10px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        z-index: 1000;
        backdrop-filter: blur(12px);
    }

    .role-admin + .panel-mobile-nav {
        grid-template-columns: repeat(4, 1fr);
    }

    .panel-mobile-link {
        color: #8694aa;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 0.68rem;
        font-weight: 600;
        min-height: 54px;
        border-radius: 14px;
    }

    .panel-mobile-link i {
        font-size: 1rem;
    }

    .panel-mobile-link:hover {
        color: var(--ninja-blue-700);
        background: #eef4ff;
    }

    .panel-mobile-link.active {
        color: var(--ninja-blue-700);
        background: #edf4ff;
    }

    .site-footer {
        padding-bottom: 86px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        padding-bottom: 4px;
    }

    .home-hero-title {
        font-size: 2.55rem;
    }

    .home-hero-subtitle {
        font-size: 1.05rem;
    }

    .home-rating-box {
        left: 6px;
        top: 56%;
        min-width: 152px;
        padding: 12px 14px;
    }

    .home-search-card {
        margin-top: -20px;
        padding: 16px;
        border-radius: 14px;
    }

    .home-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-steps-wrap h3,
    .home-pro-wrap h3 {
        font-size: 1.9rem;
    }

    .home-steps-grid,
    .home-pro-grid {
        grid-template-columns: 1fr;
    }

    .home-step-top {
        justify-content: center;
    }

    .home-step-line {
        display: none;
    }

    .home-step-icon {
        font-size: 2.5rem;
    }

    .home-pro-visual {
        min-height: 300px;
        justify-content: center;
    }

    .home-pro-phone-image {
        width: min(220px, 95%);
        transform: rotate(8deg) translateY(18px);
    }

    .home-pro-blob {
        width: 205px;
        height: 150px;
        right: 4px;
        bottom: -14px;
    }

    .home-pro-wrap + .site-footer {
        margin-top: -12px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .auth-box {
        margin-top: 10px;
    }

    #homeHeroCarousel .carousel-control-prev,
    #homeHeroCarousel .carousel-control-next {
        display: none;
    }

    .panel-heading {
        font-size: 1.15rem;
    }

    .panel-topbar .btn {
        font-size: 0.75rem;
        padding: 8px 10px;
    }

    .stats-box .display-6 {
        font-size: 1.6rem;
    }

    .card-clean,
    .request-card,
    .stats-box {
        border-radius: 20px;
    }

    .wizard-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* === Chat em tempo real === */
.chat-thread { height: 480px; overflow-y: auto; padding: 12px; background: #f7f9fc; border-radius: 12px; border: 1px solid var(--ninja-border, #e5e9f0); display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { display: flex; gap: 8px; align-items: flex-start; max-width: 80%; }
.chat-bubble.mine { margin-left: auto; flex-direction: row-reverse; }
.chat-bubble .chat-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-bubble .chat-avatar.fallback { background: #eaf2ff; color: #1f5fd6; display: flex; align-items: center; justify-content: center; }
.chat-bubble-body { background: #fff; padding: 8px 12px; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.chat-bubble.mine .chat-bubble-body { background: #1f5fd6; color: #fff; }
.chat-bubble.mine .chat-time, .chat-bubble.mine .chat-sender { color: rgba(255,255,255,.85); }
.chat-sender { font-size: .75rem; font-weight: 600; opacity: .85; margin-bottom: 2px; }
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-time { font-size: .7rem; color: #888; margin-top: 4px; }

/* === Selo verificado (estilo Twitter/X) === */
.verified-seal {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #1d9bf0;
    vertical-align: middle;
    margin-left: 2px;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M20.396 11c-.018-.646-.215-1.275-.57-1.816-.354-.54-.852-.972-1.438-1.246.223-.607.27-1.264.14-1.897-.131-.634-.437-1.218-.882-1.687-.47-.445-1.053-.75-1.687-.882-.633-.13-1.29-.083-1.897.14-.273-.587-.704-1.086-1.245-1.44S11.647 1.62 11 1.604c-.646.017-1.273.213-1.813.568s-.969.854-1.24 1.44c-.608-.223-1.267-.272-1.902-.14-.635.13-1.22.436-1.69.882-.445.47-.749 1.055-.878 1.688-.13.633-.08 1.29.144 1.896-.587.274-1.087.705-1.443 1.245-.356.54-.555 1.17-.574 1.817.02.647.218 1.276.574 1.817.356.54.856.972 1.443 1.245-.224.606-.274 1.263-.144 1.896.13.634.433 1.218.877 1.688.47.443 1.054.747 1.687.878.633.132 1.29.084 1.897-.136.274.586.705 1.084 1.246 1.439.54.354 1.17.551 1.816.569.647-.016 1.276-.213 1.817-.567s.972-.854 1.245-1.44c.604.239 1.266.296 1.903.164.636-.132 1.22-.447 1.68-.907.46-.46.776-1.044.908-1.681s.075-1.299-.165-1.903c.586-.274 1.084-.705 1.439-1.246.354-.54.551-1.17.569-1.816zM9.662 14.85l-3.429-3.428 1.293-1.302 2.072 2.072 4.4-4.794 1.347 1.246z'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M20.396 11c-.018-.646-.215-1.275-.57-1.816-.354-.54-.852-.972-1.438-1.246.223-.607.27-1.264.14-1.897-.131-.634-.437-1.218-.882-1.687-.47-.445-1.053-.75-1.687-.882-.633-.13-1.29-.083-1.897.14-.273-.587-.704-1.086-1.245-1.44S11.647 1.62 11 1.604c-.646.017-1.273.213-1.813.568s-.969.854-1.24 1.44c-.608-.223-1.267-.272-1.902-.14-.635.13-1.22.436-1.69.882-.445.47-.749 1.055-.878 1.688-.13.633-.08 1.29.144 1.896-.587.274-1.087.705-1.443 1.245-.356.54-.555 1.17-.574 1.817.02.647.218 1.276.574 1.817.356.54.856.972 1.443 1.245-.224.606-.274 1.263-.144 1.896.13.634.433 1.218.877 1.688.47.443 1.054.747 1.687.878.633.132 1.29.084 1.897-.136.274.586.705 1.084 1.246 1.439.54.354 1.17.551 1.816.569.647-.016 1.276-.213 1.817-.567s.972-.854 1.245-1.44c.604.239 1.266.296 1.903.164.636-.132 1.22-.447 1.68-.907.46-.46.776-1.044.908-1.681s.075-1.299-.165-1.903c.586-.274 1.084-.705 1.439-1.246.354-.54.551-1.17.569-1.816zM9.662 14.85l-3.429-3.428 1.293-1.302 2.072 2.072 4.4-4.794 1.347 1.246z'/></svg>") no-repeat center / contain;
}
.verified-seal.docs { background-color: #00ba7c; }
.verified-seal i { display: none; }
.verified-seal.lg { width: 26px; height: 26px; }
.verified-seal.sm { width: 16px; height: 16px; }

/* === Cartao de tecnico (perfil publico) === */
.tech-hero { background: linear-gradient(135deg, #1f5fd6 0%, #4d8bf0 100%); color: #fff; border-radius: 18px; padding: 32px; margin-bottom: 20px; position: relative; overflow: hidden; }
.tech-hero::before { content: ''; position: absolute; top: -40%; right: -10%; width: 400px; height: 400px; background: rgba(255,255,255,.07); border-radius: 50%; }
.tech-hero-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgba(255,255,255,.4); object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.tech-hero-avatar.fallback { background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.tech-hero h2 { font-weight: 700; margin: 0; }
.tech-meta-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 100px; font-size: .85rem; margin-right: 6px; margin-top: 6px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.portfolio-item { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; transition: transform .2s; border: 1px solid var(--ninja-border, #e5e9f0); }
.portfolio-item:hover { transform: scale(1.03); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-item .caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; padding: 8px; font-size: .8rem; }


/* === Notificacoes === */
.notif-wrap { position: relative; }
.notif-bell { width: 42px; height: 42px; border-radius: 50% !important; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.notif-bell i { font-size: 1.05rem; }
.notif-dropdown { border: 1px solid #e6e6ef; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display:flex; gap:10px; padding:10px 14px; border-bottom:1px solid #f0f0f5; text-decoration:none; color:inherit; }
.notif-item:hover { background:#f7f9ff; }
.notif-item.notif-unread { background:#eef4ff; }
.notif-item.notif-unread .notif-title { font-weight:600; }
.notif-icon { width:36px; height:36px; border-radius:50%; background:#eaf2ff; color:#1f5fd6; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.notif-body { flex:1; min-width:0; }
.notif-title { font-size:.9rem; }
.notif-text { font-size:.8rem; color:#666; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notif-time { font-size:.7rem; color:#999; margin-top:2px; }


/* === Cartoes de proposta (cliente request_view) === */
.proposal-grid { display: grid; gap: 14px; }
.proposal-card-pro { border: 1px solid #e6e6ef; border-radius: 14px; padding: 16px; background: #fff; transition: box-shadow .15s, transform .15s; }
.proposal-card-pro:hover { box-shadow: 0 8px 24px rgba(31,95,214,.08); transform: translateY(-1px); }
.proposal-card-pro.is-accepted { border-color: #10b981; background: linear-gradient(180deg, #f0fdf4, #fff); }
.proposal-tech-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.proposal-tech-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #eaf2ff; flex-shrink: 0; }
.proposal-tech-avatar.fallback { background:#eaf2ff; color:#1f5fd6; display:flex; align-items:center; justify-content:center; font-size:1.6rem; }
.proposal-tech-info { flex: 1; min-width: 180px; }
.proposal-tech-name { font-size: 1.05rem; font-weight: 600; }
.proposal-tech-name a { color: inherit; text-decoration: none; }
.proposal-tech-name a:hover { color: #1f5fd6; }
.proposal-tech-meta { font-size: .85rem; color: #555; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.proposal-tech-meta .stars-display { color: #f5b400; font-size: .9rem; }
.proposal-tech-phone { font-size: .85rem; color: #444; margin-top: 2px; }
.proposal-price { text-align: right; min-width: 130px; }
.proposal-price small { display: block; font-size: .7rem; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.proposal-price strong { font-size: 1.4rem; color: #1f5fd6; display: block; line-height: 1.1; }
.proposal-deadline { font-size: .8rem; color: #666; margin-top: 4px; }
.proposal-desc { margin-top: 10px; padding: 10px 12px; background: #f7f9ff; border-radius: 10px; font-size: .9rem; color: #333; }
.proposal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.proposal-actions .btn { font-weight: 500; }

/* === Header novo do chat === */
.chat-header-pro { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: linear-gradient(135deg, #1f5fd6, #4d8bf0); color: #fff; border-radius: 14px 14px 0 0; }
.chat-header-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); flex-shrink: 0; }
.chat-header-avatar.fallback { background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name { font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chat-header-meta { font-size: .8rem; opacity: .92; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.chat-header-meta .stars-display { color: #ffd866; font-size: .9rem; }
.chat-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chat-quick-actions code { background: #f0f3f7; padding: 2px 6px; border-radius: 4px; font-size: .8rem; }

/* === Card de proposta dentro do chat === */
.chat-bubble-body.proposal-card { background: linear-gradient(135deg, #fff8ec, #fff); border: 2px solid #f5b400; padding: 12px 14px; }
.chat-bubble.mine .chat-bubble-body.proposal-card { background: linear-gradient(135deg, #eaf2ff, #fff); border-color: #1f5fd6; color: #1c1c1c; }
.chat-bubble.mine .chat-bubble-body.proposal-card .chat-sender, .chat-bubble.mine .chat-bubble-body.proposal-card .chat-time { color: #666; }
.prop-tag { font-size: .7rem; font-weight: 700; letter-spacing: 1px; color: #b07b00; }
.chat-bubble.mine .prop-tag { color: #1f5fd6; }
.prop-price { font-size: 1.5rem; font-weight: 700; color: #1f5fd6; margin: 4px 0; }
.prop-line { font-size: .85rem; color: #555; margin-bottom: 2px; }
.prop-desc { font-size: .9rem; color: #333; margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(0,0,0,.1); }
.prop-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chat-bubble.system .chat-bubble-body.accepted-card { background: #d1fae5; color: #065f46; border: 2px solid #10b981; text-align: center; padding: 12px; }

/* === Home v2 overrides === */

/* Navbar: logo esquerda, menu centro, botoes direita */
.ninja-nav .container { gap: 16px; }
.ninja-nav .home-brand i { color: #1764f4; }
.ninja-nav .home-brand .brand-light { color: #0f172a; font-weight: 700; }
.ninja-nav .home-brand .brand-light::after { content: ''; }
.home-nav-center { flex-direction: row; gap: 26px !important; }
.home-nav-center .nav-link { color: #1f2937 !important; font-weight: 500; padding: 6px 4px !important; }
.home-nav-center .nav-link:hover { color: #1764f4 !important; }
.home-nav-right { gap: 10px !important; flex-direction: row; }
.home-nav-right .btn-primary { background: #1764f4; border-color: #1764f4; border-radius: 10px; }

/* Hero: reduzir imagem do tecnico e ajustar blob */
.home-hero-media { min-height: 360px; align-items: flex-end; justify-content: center; }
.home-hero-media::before {
    right: 4%;
    bottom: -4px;
    top: 12%;
    width: 78%;
    height: 84%;
    border-radius: 50% 46% 44% 52% / 46% 50% 50% 54%;
}
.home-hero-image { max-width: 360px; width: 100%; }
.home-rating-box { left: 8%; top: 44%; }

/* Steps: numero no topo + linha pontilhada horizontal conectando */
.home-steps-grid { position: relative; }
.home-steps-grid::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 12.5%;
    right: 12.5%;
    height: 0;
    border-top: 2px dotted #9bbaf5;
    z-index: 1;
}
.home-step-card { padding-top: 0; }
.home-step-top { flex-direction: column; gap: 0; margin-bottom: 14px; position: relative; z-index: 2; }
.home-step-line { display: none; }
.home-step-number {
    width: 32px;
    height: 32px;
    background: #1764f4;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 0 0 6px #f2f6fc; /* "fura" a linha pontilhada */
}
.home-step-icon { margin-top: 14px; }

/* Para profissionais: celular sobressai sobre o footer (apenas a parte de baixo) */
.home-pro-wrap { padding: 6px 0 0; position: relative; z-index: 1; overflow: visible; }
.home-pro-visual { min-height: 420px; align-items: flex-end; padding-bottom: 0; position: relative; z-index: 3; overflow: visible; }
.home-pro-blob {
    right: -40px;
    bottom: -40px;
    width: 380px;
    height: 360px;
    border-radius: 56% 44% 50% 50% / 60% 50% 50% 40%;
}
.home-pro-phone-image {
    transform: rotate(8deg) translateY(60px);
    width: min(280px, 100%);
    margin-bottom: 0;
    position: relative;
    z-index: 4;
}
/* Sobreposicao do celular sobre o rodape APENAS na home (pagina com .home-pro-wrap).
   Sem o :has(), em outras paginas (ex.: buscar.php) o footer subia 100px e cobria conteudo. */
body:has(.home-pro-wrap) .site-footer { margin-top: -100px !important; padding-top: 0; position: relative; z-index: 2; }
body:has(.home-pro-wrap) .site-footer .footer-top { padding-top: 24px; padding-bottom: 24px; }

/* === Painel mobile — visual de app igual ao mockup === */
@media (max-width: 991px) {
    body { background: #f4f6fb; }
    .panel-main { padding: 0 0 110px !important; width: 100% !important; max-width: 100% !important; }

    /* App bar branco fixo no topo */
    .panel-topbar {
        position: sticky;
        top: 0;
        z-index: 50;
        background: #ffffff !important;
        border: 0 !important;
        border-bottom: 1px solid #eef1f7 !important;
        border-radius: 0 !important;
        box-shadow: 0 1px 0 rgba(15,23,42,.04) !important;
        padding: 14px 16px !important;
        margin: 0 0 12px 0 !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center !important;
    }
    .panel-topbar > div:first-child { flex: 1; min-width: 0; text-align: center; }
    .panel-topbar .panel-heading {
        font-size: 1.05rem !important;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.2;
        text-align: center;
    }
    .panel-topbar > div:first-child > p { display: none; } /* esconde subtitle */
    .panel-topbar > div:last-child {
        order: 3;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    /* Ações secundárias viram chips horizontais abaixo do topbar */
    .panel-topbar > div:last-child .btn:not(.notif-bell):not(.btn-primary) {
        display: none;
    }
    .panel-topbar .notif-bell {
        border: 0 !important;
        background: transparent !important;
        color: #0f172a !important;
        padding: 6px 8px !important;
        font-size: 1.05rem;
    }
    .panel-topbar .btn-primary {
        font-size: .75rem !important;
        padding: 7px 12px !important;
        border-radius: 999px !important;
    }

    /* Conteúdo com padding lateral */
    .panel-content { padding: 0 14px; }

    /* Alerts mais sutis */
    .panel-content .alert {
        border-radius: 14px;
        border: 0;
        padding: 12px 14px;
        font-size: .85rem;
    }

    /* Stats em grid 2x2 compacto, cards brancos com sombra leve */
    .panel-content .row.g-3 > [class*='col-'] { padding: 6px; }
    .stats-box {
        background: #ffffff;
        border: 1px solid #eef1f7;
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 1px 2px rgba(15,23,42,.03);
    }
    .stats-box strong { font-size: .72rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
    .stats-box .display-6 { font-size: 1.6rem !important; font-weight: 800; color: #0f172a; margin-top: 4px; }
    .stats-box .h5 { font-size: 1rem; margin-top: 4px; color: #0f172a; font-weight: 700; }

    /* Cards limpos estilo iOS */
    .card-clean,
    .card {
        background: #ffffff;
        border: 1px solid #eef1f7 !important;
        border-radius: 18px !important;
        box-shadow: 0 1px 2px rgba(15,23,42,.03) !important;
        margin-bottom: 12px;
    }
    .card-clean > .card-header,
    .card > .card-header {
        background: transparent !important;
        border-bottom: 1px solid #f1f4f9 !important;
        padding: 14px 16px !important;
        font-weight: 700;
        color: #0f172a;
        font-size: .95rem;
    }
    .card-clean > .card-body,
    .card > .card-body { padding: 14px 16px !important; }

    /* Ações rápidas — chips horizontais com scroll */
    .card-clean .card-body.d-flex {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .card-clean .card-body.d-flex::-webkit-scrollbar { display: none; }
    .card-clean .card-body.d-flex .btn {
        white-space: nowrap;
        border-radius: 999px !important;
        padding: 8px 14px !important;
        font-size: .8rem !important;
        flex-shrink: 0;
    }

    /* Botoes primarios padrao mobile */
    .panel-content .btn-primary {
        background: #1764f4;
        border-color: #1764f4;
        border-radius: 12px;
        font-weight: 600;
    }
    .panel-content .btn-lg { border-radius: 14px; padding: 12px 16px; font-weight: 700; }

    /* Badges/status pills coloridos */
    .badge.text-bg-primary, .badge.bg-primary { background: #e8f0ff !important; color: #1764f4 !important; font-weight: 700; border-radius: 999px; padding: 5px 10px; }
    .badge.text-bg-warning, .badge.bg-warning { background: #fff4dc !important; color: #b97a07 !important; font-weight: 700; border-radius: 999px; padding: 5px 10px; }
    .badge.text-bg-success, .badge.bg-success { background: #dcfce7 !important; color: #15803d !important; font-weight: 700; border-radius: 999px; padding: 5px 10px; }
    .badge.text-bg-danger, .badge.bg-danger { background: #fee2e2 !important; color: #b91c1c !important; font-weight: 700; border-radius: 999px; padding: 5px 10px; }
    .badge.text-bg-secondary, .badge.bg-secondary { background: #eef1f7 !important; color: #475569 !important; font-weight: 700; border-radius: 999px; padding: 5px 10px; }

    /* Inputs/forms com cara de app */
    .panel-content .form-control,
    .panel-content .form-select {
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        padding: 12px 14px;
        font-size: .95rem;
    }
    .panel-content .form-label { font-size: .8rem; font-weight: 600; color: #475569; margin-bottom: 6px; }

    /* Tabelas vira lista de cards */
    .panel-content .table-responsive { border: 0; background: transparent; }
    .panel-content table { font-size: .88rem; }

    /* Ajusta bottom nav (já existe) — deixar com mais sombra */
    .panel-mobile-nav {
        box-shadow: 0 -2px 16px rgba(15,23,42,.08), 0 -1px 0 #eef1f7 !important;
        border: 0 !important;
        border-top: 1px solid #eef1f7 !important;
        border-radius: 24px 24px 0 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom)) 8px !important;
        background: #ffffff !important;
    }
    .panel-mobile-link.active { color: #1764f4; background: transparent; }
    .panel-mobile-link.active i { color: #1764f4; }
}


/* === Pagina de busca de profissionais === */
.buscar-page .tech-card{background:#fff;border:1px solid #eef1f7;border-radius:18px;padding:20px;box-shadow:0 4px 18px rgba(15,30,60,0.04);transition:transform .2s ease, box-shadow .2s ease;display:flex;flex-direction:column}
.buscar-page .tech-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(15,30,60,0.08)}
.buscar-page .tech-card-top{display:flex;gap:14px;align-items:flex-start}
.buscar-page .tech-avatar-wrap{position:relative;flex-shrink:0}
.buscar-page .tech-avatar{width:88px;height:88px;border-radius:50%;object-fit:cover;border:3px solid #f2f6fc;background:#1764f4;box-shadow:0 4px 12px rgba(23,100,244,0.15)}
.buscar-page .tech-name{font-size:1.1rem;font-weight:700;color:#0f1e3c;line-height:1.2;display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.buscar-page .ig-verified{display:inline-flex;align-items:center;line-height:1;flex-shrink:0}
.buscar-page .ig-verified svg{display:block}
.buscar-page .tech-rating{color:#f4b400;font-size:.85rem}
.buscar-page .tech-bio{color:#56607a;font-size:.9rem;line-height:1.5;min-height:54px}
.buscar-page .tech-phone-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:12px;border-top:1px dashed #eef1f7;margin-top:auto}
.buscar-page .tech-phone-masked{font-family:'Space Grotesk',monospace;color:#0f1e3c;font-size:1rem;font-weight:600}
.buscar-page .tech-phone-masked .fa-phone{color:#1764f4}
.buscar-page .phone-blur{filter:blur(4px);user-select:none;letter-spacing:2px;color:#0f1e3c;background:#e7eef9;padding:2px 8px;border-radius:6px}
.buscar-page .buscar-header{border:1px solid #eef1f7;border-radius:18px;box-shadow:0 4px 18px rgba(15,30,60,0.04)}
@media (max-width:575px){.buscar-page .tech-card{padding:16px}.buscar-page .tech-avatar{width:72px;height:72px}.buscar-page .tech-bio{min-height:0}}

/* === Loading skeletons === */
.skeleton{position:relative;overflow:hidden;background:linear-gradient(90deg,#1a1f3a 0%,#252c52 50%,#1a1f3a 100%);background-size:200% 100%;animation:nj-shimmer 1.4s ease-in-out infinite;border-radius:8px;color:transparent !important}
.skeleton-row{height:14px;margin:6px 0}
.skeleton-card{height:120px}
.skeleton-avatar{width:48px;height:48px;border-radius:50%}
@keyframes nj-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* Imagem preview do compressor */
.ninja-img-preview{box-shadow:0 4px 16px rgba(0,0,0,.3)}

/* Botoes/Touch melhorados */
@media (max-width: 768px){
    .btn{min-height:42px}
    .form-control,.form-select{min-height:42px;font-size:16px}
}

/* === Chat: imagem === */
.chat-image-link { display: inline-block; max-width: 280px; margin: 4px 0; }
.chat-image { max-width: 100%; max-height: 280px; border-radius: 8px; display: block; cursor: zoom-in; border: 1px solid #e3e8ef; }

/* === Chat: indicador "digitando..." === */
.chat-typing-indicator { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; color: #61708a; font-style: italic; }
.chat-typing-indicator .dots { display: inline-flex; gap: 3px; }
.chat-typing-indicator .dots span { width: 6px; height: 6px; background: #1f5fd6; border-radius: 50%; opacity: 0.4; animation: ninjaTypingBlink 1.2s infinite both; }
.chat-typing-indicator .dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ninjaTypingBlink { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); } 40% { opacity: 1; transform: scale(1); } }

/* === Chat: quick replies (frases prontas) === */
.chat-quickreplies { position: absolute; bottom: calc(100% + 4px); left: 0; right: 0; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid #dbe7ff; border-radius: 10px; box-shadow: 0 6px 18px rgba(15,44,89,0.12); z-index: 1050; padding: 4px; }
.chat-quickreplies .qr-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.chat-quickreplies .qr-item:hover, .chat-quickreplies .qr-item:focus { background: #eaf2ff; outline: none; }
.chat-quickreplies .qr-cmd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #1f5fd6; font-weight: 600; }
.chat-quickreplies .qr-text { font-size: 13px; color: #16253d; line-height: 1.35; white-space: normal; }

/* === Botoes extras no formulario de chat === */
.btn-image-send { flex-shrink: 0; }

/* === Lightbox global de imagens === */
.ninja-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; z-index: 99999; padding: 24px; }
.ninja-lightbox.show { display: flex; animation: ninjaLbFade .15s ease; }
.ninja-lightbox img { max-width: 95vw; max-height: 95vh; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.6); background: #fff; }
.ninja-lightbox-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: #1f5fd6; color: #fff; border: none; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.45); transition: background .15s, transform .15s; }
.ninja-lightbox-close:hover { background: #0b4ec2; transform: scale(1.06); }
.ninja-lightbox-close:focus { outline: 3px solid rgba(255,255,255,0.35); }
@keyframes ninjaLbFade { from { opacity: 0; } to { opacity: 1; } }
img.ninja-zoomable, img.chat-avatar, img.chat-image-msg, img.chat-image, img.avatar, img.profile-avatar, img.user-avatar { cursor: zoom-in; }

/* === Widget de avaliacao do suporte === */
.support-rating-widget { margin: 12px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #eaf2ff 0%, #f7faff 100%); border: 1px solid #cfe0ff; box-shadow: 0 2px 8px rgba(31,95,214,0.08); }
.support-rating-widget .srw-title { font-weight: 600; color: #16253d; margin-bottom: 6px; }
.support-rating-widget .srw-stars { display: inline-flex; gap: 4px; }
.support-rating-widget .srw-stars button { background: transparent; border: 0; padding: 4px; cursor: pointer; font-size: 26px; color: #cbd5e1; transition: transform .1s, color .1s; }
.support-rating-widget .srw-stars button:hover { transform: scale(1.15); }
.support-rating-widget .srw-stars button.active { color: #f5b400; }
.support-rating-widget .srw-thanks { padding: 8px 0; font-weight: 500; }
