:root {
    --tdv-primary: #1A4275;
    --tdv-primary-dark: #123358;
    --tdv-accent: #F99D1C;
    --tdv-ink: #17202a;
    --tdv-muted: #5b6777;
    --tdv-soft: #f4f7fb;
    --tdv-mint: #dff8ec;
    --tdv-border: #dce4ef;
    --tdv-touch: 48px;
    --tdv-radius: 1rem;
    --tdv-bottom-nav: 72px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    color: var(--tdv-ink);
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: calc(var(--tdv-bottom-nav) + env(safe-area-inset-bottom, 0px));
}

body.no-bottom-nav {
    padding-bottom: 0;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

.navbar-brand {
    letter-spacing: -.04em;
    color: var(--tdv-ink);
    font-size: 1.25rem;
    text-decoration: none;
}

.navbar-toggler {
    min-width: var(--tdv-touch);
    min-height: var(--tdv-touch);
    border-color: var(--tdv-border);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(26, 66, 117, .2);
}

@media (max-width: 991.98px) {
    #mainNav.show {
        display: block;
        width: 100%;
        border-top: 1px solid var(--tdv-border);
        margin-top: .65rem;
        padding-top: .35rem;
        background: #fff;
    }

    #mainNav .nav-link {
        font-weight: 600;
        border-radius: .75rem;
        padding-left: .85rem !important;
        padding-right: .85rem !important;
    }

    #mainNav .nav-link:hover,
    #mainNav .nav-link:focus {
        background: #eef4ff;
    }
}

.brand-mark {
    color: var(--tdv-primary);
}

.brand-accent {
    color: var(--tdv-accent);
}

.brand-mark-img {
    width: 40px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.brand-lockup,
.brand-lockup-hero {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.brand-lockup {
    max-width: 280px;
}

.brand-lockup-hero {
    max-width: min(100%, 400px);
}

.hero .page-title {
    font-size: clamp(1.75rem, 3.4vw, 2.55rem);
    line-height: 1.2;
    max-width: 22ch;
    font-weight: 800;
}

@media (min-width: 992px) {
    .hero .page-title {
        font-size: clamp(2rem, 2.6vw, 2.55rem);
        max-width: none;
    }

    .hero .col-lg-7 {
        padding-top: 2.75rem;
        padding-right: 1.75rem;
    }
}

.hero-card .btn-primary,
.hero-cta-btn {
    min-height: 5.25rem;
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.navbar .btn-primary {
    min-height: 2.85rem;
    padding-top: .55rem;
    padding-bottom: .55rem;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    margin-left: .35rem;
    margin-right: .35rem;
}

.brand-wordmark {
    font-weight: 700;
    letter-spacing: -.04em;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: var(--tdv-muted);
    font-size: .875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--tdv-border);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3.25rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    background: transparent;
    color: var(--tdv-muted);
    border-radius: .75rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--tdv-primary);
    background: #eef4ff;
    outline: none;
}

.partner-logo-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: .75rem;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--tdv-border);
}

.partner-logo-thumb.partner-logo-placeholder {
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: var(--tdv-primary);
    border: none;
}

.btn-primary {
    --bs-btn-bg: var(--tdv-primary);
    --bs-btn-border-color: var(--tdv-primary);
    --bs-btn-hover-bg: var(--tdv-primary-dark);
    --bs-btn-hover-border-color: var(--tdv-primary-dark);
}

.btn-lg,
.form-control-lg,
.form-select-lg {
    min-height: var(--tdv-touch);
}

.form-label {
    font-weight: 600;
    margin-bottom: .4rem;
}

.form-control,
.form-select {
    font-size: 1.05rem;
}

.form-control-lg,
.form-select-lg {
    font-size: 1.08rem;
    border-radius: .85rem;
}

.btn-lg {
    border-radius: .85rem;
    font-weight: 600;
}

.page-section {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .page-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.page-title {
    font-size: clamp(1.6rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.page-lead {
    color: var(--tdv-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.eyebrow {
    color: var(--tdv-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.surface-card {
    background: #fff;
    border: 1px solid var(--tdv-border);
    border-radius: var(--tdv-radius);
    box-shadow: 0 .35rem 1rem rgba(23, 32, 42, .04);
}

.form-section {
    border-top: 1px solid var(--tdv-border);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .85rem;
}

.hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(21, 94, 239, .14), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f2f7ff 100%);
    padding-top: .65rem;
    padding-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .hero {
        padding-top: .75rem;
        padding-bottom: 1.5rem;
    }
}

.hero-card,
.claim-box {
    background: #fff;
    border: 1px solid #dce7fa;
}

.hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-banner-carousel {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #dce7fa;
    background: #fff;
    box-shadow: 0 .35rem 1rem rgba(19, 33, 68, .06);
}

.hero-banner-track {
    position: relative;
    aspect-ratio: 2 / 1;
    background: #eef3fb;
}

.hero-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
    pointer-events: none;
}

.hero-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

.hero-banner-selo {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 2;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .28rem .55rem;
    border-radius: .45rem;
    line-height: 1;
    box-shadow: 0 .15rem .4rem rgba(19, 33, 68, .12);
}

.hero-banner-selo-parceiro {
    color: #0d3b6e;
    background: #e8f0ff;
}

.hero-banner-selo-apoio {
    color: #1a5c3a;
    background: #e6f6ec;
}

.hero-banner-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    padding: .55rem .75rem .7rem;
    background: #fff;
}

.hero-banner-dot {
    width: .55rem;
    height: .55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c5d2e8;
    cursor: pointer;
}

.hero-banner-dot.is-active {
    background: #1a4275;
}

.admin-banner-preview {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: #eef3fb;
    border: 1px solid #dce7fa;
}

.admin-banner-thumb {
    width: 112px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef3fb;
    border: 1px solid #dce7fa;
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner-slide {
        transition: none;
    }
}

.filter-panel {
    background: #fff;
    border: 1px solid #e5eaf1;
}

.object-card {
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.object-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .7rem 1.5rem rgba(19, 33, 68, .12) !important;
}

.object-photo {
    aspect-ratio: 16 / 9;
    max-height: 180px;
    width: 100%;
    object-fit: cover;
    background: #e8edf5;
}

@media (min-width: 576px) {
    .object-photo {
        aspect-ratio: 4 / 3;
        max-height: none;
    }
}

.placeholder-photo {
    background:
        linear-gradient(135deg, transparent 45%, rgba(255,255,255,.5) 45% 55%, transparent 55%),
        #e8edf5;
}

.detail-photo {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e8edf5;
}

.text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-state {
    background: var(--tdv-soft);
    border: 1px dashed #bdc8d8;
}

.partner-note,
.privacy-alert {
    background: var(--tdv-mint);
    border: 1px solid #a6e6c9;
}

.safety-note {
    border-left: 3px solid #f0ad25;
    padding-left: 1rem;
}

.partner-contact-btn {
    width: 100%;
    white-space: normal;
}

@media (min-width: 992px) {
    .partner-contact-btn {
        width: auto;
        white-space: nowrap;
    }
}

.partner-hero {
    background: linear-gradient(135deg, color-mix(in srgb, var(--partner-color) 12%, white), #fff);
    border-bottom: 4px solid var(--partner-color);
}

.partner-logo {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

@media (min-width: 768px) {
    .partner-logo {
        width: 140px;
        height: 140px;
        border-radius: 28px;
    }
}

.partner-logo-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--partner-color);
    font-size: 2.75rem;
    font-weight: 800;
}

.auth-card {
    max-width: 520px;
}

.inbox-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    flex-shrink: 0;
}

.conversation {
    min-height: 220px;
}

.message-row {
    display: flex;
}

.message-row.message-mine {
    justify-content: flex-end;
}

.message {
    width: min(92%, 620px);
    background: #eef2f7;
}

.message-mine .message {
    background: #e1ebff;
}

.claim-decision {
    background: #fff;
    border: 1px solid #dce4ef;
}

.photo-picker-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.photo-picker {
    display: block;
    width: 100%;
    border: 2px dashed #b8c7de;
    border-radius: var(--tdv-radius);
    background: #f7faff;
    min-height: 140px;
    padding: 1.25rem .75rem;
    text-align: center;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.photo-picker:hover,
.photo-picker:focus-visible {
    border-color: var(--tdv-primary);
    background: #eef4ff;
    outline: none;
}

.photo-picker:disabled {
    opacity: .55;
    cursor: wait;
}

.photo-picker-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto .75rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #dbe7ff;
    color: var(--tdv-primary);
    line-height: 1;
}

.photo-picker-title {
    font-weight: 700;
    margin-bottom: .25rem;
}

.photo-picker-hint {
    color: var(--tdv-muted);
    font-size: .92rem;
    margin: 0;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.action-stack .btn {
    width: 100%;
}

@media (min-width: 576px) {
    .action-stack.action-stack-row {
        flex-direction: row;
        justify-content: flex-end;
    }

    .action-stack.action-stack-row .btn {
        width: auto;
        min-width: 160px;
    }
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .25rem;
    background: #fff;
    border-top: 1px solid var(--tdv-border);
    padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -.4rem 1rem rgba(23, 32, 42, .06);
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--tdv-muted);
    text-decoration: none;
    min-height: 56px;
    border-radius: .85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.1;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a:focus,
.mobile-bottom-nav button:hover,
.mobile-bottom-nav button:focus {
    color: var(--tdv-primary);
    background: #eef4ff;
}

.mobile-bottom-nav .nav-ico {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
    position: relative;
}

.mobile-bottom-nav .nav-ico-search::before {
    content: "";
    position: absolute;
    inset: .1rem .2rem .25rem .1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.mobile-bottom-nav .nav-ico-search::after {
    content: "";
    position: absolute;
    width: .55rem;
    height: 2px;
    right: 0;
    bottom: .15rem;
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 2px;
}

.mobile-bottom-nav .nav-ico-plus::before,
.mobile-bottom-nav .nav-ico-plus::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
}

.mobile-bottom-nav .nav-ico-plus::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-bottom-nav .nav-ico-plus::after {
    height: 2px;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-bottom-nav .nav-ico-user::before {
    content: "";
    position: absolute;
    width: .55rem;
    height: .55rem;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border: 2px solid currentColor;
    border-radius: 50%;
}

.mobile-bottom-nav .nav-ico-user::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1.1rem;
    height: .55rem;
    transform: translateX(-50%);
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: .7rem .7rem 0 0;
}

.mobile-bottom-nav .nav-ico-chat::before {
    content: "";
    position: absolute;
    inset: 0 .05rem .2rem;
    border: 2px solid currentColor;
    border-radius: .35rem;
}

.mobile-bottom-nav .nav-ico-chat::after {
    content: "";
    position: absolute;
    left: .35rem;
    bottom: 0;
    width: .45rem;
    height: .35rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skewX(-25deg);
}

.mobile-bottom-nav .nav-cta {
    color: #fff;
    background: var(--tdv-primary);
}

.mobile-bottom-nav .nav-cta:hover,
.mobile-bottom-nav .nav-cta:focus {
    color: #fff;
    background: var(--tdv-primary-dark);
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.inbox-item {
    min-height: 88px;
}

.site-footer {
    margin-bottom: .5rem;
}

@media (min-width: 992px) {
    .site-footer {
        margin-bottom: 0;
    }
}

textarea {
    resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
