/**
 * DL Car Consulting — public website custom styles.
 * Tailwind CDN supplies utilities; this file defines brand tokens and
 * component classes used in templates.
 *
 * Design tokens are copied verbatim from the fleet portal for consistency.
 */

/* ==========================================
   CSS Variables — Brand Tokens
   ========================================== */
:root {
    --brand-primary: #151459;
    --brand-secondary: #45A3DA;
    --brand-light: #CEEBFF;
    --brand-light-muted: rgba(206,235,255,0.3);
    --brand-white: #FFFFFF;
    --brand-accent: #FF6B35;
    --brand-success: #00D9A3;
    --brand-warning: #D4AF37;
    --brand-danger: #FF6B35;
    --brand-info: #45A3DA;

    --accent-orange: #FF6B35;
    --accent-gold: #D4AF37;
    --accent-green: #00D9A3;

    --text-primary: #2C3E50;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F4F6;
    --bg-tertiary: #E5E7EB;

    --border-color: #E5E7EB;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.875rem;
    --border-radius-xl: 1rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --header-height: 64px;
    --container-max: 1200px;

    --gradient-hero: linear-gradient(135deg, #151459 0%, #45A3DA 100%);
    --gradient-cta: linear-gradient(135deg, #151459 0%, #FF6B35 100%);
}

/* ==========================================
   Base
   ========================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-secondary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand-primary); }

h1, h2, h3, h4 { color: var(--brand-primary); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.2; font-weight: 800; }
h3 { font-size: 1.25rem; color: var(--brand-secondary); }
h4 { font-size: 1.0625rem; color: var(--brand-secondary); font-weight: 600; }

/* ==========================================
   Container / Layout
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section--muted { background: var(--bg-secondary); }

.section-title { text-align: center; margin: 0 0 0.5rem; }
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin: 0 0 2rem;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: white;
    background: var(--brand-primary);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { opacity: 0.92; color: white; }
.btn:disabled, .btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary   { background: var(--brand-primary);   color: white; }
.btn-secondary { background: var(--brand-secondary); color: white; }
.btn-success   { background: var(--brand-success);   color: white; }
.btn-danger    { background: var(--brand-danger);    color: white; }
.btn-accent    { background: var(--accent-gold);     color: white; }
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text-primary); }
.btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-outline:hover { background: var(--brand-primary); color: white; }

.btn-wa        { background: #25D366;                color: white; gap: 0.5rem; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 0.5rem; }

/* ==========================================
   Badges
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1;
    letter-spacing: 0.01em;
}
.badge-primary   { background: var(--brand-primary);   color: white; }
.badge-secondary { background: var(--brand-secondary); color: white; }
.badge-success   { background: #E6FFF7;                color: #065F46; }
.badge-warning   { background: #FFF8E1;                color: #92400E; }
.badge-danger    { background: #FFF0EB;                color: #991B1B; }
.badge-info      { background: var(--brand-light);     color: var(--brand-primary); }
.badge-green     { background: var(--accent-green);    color: white; }
.badge-gold      { background: var(--accent-gold);     color: white; }
.badge-orange    { background: var(--accent-orange);   color: white; }
.badge-gray      { background: var(--bg-secondary);    color: #374151; }
.badge-blue      { background: var(--brand-light);     color: var(--brand-primary); }

/* Listing-specific badge positions */
.listing-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.375rem;
    z-index: 2;
}

/* ==========================================
   Cards
   ========================================== */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}
.card-body { padding: 1.25rem; }

/* ==========================================
   Forms
   ========================================== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}
.form-hint { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }
.form-error { font-size: 0.75rem; color: var(--brand-danger); margin-top: 0.25rem; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(21,20,89,0.1);
}
.form-textarea { resize: vertical; min-height: 6rem; }
.form-input.is-error, .form-select.is-error, .form-textarea.is-error {
    border-color: var(--brand-danger);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; }

/* reCAPTCHA v3: badge hidden, Google's text notice shown under the form instead */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-notice { font-size: 0.6875rem; color: var(--text-secondary); text-align: center; margin: 0.75rem 0 0; line-height: 1.5; }
.recaptcha-notice a { color: var(--text-secondary); text-decoration: underline; }

/* Honeypot — hidden from humans */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ==========================================
   Header / Nav (navy bar — matches fleet.dlcarconsulting.pt)
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--brand-primary);
    height: var(--header-height);
    display: flex;
    align-items: center;
}
.site-header__inner {
    width: 100%;   /* full width like the fleet portal header */
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-brand {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}
.site-brand__logo {
    height: 36px;
    width: auto;
    display: block;
}
/* "| STAND" product label next to the logo (same as "| FLEET" on the fleet portal) */
.site-brand__sep { color: rgba(255,255,255,0.2); margin: 0 0.5rem; font-size: 1.2rem; font-weight: 300; }
.site-brand__label { color: rgba(255,255,255,0.5); font-size: 0.8rem; font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; }
.site-brand__logo--sm { height: 32px; }

/* Auth pages (admin login / change password) — same look as the fleet portal login */
.auth-page { min-height: 100vh; min-height: 100dvh; margin: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); }
.auth-page__inner { width: 100%; max-width: 28rem; }
.auth-page__brand { justify-content: center; margin-bottom: 2rem; }
.auth-page__brand .site-brand__logo { height: 64px; }
.auth-page__brand .site-brand__sep { font-size: 1.875rem; margin: 0 1rem; }
.auth-page__brand .site-brand__label { font-size: 1.5rem; color: rgba(255,255,255,0.6); }
.auth-card { background: var(--bg-primary); border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); padding: 2rem; }
.auth-card__back { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; margin-bottom: 1.25rem; }
.auth-card__back:hover { color: var(--brand-primary); }
.auth-card h1 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); }
.auth-card .btn-primary { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.auth-page__footer { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.875rem; margin-top: 1.5rem; }
@media (max-width: 480px) {
    .auth-page__brand .site-brand__logo { height: 44px; }
    .auth-page__brand .site-brand__label { font-size: 1.125rem; }
    .auth-card { padding: 1.5rem; }
}
.site-nav {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
    align-items: center;
}
.site-nav a {
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-nav a:hover { color: white; }
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.lang-switcher {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
}
.lang-switcher a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.15s ease;
}
.lang-switcher a:hover { color: white; }
.lang-switcher a.is-active { color: white; }
.lang-switcher__sep { color: rgba(255,255,255,0.2); }
.site-header__cta {
    background: white;
    color: var(--brand-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.site-header__cta:hover {
    background: rgba(255,255,255,0.9);
    color: var(--brand-primary);
}
[x-cloak] { display: none !important; }

/* Mobile menu (hamburger) — replaces nav + CTA at ≤768px */
.site-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: -0.5rem;
    background: none;
    border: 0;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
}
.site-menu-toggle:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    background: var(--brand-primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 24px -12px rgba(0,0,0,0.35);
}
.site-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 0.25rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-menu a.is-active { color: white; font-weight: 700; }
.site-menu a.site-menu__wa {
    justify-content: center;
    margin-top: 1rem;
    padding: 0.8rem;
    border: 0;
    border-radius: 0.5rem;
    background: #25D366;
    color: white;
    font-weight: 700;
}
@media (min-width: 769px) { .site-menu { display: none !important; } }

@media (max-width: 768px) {
    .site-header__inner { padding: 0 1rem; gap: 1rem; }
    .site-nav { gap: 1rem; font-size: 0.875rem; }
    .site-nav a:not(.site-header__cta) { display: none; }
    .site-header__cta { display: none; }
    .site-menu-toggle { display: inline-flex; }
    .site-brand__logo { height: 30px; }
}

/* ==========================================
   Footer (slim — matches the fleet landing)
   ========================================== */
.site-footer {
    background: var(--brand-primary);
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-footer__logo { height: 28px; width: auto; opacity: 0.7; }
.site-footer__brand { display: flex; }
.site-footer__brand:hover .site-footer__logo { opacity: 1; }
.site-footer__center { text-align: center; }
.site-footer__center p { margin: 0; color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.site-footer__legal { margin-top: 0.25rem !important; display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.site-footer__legal span { color: rgba(255,255,255,0.2); }
.site-footer a { color: rgba(255,255,255,0.5); }
.site-footer a:hover { color: rgba(255,255,255,0.9); }
.site-footer__right { display: flex; align-items: center; gap: 1.25rem; }
.site-footer__social { display: flex; gap: 0.75rem; align-items: center; }
.site-footer__social a { display: flex; color: rgba(255,255,255,0.45); }
.site-footer__divider { color: rgba(255,255,255,0.15); }
.site-footer .lang-switcher { font-size: 0.78rem; }
.site-footer__fleet { font-size: 0.78rem; font-weight: 500; }

@media (max-width: 768px) {
    .site-footer {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
        text-align: center;
    }
    .site-footer__center { order: 2; }
    .site-footer__right { order: 3; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
}

/* ==========================================
   Listing card (grid)
   ========================================== */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.listing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.listing-card:hover { box-shadow: 0 12px 28px -12px rgba(21,20,89,0.25); transform: translateY(-2px); color: inherit; }
.listing-card__placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem;
    background: linear-gradient(135deg, var(--brand-light), #F3F4F6);
    color: var(--brand-secondary);
    font-size: 0.75rem; font-weight: 500;
}
.listing-card__placeholder span { color: var(--text-secondary); }
.listing-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--bg-tertiary);
    overflow: hidden;
}
.listing-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.listing-card:hover .listing-card__img { transform: scale(1.03); }
.listing-card__body { padding: 1rem 1.125rem 1.125rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.listing-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0;
    line-height: 1.25;
}
.listing-card__meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.listing-card__meta span + span::before { content: "·"; margin-right: 0.625rem; color: var(--text-muted); }

/* Chip row inside listing cards — replaces dot-separated meta */
.listing-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3125rem;
    margin: 0.125rem 0 0.25rem;
}
.listing-card__footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.listing-card__price {
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--brand-primary);
}
.listing-card__go {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: rgba(206,235,255,0.6);
    color: var(--brand-secondary);
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.15s ease;
}
.listing-card:hover .listing-card__go { background: var(--brand-light); }
.listing-card__chips .chip--sm { background: rgba(206,235,255,0.45); border-color: transparent; color: var(--brand-primary); }

/* ==========================================
   Inner page shell (viaturas, contacto) — compact
   version of the landing hero
   ========================================== */
.page-hero {
    background: linear-gradient(135deg, #151459 0%, #1a1a7a 50%, #45A3DA 100%);
    padding: 3rem 2.5rem 3.25rem;
    position: relative;
    overflow: hidden;
}
.page-hero--overlap { padding-bottom: 5.5rem; }
.page-hero__deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.04); pointer-events: none; }
.page-hero__deco--c1 { bottom: -80px; right: -40px; width: 260px; height: 260px; }
.page-hero__deco--c2 { top: -70px; right: 240px; width: 170px; height: 170px; }
.page-hero__inner { position: relative; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.page-hero h1 { color: white; font-size: clamp(1.75rem, 3.5vw, 2.375rem); font-weight: 800; margin: 0 0 0.5rem; line-height: 1.15; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; margin: 0; max-width: 560px; }

.page-body { background: var(--bg-secondary); padding: 2rem 0 4rem; }
.page-body--tight { padding-top: 1.25rem; }
.page-body--overlap { padding-top: 0; }
.site-main:has(.page-body) { padding-bottom: 0; }

/* Generic white card used on detail + contact pages */
.detail-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 1.5rem;
}
.detail-card + .detail-card { margin-top: 1.25rem; }
.detail-card h2 { font-size: 1.125rem; font-weight: 800; margin: 0 0 1rem; }
.detail-card__text { white-space: pre-line; color: var(--text-primary); line-height: 1.7; }
.detail-card--flush { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

.btn-pill--back { margin-bottom: 1.25rem; }

/* Legal / long-form text (privacy policy) */
.container.legal-container { max-width: 860px; }
.legal-text { padding: 2rem; }
.legal-text h2 { font-size: 1.125rem; font-weight: 800; color: var(--brand-primary); margin: 1.75rem 0 0.5rem; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p, .legal-text li { color: var(--text-primary); line-height: 1.7; font-size: 0.9375rem; }
.legal-text p { margin: 0 0 0.75rem; }
.legal-text ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 0.75rem; display: grid; gap: 0.5rem; }
.legal-text a { color: var(--brand-secondary); text-decoration: underline; }
.legal-text h3 { font-size: 1rem; font-weight: 700; color: var(--brand-secondary); margin: 1.25rem 0 0.5rem; }
@media (max-width: 640px) { .legal-text { padding: 1.25rem; } }

/* ==========================================
   Listings page — filters + results layout
   ========================================== */
.listings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    align-items: start;
}
.listing-filters {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 1.25rem;
}
.listing-filters-wrap { position: sticky; top: calc(var(--header-height) + 1rem); }
.listing-filters h3 {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1rem; font-weight: 700; color: var(--brand-primary);
    margin: 0 0 1rem;
}
.listing-filters .form-group { margin-bottom: 0.875rem; }
.listing-filters .form-label { font-size: 0.8125rem; color: var(--text-secondary); }
.listing-filters__actions { margin-top: 1.25rem; display: grid; gap: 0.625rem; text-align: center; }
.listing-filters__clear { font-size: 0.8125rem; color: var(--text-secondary); }
.listing-filters__clear:hover { color: var(--brand-primary); }

.filters-toggle {
    display: none;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 0.875rem 1rem;
    font: inherit;
    font-weight: 600;
    color: var(--brand-primary);
    cursor: pointer;
}
.filters-toggle__count {
    background: var(--brand-primary); color: white;
    border-radius: 9999px; font-size: 0.6875rem; padding: 0.125rem 0.5rem;
}
.filters-toggle__chev { margin-left: auto; transition: transform 0.2s ease; }
.filters-toggle__chev.is-open { transform: rotate(180deg); }

.listings-results__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.listings-results__count {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.375rem 0.875rem;
    color: var(--brand-primary);
    font-size: 0.8125rem;
    font-weight: 600;
}
.listings-results__sort { margin-left: auto; }
.listings-results__sort .form-select { border-radius: 9999px; padding: 0.4375rem 2rem 0.4375rem 1rem; font-size: 0.875rem; background-color: white; }

.empty-card__actions { display: flex; gap: 0.75rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.listings-layout .empty-card { max-width: none; }

@media (max-width: 900px) {
    .listings-layout { grid-template-columns: 1fr; gap: 1rem; }
    .filters-toggle { display: flex; }
    .listing-filters-wrap { position: static; display: none; margin-top: 0.75rem; }
    .listing-filters-wrap.is-open { display: block; }
}

/* ==========================================
   Listing detail
   ========================================== */
.listing-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.listing-detail__main > .gallery { margin-bottom: 1.25rem; }

.gallery {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.gallery__hero { aspect-ratio: 16 / 10; background: var(--bg-tertiary); }
.gallery__hero img { width: 100%; height: 100%; object-fit: cover; }
.gallery__hero--empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    background: linear-gradient(135deg, var(--brand-light), #F3F4F6);
    color: var(--brand-secondary);
}
.gallery__hero--empty span { color: var(--text-secondary); font-size: 0.875rem; }
.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.375rem;
    padding: 0.5rem;
}
.gallery__thumb {
    aspect-ratio: 3 / 2;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-tertiary);
    padding: 0;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--brand-secondary); }

.listing-detail__side { position: sticky; top: calc(var(--header-height) + 1rem); }
.detail-card--price { border-top: 4px solid var(--brand-primary); }
.detail-card--price .badge { margin-bottom: 0.625rem; }
.listing-detail__title { margin: 0 0 0.25rem; color: var(--brand-primary); font-size: 1.625rem; font-weight: 800; line-height: 1.2; }
.listing-detail__sub { color: var(--text-secondary); font-size: 0.875rem; margin: 0; }
.listing-detail__price { font-size: 2.125rem; font-weight: 800; color: var(--brand-primary); margin: 0.75rem 0 0.5rem; font-variant-numeric: tabular-nums; }
.listing-detail__perks { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.25rem; }
.listing-detail__perks span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-primary); }
.listing-detail__cta-h {
    font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-secondary); font-weight: 600;
    border-top: 1px solid var(--border-color); padding-top: 1rem; margin: 0 0 0.75rem;
}
.listing-detail__ctas { display: grid; gap: 0.5rem; }
.listing-detail__ctas .btn { gap: 0.5rem; }
.btn-whatsapp--block { width: 100%; justify-content: center; padding: 0.75rem 1rem; font-size: 0.9375rem; }

.spec-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.75rem;
}
.spec-tile {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 0.75rem;
}
.spec-tile__icon {
    width: 2.25rem; height: 2.25rem; flex-shrink: 0;
    border-radius: 0.625rem;
    background: var(--brand-light);
    display: flex; align-items: center; justify-content: center;
}
.spec-tile__text { display: flex; flex-direction: column; min-width: 0; }
.spec-tile__label { font-size: 0.6875rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.spec-tile__value { font-size: 0.9375rem; font-weight: 700; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
.spec-tile__value small { font-weight: 500; color: var(--text-secondary); font-size: 0.75rem; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.spec-table th, .spec-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
    vertical-align: top;
}
.spec-table th { text-align: left; font-weight: 500; color: var(--text-secondary); width: 45%; }
.spec-table td { color: var(--text-primary); font-weight: 600; }

.feature-group + .feature-group { margin-top: 1.25rem; }
.feature-group h4 { color: var(--brand-secondary); font-size: 0.9375rem; margin: 0 0 0.625rem; }
.feature-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    font-size: 0.875rem;
}
.feature-group li {
    color: var(--text-primary);
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.25rem;
}
.feature-group li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    width: 1.25rem; height: 1.25rem;
    border-radius: 50%;
    background: #E6FFF7;
    color: var(--accent-green);
    font-weight: 800;
    font-size: 0.6875rem;
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
    .listing-detail { grid-template-columns: 1fr; }
    .listing-detail__side { position: static; }
}

/* ==========================================
   Contact page
   ========================================== */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: -3rem;
    position: relative;
    margin-bottom: 1.5rem;
}
.channel-card {
    display: flex; align-items: center; gap: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 4px 16px -6px rgba(21,20,89,0.18);
    padding: 1.125rem 1.25rem;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.channel-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(21,20,89,0.3); color: inherit; }
.channel-card .benefit-icon { margin: 0; flex-shrink: 0; }
.channel-card__text { display: flex; flex-direction: column; min-width: 0; }
.channel-card__text strong { color: var(--brand-primary); font-size: 0.9375rem; overflow-wrap: anywhere; }
.channel-card__text span { color: var(--text-secondary); font-size: 0.8125rem; }

/* Featured channel (WhatsApp): green border/glow, corner tag and an inline CTA pill */
.channel-card--featured {
    position: relative;
    background: linear-gradient(135deg, #E6FFF7 0%, #FFFFFF 70%);
    border: 2px solid #25D366;
    box-shadow: 0 10px 24px -8px rgba(37,211,102,0.45);
    transform: translateY(-4px);
}
.channel-card--featured:hover { transform: translateY(-6px); box-shadow: 0 14px 30px -8px rgba(37,211,102,0.55); }
.channel-card--featured .benefit-icon { background: #25D366 !important; }
.channel-card--featured .benefit-icon svg { fill: white; }
.channel-card__tag {
    position: absolute; top: -11px; right: 14px;
    background: #25D366; color: white;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.2rem 0.6rem; border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.channel-card__go {
    margin-left: auto; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: #25D366; color: white;
    font-weight: 700; font-size: 0.8125rem;
    padding: 0.45rem 0.8rem; border-radius: 999px; white-space: nowrap;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
.contact-grid .detail-card + .detail-card { margin-top: 0; }
.visit-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.visit-card__body h2 { margin: 0; }
.visit-card__row { display: flex; gap: 0.875rem; align-items: flex-start; }
.visit-card__row strong { color: var(--brand-primary); font-size: 0.9375rem; }
.visit-card__row p { margin: 0.125rem 0 0; color: var(--text-primary); font-size: 0.9375rem; line-height: 1.6; }
.benefit-icon--sm { width: 2.25rem; height: 2.25rem; margin: 0; flex-shrink: 0; }
.visit-card__map { display: block; width: 100%; flex: 1; min-height: 260px; border: 0; border-top: 1px solid var(--border-color); }

@media (max-width: 900px) {
    .channel-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page-hero { padding: 2.25rem 0 2.5rem; }
    .page-hero--overlap { padding-bottom: 4.5rem; }
    .page-body { padding-bottom: 2.5rem; }
    .detail-card { padding: 1.25rem; }
    .listing-detail__price { font-size: 1.875rem; }
}

/* ==========================================
   Pagination
   ========================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 2rem 0 0;
}
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.625rem;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    text-decoration: none;
    background: transparent;
}
.pagination a:hover { background: var(--bg-secondary); }
.pagination .active {
    background: var(--brand-primary);
    color: white;
    font-weight: 600;
}
.pagination .disabled { opacity: 0.4; cursor: not-allowed; }

/* ==========================================
   Flash / toast
   ========================================== */
.flash {
    max-width: var(--container-max);
    margin: 1rem auto 0;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-left: 4px solid var(--brand-secondary);
    background: var(--brand-light);
    color: var(--brand-primary);
}
.flash--success { border-left-color: var(--brand-success); background: #E6FFF7; color: #065F46; }
.flash--error   { border-left-color: var(--brand-danger);  background: #FFF0EB; color: #991B1B; }
.flash--warning { border-left-color: var(--brand-warning); background: #FFF8E1; color: #92400E; }
.flash__text { flex: 1; }
.flash__close {
    background: none;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}
.flash__close:hover { opacity: 1; }

/* Public pages: full-width banner right under the header */
.flash--banner {
    max-width: none;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    padding: 1rem 2.5rem;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.9375rem;
}
.flash--banner .flash__text { flex: 0 1 auto; }
.flash--banner .flash__close { margin-left: 0.5rem; }
.flash--banner.flash--success { background: var(--brand-success); color: var(--brand-primary); }  /* green as in fleet "o seu carro" */
.flash--banner.flash--error   { background: #FFF0EB; color: #991B1B; border-bottom: 3px solid var(--brand-danger); }
.flash--banner.flash--warning { background: #FFF8E1; color: #92400E; border-bottom: 3px solid var(--brand-warning); }
.flash__icon { flex-shrink: 0; }
@media (max-width: 768px) { .flash--banner { padding: 0.875rem 1.25rem; justify-content: flex-start; } }

.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--brand-secondary);
    min-width: 260px;
    max-width: 400px;
    z-index: 100;
    animation: toast-in 0.3s ease;
}
.toast--success { border-left-color: var(--brand-success); }
.toast--error   { border-left-color: var(--brand-danger); }
@keyframes toast-in {
    from { transform: translateX(calc(100% + 1rem)); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ==========================================
   Cookie banner
   ========================================== */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    max-width: 720px;
    margin: 0 auto;
}
.cookie-banner__text { flex: 1; color: var(--text-secondary); }

/* ==========================================
   Error pages
   ========================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-family: 'Inter', sans-serif;
    margin: 0;
}
.error-page__box {
    text-align: center;
    padding: 2rem;
    max-width: 420px;
}
.error-page__code {
    font-size: 6rem;
    color: var(--bg-tertiary);
    margin: 0 0 0.5rem;
    font-weight: 800;
    line-height: 1;
}
.error-page__title { color: var(--text-primary); font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.error-page__desc  { color: var(--text-secondary); margin: 0 0 1.5rem; }

/* ==========================================
   Admin (shared classes used inside admin layout)
   Minimum rules here — admin layout lives in its own template.
   ========================================== */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg-secondary); }
.admin-shell__sidebar {
    width: 260px;
    background: var(--brand-primary);
    color: white;
    padding: 1.5rem 0;
    flex-shrink: 0;
}
.admin-shell__brand {
    display: flex;
    align-items: center;
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    font-weight: 700;
}
.admin-shell__nav { padding: 0.5rem 0; display: flex; flex-direction: column; }
.admin-shell__nav a {
    color: rgba(255,255,255,0.7);
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-shell__nav a:hover { background: rgba(255,255,255,0.08); color: white; }
.admin-shell__nav a.is-active {
    background: rgba(255,255,255,0.12);
    color: white;
    border-left-color: var(--accent-orange);
}
.admin-shell__main { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-topbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.admin-topbar h1 { margin: 0; font-size: 1.5rem; }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}
.kpi-card {
    background: var(--bg-primary);
    padding: 1rem 1.125rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.kpi-card__label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-card__value { font-size: 1.75rem; font-weight: 800; color: var(--brand-primary); margin-top: 0.25rem; }
.kpi-card__delta { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.125rem; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    text-align: left;
    vertical-align: top;
}
.data-table th { background: #F9FAFB; font-weight: 600; color: var(--text-primary); }
.data-table tr:hover td { background: #F9FAFB; }
.data-table tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; gap: 0.375rem; }

/* ==========================================
   Utilities
   ========================================== */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================
   Chips — shared primitive for listing meta,
   detail-page specs, and anywhere else we need
   a compact categorical pill.
   ========================================== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.chip svg {
    width: 15px;
    height: 15px;
    stroke: var(--brand-secondary);
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.chip b      { font-weight: 600; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
.chip span   { color: var(--text-secondary); }
.chip--sm    { padding: 0.1875rem 0.5rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em; background: var(--bg-secondary); }
.chip--sm svg { width: 12px; height: 12px; }
.chip--lg    { padding: 0.5rem 0.875rem 0.5rem 0.625rem; font-size: 0.875rem; }
.chip--lg svg { width: 17px; height: 17px; }
.chip--accent {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}
.chip--accent b     { color: white; }
.chip--accent span  { color: rgba(255,255,255,0.75); }
.chip--accent svg   { stroke: var(--brand-light); }

/* Row container */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ==========================================
   Detail page — spec chips + long-tail dl
   ========================================== */
.spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
}
.spec-dl {
    border-top: 1px dashed var(--border-color);
    margin-top: 1.25rem;
    padding-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem 1.25rem;
}
.spec-dl div { display: flex; flex-direction: column; gap: 0.125rem; }
.spec-dl dt {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0;
}
.spec-dl dd {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin: 0;
    font-variant-numeric: tabular-nums;
}

/* ==========================================
   Adaptive listing grid
   - default: repeat(auto-fill, minmax(280px, 1fr))  (good for 4+)
   - --count-1:  single wide hero card
   - --count-2:  two equal cards
   - --count-3:  three equal cards (same as default but forced)
   - --featured: first card spans 2 rows × 2 cols, then narrow
                 companions (only kicks in with 4+ cards)
   ========================================== */
.listing-grid--count-1 {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}
.listing-grid--count-1 .listing-card .listing-card__media { aspect-ratio: 16 / 10; }
.listing-grid--count-1 .listing-card__body { padding: 1.5rem 1.75rem 1.75rem; }
.listing-grid--count-1 .listing-card__title { font-size: 1.5rem; }
.listing-grid--count-1 .listing-card__price { font-size: 1.5rem; }

.listing-grid--count-2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
    .listing-grid--count-2 { grid-template-columns: 1fr; }
}

.listing-grid--count-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
    .listing-grid--count-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .listing-grid--count-3 { grid-template-columns: 1fr; }
}

/* Featured asymmetric variant: first card double-wide + double-tall */
.listing-grid--featured {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
}
.listing-grid--featured .listing-card:first-child { grid-row: span 2; border: 1px solid var(--brand-primary); box-shadow: 0 8px 30px -12px rgba(21,20,89,0.3); position: relative; }
.listing-grid--featured .listing-card:first-child .listing-card__media { aspect-ratio: 4 / 3; }
.listing-grid--featured .listing-card:first-child .listing-card__body { padding: 1.5rem 1.75rem 1.75rem; gap: 0.625rem; }
.listing-grid--featured .listing-card:first-child .listing-card__title { font-size: 1.5rem; }
.listing-grid--featured .listing-card:first-child .listing-card__price { font-size: 1.875rem; }
.listing-grid--featured .listing-card:first-child::before {
    content: attr(data-featured-label);
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 3;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--accent-gold);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
}
.listing-grid--featured .listing-card:first-child .listing-badges { top: 3.25rem; }
@media (max-width: 900px) {
    .listing-grid--featured { grid-template-columns: repeat(2, 1fr); }
    .listing-grid--featured .listing-card:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
    .listing-grid--featured { grid-template-columns: 1fr; }
    .listing-grid--featured .listing-card:first-child { grid-column: span 1; }
}

/* ==========================================
   Landing (homepage) — ported from the fleet
   landing (fleet.dlcarconsulting.pt)
   ========================================== */
.landing-hero {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
}
.landing-hero__body {
    flex: 1;
    background: linear-gradient(135deg, #151459 0%, #1a1a7a 50%, #45A3DA 100%);
    padding: 4rem 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.landing-hero__deco { position: absolute; pointer-events: none; }
.landing-hero__deco--sheen { top: 0; right: 0; width: 55%; height: 100%; background: linear-gradient(135deg, transparent, rgba(69,163,218,0.15)); }
.landing-hero__deco--c1 { bottom: -40px; right: -40px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.03); }
.landing-hero__deco--c2 { top: -60px; right: 200px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.03); }
.landing-hero__inner {
    position: relative;
    width: 100%;   /* full width (aligned with the header), like the fleet hero */
}
.landing-hero__title {
    color: white;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    min-height: 2.4em;
    max-width: 600px;
}
.landing-hero__lead {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 2.25rem;
    max-width: 520px;
}
.landing-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.tw-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: white;
    margin-left: 3px;
    vertical-align: middle;
    border-radius: 1px;
    animation: tw-blink 0.75s step-end infinite;
}
@keyframes tw-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.btn-cta {
    background: var(--accent-orange);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: opacity 0.15s ease;
}
.btn-cta:hover { color: white; opacity: 0.9; }
.btn-cta--ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-cta--ghost:hover { background: rgba(255,255,255,0.16); opacity: 1; }

/* Stats strip */
.stats-strip {
    background: var(--brand-primary);
    padding: 0 2.5rem;
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.stat-cell {
    flex: 1;
    text-align: center;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}
.stat-cell:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.1); }
.stat-cell__value { color: white; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.stat-cell__value--green { color: var(--accent-green); }
.stat-cell__label { color: rgba(255,255,255,0.55); font-size: 0.75rem; }
.stat-cell__dots { display: flex; gap: 0.35rem; justify-content: center; margin-bottom: 0.2rem; }
.stat-cell__dots span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }

/* Sections */
.landing-section {
    background: var(--bg-secondary);
    padding: 5rem 2.5rem;
}
.landing-section--white { background: var(--bg-primary); }
.landing-section__heading { text-align: center; margin: 0 auto 2.25rem; max-width: 640px; }
.landing-section__heading h2 { font-size: 1.625rem; font-weight: 800; margin: 0 0 0.5rem; }
.landing-section__heading p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }
.landing-section__body { max-width: 1000px; margin: 0 auto; }

/* Icon tile (pastel background + coloured stroke) — contact channels, import cards */
.benefit-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Home services: solid icon tile + accent top strip in the card's --accent,
   watermark number, action link; --featured = hero-gradient card */
.landing-section--services { background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(206,235,255,0.35) 100%); }
.landing-section--services .landing-section__heading h2 { font-size: 2.1rem; }
.landing-section--services .landing-section__heading p { font-size: 1.05rem; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: 0 4px 18px rgba(21,20,89,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(21,20,89,0.16); }
.service-card__num {
    position: absolute; right: 1.25rem; top: 1rem;
    font-size: 3rem; font-weight: 800; line-height: 1;
    color: var(--brand-primary); opacity: 0.06;
}
.service-card__icon {
    width: 3.5rem; height: 3.5rem; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: white;
    margin-bottom: 1.25rem;
}
.service-card h3 { color: var(--brand-primary); font-weight: 800; font-size: 1.2rem; margin: 0 0 0.375rem; }
.service-card p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.6; margin: 0; flex: 1; }
.service-card__go {
    margin-top: 1.25rem;
    display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start;
    font-weight: 700; font-size: 0.85rem; color: var(--brand-primary); text-decoration: none;
}
.service-card__go span { transition: transform 0.2s; }
.service-card:hover .service-card__go span { transform: translateX(4px); }
.service-card--featured { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); }
.service-card--featured::before { background: rgba(255,255,255,0.45); }
.service-card--featured h3,
.service-card--featured .service-card__go { color: white; }
.service-card--featured p { color: rgba(255,255,255,0.8); }
.service-card--featured .service-card__icon { background: rgba(255,255,255,0.18); }
.service-card--featured .service-card__num { color: white; opacity: 0.15; }

/* Empty state card (fleet "Sem acertos pendentes" pattern) */
.empty-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 2.5rem 1.5rem;
    text-align: center;
    max-width: 640px;
}
.empty-card__icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--brand-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.empty-card h3 { color: var(--text-primary); font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.5rem; }
.empty-card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; margin: 0 auto 1.25rem; max-width: 40ch; }

/* Light pill button (fleet "Ver histórico >") */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(206,235,255,0.6);
    color: var(--brand-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: background 0.15s ease;
}
.btn-pill:hover { background: var(--brand-light); color: var(--brand-secondary); }

/* Import / selection cards */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}
.process-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.process-card--accent { border-left: 4px solid var(--brand-secondary); }
.process-card h3 { color: var(--brand-primary); font-weight: 700; font-size: 1.125rem; margin: 0 0 1rem; }
.process-card .btn { margin-top: auto; }
.step-list, .check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.step-list li, .check-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; }
.step-list__n {
    width: 1.75rem; height: 1.75rem;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.8125rem;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.check-list svg { flex-shrink: 0; }

/* Final CTA (navy → orange) */
.landing-cta {
    background: var(--gradient-cta);
    padding: 6rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.landing-cta h2 { color: white; font-size: 1.75rem; font-weight: 800; margin: 0 0 0.75rem; }
.landing-cta p { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.6; margin: 0 0 2rem; max-width: 480px; }
.landing-cta__buttons { display: flex; gap: 1.25rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.landing-cta__link { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; }
.landing-cta__link:hover { color: white; }

/* Call-cost notice required next to phone numbers (DL n.º 59/2021) */
.call-cost { font-size: 0.75rem; color: var(--text-secondary); text-align: center; margin: -0.25rem 0 0.25rem; }
.call-cost--inline { margin: 0; font-size: 0.75rem; color: rgba(255,255,255,0.6); font-weight: 400; }
.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}
.btn-whatsapp:hover { color: white; opacity: 0.92; }

/* Homepage: the footer sits right after the CTA, no gap */
.site-main { padding-bottom: 4rem; }

/* Sticky footer: public pages fill the viewport so the footer sits at the bottom */
.site-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.site-body > .site-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.site-body > .site-main > .page-body { flex: 1 0 auto; }
.page--home .site-main { padding-bottom: 0; }

@media (max-width: 900px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .landing-hero__body { padding: 3rem 1.25rem; }
    .landing-hero__title { font-size: 1.75rem; min-height: 2.8em; }
    .landing-hero__lead { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .landing-hero__actions { flex-direction: column; }
    .landing-hero__actions .btn-cta { text-align: center; }

    .stats-strip { flex-wrap: wrap; padding: 0; }
    .stat-cell { flex: 0 0 50%; border-right: none !important; padding: 0.75rem 0.5rem; min-height: 64px; }
    .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1) !important; }

    .landing-section { padding: 3rem 1.25rem; }
    .landing-section__heading h2 { font-size: 1.3rem; }
    .service-grid, .process-grid { grid-template-columns: 1fr; gap: 0.875rem; }
    .landing-section--services .landing-section__heading h2 { font-size: 1.5rem; }
    .service-card { padding: 1.5rem 1.25rem 1.25rem; }

    .landing-cta { padding: 3.5rem 1.25rem; }
    .landing-cta h2 { font-size: 1.4rem; }
    .landing-cta__buttons { flex-direction: column; align-items: stretch; }
    .landing-cta__buttons a { justify-content: center; }
}


/* ==========================================
   Client area (/cliente) — mediations
   ========================================== */
.client-body .site-main { background: var(--bg-secondary); padding-bottom: 0; }
.client-body > .site-main > .ca-auth { flex: 1 0 auto; }
.client-body .site-header__actions { margin-left: auto; }
.client-who { display: flex; align-items: center; gap: 0.75rem; color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.client-who__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-secondary); color: white; display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; }
.client-who a, .client-back { color: rgba(255,255,255,0.65); font-size: 0.85rem; font-weight: 500; }
.client-who a:hover, .client-back:hover { color: white; }
.ca-preview { background: #FFF8E1; border-bottom: 2px solid var(--accent-gold); color: #92400E; font-size: 0.85rem; padding: 0.6rem 1.25rem; display: flex; gap: 0.5rem 1rem; justify-content: center; align-items: center; flex-wrap: wrap; text-align: center; }
.ca-preview a { color: var(--brand-primary); font-weight: 700; text-decoration: underline; }
@media (max-width: 640px) { .client-who__name { display: none; } }

.ca-wrap { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.ca-card { background: white; border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); box-shadow: var(--shadow); }
.ca-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.ca-linkbtn { background: none; border: 0; padding: 0; color: var(--brand-secondary); font: 600 0.85rem 'Inter', sans-serif; cursor: pointer; }
.ca-linkbtn:hover { color: var(--brand-primary); }
.ca-linkbtn:disabled { color: var(--text-muted); cursor: default; }

/* Login / code */
.ca-auth { min-height: calc(100vh - var(--header-height) - 90px); display: grid; place-items: center; padding: 3rem 1.25rem; background: var(--gradient-hero); position: relative; overflow: hidden; }
.ca-auth::before, .ca-auth::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.05); pointer-events: none; }
.ca-auth::before { width: 420px; height: 420px; right: -120px; bottom: -160px; }
.ca-auth::after { width: 220px; height: 220px; left: -60px; top: -60px; }
.ca-auth__card { position: relative; z-index: 1; width: 100%; max-width: 420px; background: white; border-radius: var(--border-radius-xl); box-shadow: 0 20px 50px rgba(21,20,89,0.35); padding: 2.25rem 2rem; }
.ca-auth__card h1 { font-size: 1.5rem; font-weight: 800; color: var(--brand-primary); margin: 0 0 0.4rem; }
.ca-auth__lead { color: var(--text-secondary); font-size: 0.92rem; margin: 0 0 1.5rem; line-height: 1.5; }
.ca-auth__lead b { color: var(--text-primary); }
.ca-auth__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-light); color: var(--brand-primary); display: grid; place-items: center; margin-bottom: 1.1rem; }
.ca-auth__foot { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--border-color); font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.ca-auth__foot a { color: var(--brand-secondary); font-weight: 600; }
.ca-auth__foot--row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ca-auth__or { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.75rem; margin: 1.25rem 0; }
.ca-auth__or::before, .ca-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--border-color); }
.ca-auth__hint { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--bg-secondary); border-radius: 0.6rem; padding: 0.8rem 0.9rem; font-size: 0.82rem; line-height: 1.45; }
.ca-auth__hint svg { flex: none; color: var(--brand-secondary); margin-top: 2px; }
.ca-code { width: 100%; text-align: center; font: 700 1.75rem 'Inter', sans-serif; letter-spacing: 0.5em; padding: 0.7rem 0 0.7rem 0.5em; color: var(--brand-primary); border: 1.5px solid var(--border-color); border-radius: 0.6rem; margin-bottom: 1rem; outline: 0; }
.ca-code:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(21,20,89,0.1); }

/* Hero band + overlapping content */
.ca-hero { background: linear-gradient(135deg, #151459 0%, #1a1a7a 50%, #45A3DA 100%); padding: 2.25rem 0 5.5rem; position: relative; overflow: hidden; }
.ca-hero::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.05); right: -60px; bottom: -120px; }
.ca-crumb { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 0.6rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ca-crumb a { color: rgba(255,255,255,0.8); }
.ca-crumb a:hover { color: white; }
.ca-hero h1 { color: white; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; margin: 0 0 0.35rem; }
.ca-hero p { color: rgba(255,255,255,0.75); margin: 0; max-width: 640px; }
.ca-hero p b { color: white; }
.ca-overlap { margin-top: -4rem; position: relative; z-index: 2; padding-bottom: 4rem; }

/* Request summary + stepper */
.ca-req { padding: 1.25rem 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: center; }
.ca-req__title { font-size: 1.15rem; font-weight: 800; color: var(--brand-primary); margin: 0.15rem 0 0.5rem; }
.ca-req__notes { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--text-secondary); }
.ca-req__cancelled { border-top: 1px solid var(--border-color); padding: 0.9rem 1.5rem; font-size: 0.85rem; color: #92400E; background: #FFF8E1; border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg); }
.ca-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ca-chips span { font-size: 0.78rem; background: var(--bg-secondary); color: var(--text-primary); border-radius: 999px; padding: 0.25rem 0.65rem; }
.ca-consultant { display: flex; align-items: center; gap: 0.7rem; padding-left: 1.25rem; border-left: 1px solid var(--border-color); }
.ca-consultant__avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--brand-primary); color: white; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.ca-consultant small, .ca-consultant-card small { display: block; color: var(--text-secondary); font-size: 0.75rem; }
.ca-consultant b, .ca-consultant-card b { color: var(--brand-primary); font-size: 0.92rem; }
.ca-wa-mini { display: flex; align-items: center; gap: 0.3rem; color: #128C4A; font-size: 0.78rem; font-weight: 600; margin-top: 0.1rem; }
@media (max-width: 720px) {
    .ca-req { grid-template-columns: 1fr; }
    .ca-consultant { border-left: 0; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 1rem; }
}
.ca-steps { list-style: none; margin: 0; display: flex; padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--border-color); overflow-x: auto; }
.ca-steps li { flex: 1; min-width: 84px; position: relative; text-align: center; font-size: 0.7rem; line-height: 1.25; color: var(--text-muted); font-weight: 600; padding: 0 0.15rem; }
.ca-steps li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--border-color); }
.ca-steps li:first-child::before { display: none; }
.ca-steps__dot { width: 24px; height: 24px; border-radius: 50%; background: white; border: 2px solid var(--border-color); margin: 0 auto 0.4rem; position: relative; z-index: 1; display: grid; place-items: center; color: white; font-size: 0.7rem; }
.ca-steps li.is-done { color: var(--text-secondary); }
.ca-steps li.is-done::before, .ca-steps li.is-now::before { background: var(--brand-secondary); }
.ca-steps li.is-done .ca-steps__dot { background: var(--brand-secondary); border-color: var(--brand-secondary); }
.ca-steps li.is-now { color: var(--brand-primary); }
.ca-steps li.is-now .ca-steps__dot { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(21,20,89,0.12); }
.ca-steps li.is-now .ca-steps__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); }

/* Proposal list */
.ca-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0 1rem; flex-wrap: wrap; }
.ca-bar h2 { font-size: 1.25rem; font-weight: 800; color: var(--brand-primary); margin: 0; }
.ca-tabs { display: flex; gap: 0.25rem; background: white; border: 1px solid var(--border-color); border-radius: 999px; padding: 0.25rem; overflow-x: auto; max-width: 100%; }
.ca-tabs button { border: 0; background: transparent; border-radius: 999px; padding: 0.4rem 0.85rem; font: 600 0.8rem 'Inter', sans-serif; color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.ca-tabs button span { opacity: 0.6; margin-left: 0.3rem; }
.ca-tabs button.is-on { background: var(--brand-primary); color: white; }
.ca-plist { display: flex; flex-direction: column; gap: 0.85rem; }
.ca-prop { position: relative; display: grid; grid-template-columns: 220px 1fr auto; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.ca-prop:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ca-prop.is-declined { opacity: 0.6; }
.ca-prop__link { position: absolute; inset: 0; z-index: 1; }
.ca-prop__img { position: relative; min-height: 150px; }
.ca-prop__body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.ca-prop__top { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.ca-prop__num { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.ca-prop__title { font-size: 1.05rem; font-weight: 800; color: var(--brand-primary); margin: 0; }
.ca-prop__ver { font-size: 0.82rem; color: var(--text-secondary); margin-top: -0.25rem; }
.ca-specs { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; font-size: 0.8rem; }
.ca-specs span:not(:last-child)::after { content: "·"; margin-left: 0.5rem; color: var(--text-muted); }
.ca-prop__note { font-size: 0.8rem; color: var(--text-secondary); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-prop__price { padding: 1rem 1.25rem; border-left: 1px solid var(--border-color); display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; min-width: 200px; gap: 0.15rem; }
.ca-prop__price small { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.ca-prop__price b { font-size: 1.45rem; font-weight: 800; color: var(--brand-primary); line-height: 1.1; }
.ca-prop__taxes { font-size: 0.7rem; color: var(--text-muted); }
.ca-prop__valid { font-size: 0.74rem; color: var(--text-secondary); margin-top: 0.35rem; }
.ca-prop__valid.is-warn { color: #92400E; font-weight: 600; }
.ca-prop__go { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--brand-secondary); }
.ca-fav-form { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; }
.ca-fav { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.92); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--text-secondary); }
.ca-fav.is-on { color: var(--accent-orange); }
@media (max-width: 820px) {
    .ca-prop { grid-template-columns: 1fr; }
    .ca-prop__img { min-height: 190px; }
    .ca-prop__price { border-left: 0; border-top: 1px solid var(--border-color); flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; text-align: left; min-width: 0; column-gap: 0.75rem; }
    .ca-prop__valid, .ca-prop__go { margin-top: 0; }
}
.ca-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--text-secondary); margin-top: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.ca-empty svg { color: var(--brand-secondary); }
.ca-empty b { color: var(--brand-primary); font-size: 1.05rem; }
.ca-empty p { margin: 0; max-width: 460px; font-size: 0.9rem; }
.ca-empty--small { margin-top: 0; padding: 1.75rem; }

/* Photos (or placeholder) */
.ca-photo { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: var(--gradient-hero); }
.ca-photo img { width: 100%; height: 100%; object-fit: cover; }
.ca-photo__car { width: 62%; max-width: 240px; color: rgba(255,255,255,0.9); }
.ca-photo__chip { position: absolute; left: 0.6rem; bottom: 0.6rem; background: rgba(0,0,0,0.5); color: white; font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 999px; z-index: 1; }

/* Proposal detail */
.ca-detail { display: grid; grid-template-columns: 1fr 360px; gap: 1.25rem; align-items: start; }
.ca-detail__main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
@media (max-width: 960px) { .ca-detail { grid-template-columns: 1fr; } }
.ca-gallery { overflow: hidden; }
.ca-gallery__main { position: relative; aspect-ratio: 16 / 10; background: var(--brand-primary); }
.ca-gallery__main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ca-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.9); color: var(--brand-primary); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1; }
.ca-gallery__nav--prev { left: 0.75rem; }
.ca-gallery__nav--next { right: 0.75rem; }
.ca-gallery__count { position: absolute; right: 0.75rem; bottom: 0.75rem; background: rgba(0,0,0,0.5); color: white; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; }
.ca-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.4rem; padding: 0.5rem; }
.ca-thumbs button { padding: 0; border: 0; border-radius: 0.4rem; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; opacity: 0.6; background: var(--bg-tertiary); }
.ca-thumbs button.is-on { opacity: 1; outline: 2px solid var(--brand-primary); outline-offset: 1px; }
.ca-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ca-sec { padding: 1.25rem 1.5rem; }
.ca-sec + .ca-sec { border-top: 1px solid var(--border-color); }
.ca-sec h3 { font-size: 0.95rem; font-weight: 700; color: var(--brand-secondary); margin: 0 0 0.9rem; }
.ca-specgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem 1.25rem; margin: 0; }
.ca-specgrid dt { font-size: 0.72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.ca-specgrid dd { margin: 0; font-size: 0.92rem; font-weight: 600; }
.ca-feat { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ca-feat span { font-size: 0.8rem; background: var(--brand-light); color: var(--brand-primary); padding: 0.3rem 0.65rem; border-radius: 999px; font-weight: 500; }
.ca-note { display: flex; gap: 0.85rem; background: var(--brand-light-muted); border-left: 3px solid var(--brand-secondary); border-radius: 0.5rem; padding: 1rem 1.1rem; }
.ca-note svg { flex: none; color: var(--brand-secondary); }
.ca-note p { margin: 0; font-size: 0.9rem; line-height: 1.55; }
.ca-note small { display: block; margin-top: 0.5rem; color: var(--text-secondary); font-size: 0.75rem; }
.ca-docs { display: flex; flex-direction: column; gap: 0.5rem; }
.ca-docs a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; border: 1px solid var(--border-color); border-radius: 0.6rem; color: var(--text-primary); font-size: 0.88rem; font-weight: 500; }
.ca-docs a:hover { border-color: var(--brand-secondary); }
.ca-docs small { display: block; color: var(--text-secondary); font-size: 0.74rem; font-weight: 400; }
.ca-docs__ic { width: 34px; height: 34px; border-radius: 8px; background: #FFF0EB; color: var(--accent-orange); display: grid; place-items: center; font-size: 0.62rem; font-weight: 800; flex: none; }
.ca-docs__ic--link { background: var(--brand-light); color: var(--brand-primary); font-size: 0.95rem; }

.ca-side { position: sticky; top: calc(var(--header-height) + 1rem); display: flex; flex-direction: column; gap: 1rem; }
.ca-side__link { text-align: center; }
.ca-price { overflow: hidden; }
.ca-price__top { background: var(--brand-primary); color: white; padding: 1.25rem 1.5rem; }
.ca-price__top small { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 600; }
.ca-price__top b { display: block; font-size: 2rem; font-weight: 800; line-height: 1.15; margin-top: 0.15rem; }
.ca-price__top span { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.ca-breakdown { padding: 1rem 1.5rem; font-size: 0.86rem; }
.ca-breakdown > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; }
.ca-breakdown > div > span:first-child { color: var(--text-secondary); }
.ca-breakdown em { font-style: normal; font-size: 0.72rem; color: var(--text-muted); margin-left: 0.2rem; }
.ca-breakdown__note { margin: -0.1rem 0 0.35rem; font-size: 0.74rem; line-height: 1.45; color: var(--text-secondary); }
.ca-breakdown__group { border-top: 1px solid var(--border-color); margin-top: 0.35rem; padding-top: 0.65rem !important; }
.ca-breakdown__group span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary) !important; }
.ca-breakdown > .ca-breakdown__total { border-top: 1px dashed var(--border-color); margin-top: 0.35rem; padding-top: 0.65rem; font-weight: 800; color: var(--brand-primary); }
.ca-breakdown > .ca-breakdown__total span:first-child { color: var(--brand-primary); }
.ca-breakdown__total + .ca-breakdown__note { margin-top: 0.5rem; }
.ca-breakdown--compact { padding-top: 0.75rem; }
.ca-breakdown--compact .ca-linkbtn { display: inline-block; margin-top: 0.6rem; }
.ca-valid { font-size: 0.78rem; color: #92400E; background: #FFF8E1; border-radius: 0.5rem; padding: 0.55rem 0.75rem; display: flex; gap: 0.5rem; align-items: flex-start; margin: 0 1.5rem 1rem; }
.ca-valid svg { flex: none; margin-top: 1px; }
.ca-valid.is-expired { color: #991B1B; background: #FFF0EB; }
.ca-actions { padding: 0 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ca-state { padding: 1.25rem 1.5rem; display: flex; gap: 0.85rem; align-items: flex-start; border-top: 1px solid var(--border-color); }
.ca-state__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-secondary); color: var(--text-secondary); }
.ca-state__icon--ok { background: #E6FFF7; color: #065F46; }
.ca-state b { color: var(--brand-primary); display: block; margin-bottom: 0.15rem; }
.ca-state p { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.ca-pager { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-secondary); }

/* Decline dialog */
.ca-modal-bg { position: fixed; inset: 0; background: rgba(21,20,89,0.45); z-index: 60; display: grid; place-items: center; padding: 1rem; }
.ca-modal { background: white; border-radius: var(--border-radius-xl); max-width: 440px; width: 100%; padding: 1.75rem; box-shadow: var(--shadow-lg); }
.ca-modal h3 { margin: 0 0 0.4rem; color: var(--brand-primary); font-size: 1.2rem; font-weight: 800; }
.ca-modal p { margin: 0 0 1rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.ca-modal__btns { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }
.ca-reasons { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.ca-reasons button { border: 1.5px solid var(--border-color); background: white; border-radius: 999px; padding: 0.4rem 0.8rem; font: 500 0.82rem 'Inter', sans-serif; color: var(--text-primary); cursor: pointer; }
.ca-reasons button.is-on { border-color: var(--brand-primary); background: var(--brand-light); color: var(--brand-primary); }

/* Tracking */
.ca-tl { list-style: none; margin: 0; padding: 1.5rem 1.5rem 0.5rem; }
.ca-tl li { position: relative; padding: 0 0 1.5rem 2.75rem; }
.ca-tl li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border-color); }
.ca-tl li:last-child::before { display: none; }
.ca-tl li.is-done::before { background: var(--brand-secondary); }
.ca-tl__dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: white; border: 2px solid var(--border-color); display: grid; place-items: center; color: white; font-size: 0.8rem; font-weight: 700; }
.ca-tl li.is-done .ca-tl__dot { background: var(--brand-secondary); border-color: var(--brand-secondary); }
.ca-tl li.is-now .ca-tl__dot { border-color: var(--brand-primary); box-shadow: 0 0 0 5px rgba(21,20,89,0.12); }
.ca-tl li.is-now .ca-tl__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-primary); animation: ca-pulse 1.6s infinite; }
@keyframes ca-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .ca-tl li.is-now .ca-tl__dot::after { animation: none; } }
.ca-tl__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: 0.2rem; }
.ca-tl__head b { font-size: 0.98rem; color: var(--text-muted); }
.ca-tl li.is-done .ca-tl__head b { color: var(--text-primary); }
.ca-tl li.is-now .ca-tl__head b { color: var(--brand-primary); font-weight: 800; }
.ca-tl__date { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; }
.ca-tl__date.is-eta { color: var(--text-muted); font-style: italic; }
.ca-tl p { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.ca-tl li.is-next p { color: var(--text-muted); }
.ca-tl__box { margin-top: 0.6rem; background: var(--brand-light-muted); border: 1px solid var(--brand-light); border-radius: 0.6rem; padding: 0.75rem 0.9rem; font-size: 0.85rem; line-height: 1.5; }
.ca-tl__doc { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.45rem 0.75rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--brand-secondary); }
.ca-eta { background: var(--brand-primary); color: white; border-radius: var(--border-radius-lg); padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.ca-eta svg { flex: none; opacity: 0.8; }
.ca-eta small { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 600; }
.ca-eta b { font-size: 1.35rem; font-weight: 800; }
.ca-carsum { overflow: hidden; }
.ca-carsum__img { position: relative; aspect-ratio: 16 / 9; }
.ca-carsum__title { display: block; color: var(--brand-primary); font-weight: 800; font-size: 1.05rem; }
.ca-carsum__specs { font-size: 0.82rem; color: var(--text-secondary); }
.ca-consultant-card { padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.ca-consultant-card > div:nth-child(2) { flex: 1; }
.ca-consultant-card .ca-consultant__avatar { width: 38px; height: 38px; }

/* Client home (several mediations) */
.ca-group { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin: 1.75rem 0 0.6rem; }
.ca-group--first { margin-top: 0; color: rgba(255,255,255,0.85); }
.ca-medlist { display: flex; flex-direction: column; gap: 0.75rem; }
.ca-med { display: grid; grid-template-columns: 150px 1fr auto; overflow: hidden; color: var(--text-primary); transition: transform 0.15s, box-shadow 0.15s; }
.ca-med:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text-primary); }
.ca-med__img { position: relative; min-height: 104px; }
.ca-med__search { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-light), var(--brand-secondary)); color: var(--brand-primary); }
.ca-med__body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.2rem; justify-content: center; }
.ca-med__body small { font-size: 0.74rem; color: var(--text-secondary); }
.ca-med__body b { font-size: 1.05rem; font-weight: 800; color: var(--brand-primary); }
.ca-med__body span { font-size: 0.84rem; }
.ca-med.is-closed .ca-med__body b { color: var(--text-primary); }
.ca-med__state { padding: 1rem 1.25rem; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0.3rem; text-align: right; }
.ca-med__phase { font-size: 0.78rem; color: var(--text-secondary); }
.ca-newmed { margin-top: 1.75rem; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-style: dashed; box-shadow: none; }
.ca-newmed b { display: block; color: var(--brand-primary); font-weight: 800; }
.ca-newmed span { font-size: 0.86rem; color: var(--text-secondary); }
@media (max-width: 720px) {
    .ca-med { grid-template-columns: 1fr; }
    .ca-med__img { min-height: 130px; }
    .ca-med__state { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-color); }
    .ca-newmed { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ==========================================
   Admin — mediations & clients
   ========================================== */
.admin-shell__nav a { display: flex; align-items: center; }
.admin-shell__badge { margin-left: auto; background: var(--accent-orange); color: white; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.45rem; }
.adm-sub { color: var(--text-secondary); font-size: 0.875rem; margin: 0; }
.adm-sub a { color: var(--brand-secondary); font-weight: 600; }
.adm-muted { color: var(--text-secondary); font-size: 0.8rem; }
.adm-strong { font-weight: 700; color: var(--brand-primary); }
.adm-back { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--brand-secondary); margin-bottom: 0.75rem; }
.adm-empty { color: var(--text-secondary); text-align: center; padding: 2rem 1.25rem; }
.adm-headbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.adm-attn { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.adm-attn a { display: flex; gap: 0.75rem; align-items: center; background: white; border: 1px solid var(--border-color); border-left: 4px solid var(--c); border-radius: var(--border-radius); padding: 0.85rem 1rem; color: var(--text-primary); }
.adm-attn a:hover { box-shadow: var(--shadow-md); }
.adm-attn b { font-size: 1.5rem; font-weight: 800; color: var(--brand-primary); min-width: 1.5rem; }
.adm-attn span { font-size: 0.85rem; line-height: 1.35; font-weight: 600; }
.adm-attn small { display: block; color: var(--text-secondary); font-size: 0.75rem; font-weight: 400; }
.adm-toolbar { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.85rem; flex-wrap: wrap; }
.adm-toolbar .form-input { width: auto; min-width: 280px; }
.adm-seg { display: flex; background: white; border: 1px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; }
.adm-seg a { padding: 0.5rem 0.85rem; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); border-right: 1px solid var(--border-color); }
.adm-seg a:last-child { border-right: 0; }
.adm-seg a.is-on { background: var(--brand-primary); color: white; }
.adm-rows tbody tr { cursor: pointer; }
.adm-rows td { vertical-align: middle; }
.adm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); margin-right: 0.35rem; }
.adm-phase { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.adm-phase i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.adm-mini { display: flex; gap: 2px; margin-top: 0.35rem; }
.adm-mini span { width: 12px; height: 5px; border-radius: 2px; background: var(--border-color); }
.adm-mini span.is-done { background: var(--brand-secondary); }
.adm-mini span.is-now { background: var(--brand-primary); }

.adm-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 960px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.adm-grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.adm-formfoot { display: flex; gap: 0.75rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.adm-check { display: inline-flex; gap: 0.5rem; align-items: center; font-size: 0.875rem; margin-right: auto; }
.adm-total { background: var(--brand-primary); color: white; border-radius: var(--border-radius); padding: 0.85rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.adm-total span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.7); }
.adm-total b { font-size: 1.4rem; font-weight: 800; }
.adm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.adm-photos div { position: relative; aspect-ratio: 3 / 2; border-radius: 0.4rem; overflow: hidden; background: var(--bg-tertiary); }
.adm-photos img { width: 100%; height: 100%; object-fit: cover; }
.adm-photos .adm-x { position: absolute; top: 4px; right: 4px; }
.adm-docs { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.adm-docs li { display: flex; gap: 0.75rem; align-items: center; font-size: 0.875rem; }
.adm-x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.95); color: var(--accent-orange); font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.adm-danger-zone { max-width: 960px; margin-top: 1.5rem; text-align: right; }
.adm-danger { color: var(--accent-orange); }

.adm-mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.adm-mhead__acts { display: flex; gap: 0.5rem; }
.adm-stepper { list-style: none; margin: 0 0 1.25rem; display: flex; background: white; border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 0.9rem 0.75rem; overflow-x: auto; }
.adm-stepper li { flex: 1; min-width: 78px; text-align: center; font-size: 0.68rem; color: var(--text-muted); font-weight: 600; position: relative; line-height: 1.2; }
.adm-stepper li::before { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; background: var(--border-color); }
.adm-stepper li:first-child::before { display: none; }
.adm-stepper i { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-color); background: white; margin: 0 auto 0.35rem; position: relative; z-index: 1; }
.adm-stepper .is-done { color: var(--text-secondary); }
.adm-stepper .is-done::before, .adm-stepper .is-now::before { background: var(--brand-secondary); }
.adm-stepper .is-done i { background: var(--brand-secondary); border-color: var(--brand-secondary); }
.adm-stepper .is-now { color: var(--brand-primary); }
.adm-stepper .is-now i { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(21,20,89,0.12); background: radial-gradient(var(--brand-primary) 40%, white 45%); }

.adm-mgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .adm-mgrid { grid-template-columns: 1fr; } }
.adm-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1rem; }
.adm-tabs a { padding: 0.6rem 0; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.adm-tabs a.is-on { color: var(--brand-primary); border-bottom-color: var(--accent-orange); }
.adm-tabs span { background: var(--bg-tertiary); color: var(--text-primary); font-size: 0.7rem; border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.3rem; }
.adm-alert-ok { display: flex; gap: 0.75rem; align-items: center; background: #E6FFF7; border-left: 4px solid var(--accent-green); border-radius: var(--border-radius); padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: 0.88rem; color: #065F46; }
.adm-alert-ok .btn { margin-left: auto; }
.adm-cardhead { display: flex; align-items: center; gap: 0.75rem; }
.adm-cardhead__acts { margin-left: auto; display: flex; gap: 0.5rem; }
.adm-prow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-color); }
.adm-prow:last-child { border-bottom: 0; }
.adm-prow__img { height: 72px; border-radius: 0.4rem; overflow: hidden; background: var(--gradient-hero); display: block; }
.adm-prow__img img { width: 100%; height: 100%; object-fit: cover; }
.adm-prow__state { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; min-width: 140px; font-size: 0.76rem; color: var(--text-secondary); }
.adm-prow__price { text-align: right; }
.adm-prow__price b { display: block; font-size: 1.05rem; color: var(--brand-primary); }
.adm-prow__price .table-actions { justify-content: flex-end; margin-top: 0.35rem; }
@media (max-width: 760px) { .adm-prow { grid-template-columns: 80px 1fr; } .adm-prow__state, .adm-prow__price { grid-column: 2; text-align: left; } .adm-prow__price .table-actions { justify-content: flex-start; } }

.adm-tl { list-style: none; margin: 0; padding: 0; }
.adm-tl li { display: grid; grid-template-columns: 28px 1fr auto; gap: 0.85rem; padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--border-color); align-items: start; }
.adm-tl__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-color); display: grid; place-items: center; font-size: 0.7rem; color: white; margin-top: 1px; }
.adm-tl .is-done .adm-tl__dot { background: var(--brand-secondary); border-color: var(--brand-secondary); }
.adm-tl .is-now .adm-tl__dot { border-color: var(--brand-primary); background: radial-gradient(var(--brand-primary) 35%, white 40%); }
.adm-tl b { font-size: 0.9rem; }
.adm-tl .is-next b { color: var(--text-muted); }
.adm-tl p { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--text-secondary); }
.adm-tl__file { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; font-size: 0.8rem; }
.adm-tl__file a { color: var(--brand-secondary); font-weight: 600; }
.adm-tl__file .adm-x { width: 20px; height: 20px; font-size: 0.9rem; }
.adm-advance { background: var(--brand-light-muted); padding: 1.1rem 1.25rem; }
.adm-advance h4 { margin: 0 0 0.75rem; color: var(--brand-primary); font-size: 0.95rem; }
.adm-advance .adm-check { margin: 0 1rem 0 0; }
.adm-revert { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border-color); text-align: right; }
.adm-log { list-style: none; margin: 0; padding: 0; }
.adm-log li { display: flex; gap: 0.75rem; padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; align-items: flex-start; }
.adm-log li:last-child { border-bottom: 0; }
.adm-log time { margin-left: auto; color: var(--text-muted); font-size: 0.76rem; white-space: nowrap; }
.adm-log__who { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 0.6rem; font-weight: 700; color: white; background: var(--brand-primary); }
.adm-log__who--client { background: var(--brand-secondary); }
.adm-side { display: flex; flex-direction: column; gap: 1rem; }
.adm-sidehead { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); padding: 0.75rem 1.25rem; }
.adm-kv { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; padding: 0.3rem 0; }
.adm-kv > span:first-child { color: var(--text-secondary); flex: none; }
.adm-kv > span:last-child { text-align: right; word-break: break-word; }
.adm-side__btns { display: flex; gap: 0.4rem; margin-top: 0.75rem; flex-wrap: wrap; }
.adm-access { margin-top: 0.9rem; padding: 0.85rem; background: var(--brand-light-muted); border: 1px solid var(--brand-light); border-radius: 0.6rem; }
.adm-access .form-input { font-size: 0.78rem; }
.adm-access .form-hint { margin: 0.6rem 0 0; }
.adm-side__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; }
