* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --panel-2: #fbfcfd;
    --line: #e6e9ef;
    --text: #1c2330;
    --muted: #667085;
    --primary: #ff6b00;
    --primary-2: #ff8e29;
    --steel: #4b5565;
    --danger: #dc4c64;
    --success: #0d9f6e;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius: 22px;
    --radius-sm: 16px;
    --container: 1240px;
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(255,107,0,0.07), transparent 18%),
        radial-gradient(circle at top right, rgba(17,17,17,0.03), transparent 22%),
        var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    min-height: 100%;
}

body {
    padding-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.header-shell {
    display: grid;
    gap: 10px;
    padding: 14px 0 12px;
}

.header-topbar {
    display: grid;
    grid-template-columns: auto minmax(340px, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #111;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-size: 1rem;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.78rem;
}

.brand-with-image {
    min-width: 180px;
}

.brand-logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.header-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px auto;
    gap: 12px;
    align-items: center;
}

.header-search-box,
.header-state-box,
.header-mobile-location-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.header-search-icon,
.header-state-pin {
    font-size: 1rem;
    color: #8a94a7;
}

.header-search-box input,
.header-state-box select,
.header-mobile-location-form select {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--text);
    box-shadow: none;
    border-radius: 0;
    font-size: 0.98rem;
}

.header-search-box input:focus,
.header-state-box select:focus,
.header-mobile-location-form select:focus {
    box-shadow: none;
}

.header-search-submit {
    min-height: 52px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    padding: 0 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.header-link-item,
.header-icon-link,
.header-profile-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
}

.header-link-item:hover,
.header-icon-link:hover,
.header-profile-pill:hover {
    background: rgba(17, 24, 39, 0.04);
    border-color: rgba(17, 24, 39, 0.06);
}

.header-icon-link,
.header-profile-pill {
    background: var(--panel);
    border-color: var(--line);
}

.header-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef2f6, #d9dee7);
    color: #3b4350;
    font-weight: 800;
    font-size: 0.92rem;
}

.header-icon-symbol {
    font-size: 1rem;
}

.header-count-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(255, 107, 0, 0.35);
}

.header-announce-btn {
    min-height: 52px;
    padding-inline: 22px;
}

.header-mobile-location {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-block;
}

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.92rem;
}

.btn-lg {
    padding: 16px 24px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.22);
}

.btn-ghost {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}
.hero {
    padding: 72px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(244,176,0,0.25);
    background: rgba(244,176,0,0.08);
    color: var(--primary-2);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero h1,
.section h1 {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.02;
    margin: 16px 0 16px;
}

.hero-copy,
.section p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.stat-card,
.card,
.category-card,
.plan-card,
.listing-card,
.notice-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 16px;
}

.stat-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.card {
    padding: 26px;
}

.hero-panel h2 {
    margin: 16px 0 18px;
}

.panel-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(29, 209, 138, 0.14);
    color: var(--success);
    font-weight: 700;
    font-size: 0.82rem;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.section {
    padding: 40px 0 72px;
}

.section-muted {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

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

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.link-arrow {
    color: var(--primary-2);
    font-weight: 700;
}

.category-grid,
.plans-grid,
.listing-grid,
.dashboard-grid {
    display: grid;
    gap: 18px;
}

.category-grid {
    grid-template-columns: repeat(3, 1fr);
}

.category-card {
    padding: 22px;
}

.category-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.plans-grid {
    grid-template-columns: repeat(2, 1fr);
}

.plan-card {
    padding: 26px;
}

.plan-card-featured {
    border-color: rgba(244,176,0,0.35);
    transform: translateY(-2px);
}

.plan-name {
    color: var(--primary-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.plan-price {
    display: block;
    font-size: 2rem;
    margin: 12px 0;
}

.listing-grid {
    grid-template-columns: repeat(4, 1fr);
}

.listing-card {
    overflow: hidden;
}

.listing-media,
.ad-gallery {
    min-height: 190px;
    background:
        linear-gradient(135deg, rgba(244,176,0,0.18), rgba(255,255,255,0.03)),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-bottom: 1px solid var(--line);
}

.listing-body {
    padding: 18px;
}

.listing-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
    min-height: 52px;
}

.price {
    display: block;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--primary-2);
}

.price-large {
    font-size: 2rem;
    margin-top: 12px;
}

.notice-card,
.empty-state {
    padding: 20px;
}

.flash {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.flash-success {
    background: rgba(29, 209, 138, 0.10);
    color: #b7f7dd;
}

.flash-error {
    background: rgba(255, 107, 107, 0.10);
    color: #ffd9d9;
}

.auth-section {
    padding: 60px 0 80px;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(100%, 520px);
}

.auth-card-wide {
    width: min(100%, 860px);
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.span-2 {
    grid-column: span 2;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.94rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    color: var(--text);
    padding: 14px 16px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(244,176,0,0.45);
    box-shadow: 0 0 0 4px rgba(244,176,0,0.10);
}

.auth-foot {
    margin-top: 18px;
    color: var(--muted);
}

.dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 20px;
}

.status-stack {
    display: grid;
    gap: 10px;
}

.status-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.muted-text {
    color: var(--muted);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
}

.ad-page-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    gap: 20px;
}

.ad-location {
    color: var(--muted);
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 22px 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 42px;
    background: rgba(255,255,255,0.02);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.footer-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary-2);
    font-weight: 700;
}

@media (max-width: 980px) {
    .hero-grid,
    .ad-page-grid,
    .dashboard-grid,
    .footer-grid,
    .plans-grid,
    .category-grid,
    .listing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .main-nav {
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .section-head,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-grid,
    .ad-page-grid,
    .dashboard-grid,
    .footer-grid,
    .plans-grid,
    .category-grid,
    .listing-grid,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .brand {
        justify-content: center;
    }

    .main-nav {
        justify-content: center;
    }

    .hero {
        padding-top: 40px;
    }
}


.actions-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 20px;
}

.stack-gap-sm {
    display: grid;
    gap: 12px;
}

.verify-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.compact-card {
    margin-top: 20px;
}

.status-ok {
    color: var(--success);
}

.status-pending {
    color: var(--primary-2);
}

.phone-box {
    display: block;
    margin: 16px 0;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(29, 209, 138, 0.25);
    background: rgba(29, 209, 138, 0.10);
    color: #d9fff0;
    font-size: 1.15rem;
    font-weight: 800;
}

.profile-grid-top {
    align-items: start;
}

.compact-stack .status-line {
    padding: 10px 0;
}

.status-line-column {
    display: grid;
    gap: 4px;
    justify-content: start;
}

code {
    font-family: Consolas, Monaco, monospace;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}

.listing-media {
    height: 220px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.listing-media img,
.gallery-main-image,
.thumb-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-media-empty {
    color: var(--muted);
    font-weight: 700;
}

.listing-media-large {
    min-height: 360px;
}

.listing-body {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.listing-top-meta {
    color: var(--primary-2);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.technical-box {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    background: rgba(255,255,255,0.02);
}

.technical-grid,
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.section-head-tight {
    margin-bottom: 12px;
}

.ad-detail-card {
    display: grid;
    gap: 18px;
}

.gallery-main {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    min-height: 420px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.thumb-button {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    padding: 0;
    cursor: pointer;
    height: 100px;
}

.thumb-button.is-active {
    outline: 2px solid rgba(244,176,0,0.65);
}

.ad-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.spec-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    display: grid;
    gap: 6px;
}

.spec-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.rich-text {
    color: var(--text);
    line-height: 1.8;
}

.sidebar-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.notice-inline {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(244,176,0,0.22);
    background: rgba(244,176,0,0.08);
    color: var(--primary-2);
    font-weight: 700;
}

.chat-list {
    display: grid;
    gap: 12px;
}

.chat-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
}

.chat-list-item p,
.chat-list-item small {
    margin: 4px 0 0;
}

.chat-list-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.badge-unread {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #111318;
    font-weight: 800;
    font-size: 0.85rem;
}

.chat-room {
    display: grid;
    gap: 18px;
}

.chat-messages {
    display: grid;
    gap: 14px;
}

.message-bubble {
    max-width: 80%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.message-bubble p {
    margin: 10px 0;
    color: var(--text);
}

.message-bubble small {
    color: var(--muted);
}

.message-mine {
    margin-left: auto;
    background: rgba(244,176,0,0.10);
    border-color: rgba(244,176,0,0.28);
}

.message-theirs {
    background: rgba(255,255,255,0.03);
}

.chat-compose {
    display: grid;
    gap: 12px;
}

@media (max-width: 760px) {
    .technical-grid,
    .spec-grid,
    .gallery-thumbs {
        grid-template-columns: 1fr 1fr;
    }

    .ad-title-row,
    .chat-list-item {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-list-meta {
        justify-items: start;
    }

    .message-bubble {
        max-width: 100%;
    }

    .gallery-main {
        min-height: 280px;
    }
}

.brand-with-image {
    min-width: 250px;
}

.brand-logo {
    display: block;
    width: 230px;
    max-width: 48vw;
    height: auto;
    object-fit: contain;
}

.nav-highlight {
    color: var(--primary-2);
    font-weight: 800;
}

.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;
}

.hero-brand-logo {
    display: block;
    width: min(100%, 320px);
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #0d0d0f;
}

.brand-panel {
    gap: 18px;
}

.palette-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.palette-card small {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
}

.palette-card strong {
    display: block;
    line-height: 1.4;
}

.palette-card img {
    width: 236px;
    max-width: 46%;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.footer-admin-shortcut {
    margin-top: 16px;
}

.btn-danger {
    background: rgba(255, 107, 107, 0.14);
    color: #ffe3e3;
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.table-wrap {
    overflow-x: auto;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px;
    margin-bottom: 20px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-weight: 700;
}

.filter-pill.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #111318;
    border-color: transparent;
}

.admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.admin-shortcut-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
}

.admin-shortcut-card strong {
    color: var(--primary-2);
    font-size: 1.05rem;
}

.admin-shortcut-card span {
    color: var(--muted);
}

.admin-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
}

.metric-card h2 {
    font-size: 2.2rem;
    margin: 10px 0 16px;
}

.admin-list-grid {
    display: grid;
    gap: 18px;
}

.admin-ad-card {
    display: grid;
    gap: 18px;
}

.admin-ad-top {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
}

.admin-ad-thumb {
    width: 100%;
    height: 140px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.admin-ad-thumb-empty {
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.03);
    color: var(--muted);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.admin-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.admin-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
}

.mini-stack {
    display: grid;
    gap: 6px;
}

.moderation-inline-form {
    display: grid;
    gap: 8px;
    min-width: 230px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-published,
.status-approved,
.status-active {
    background: rgba(29, 209, 138, 0.12);
    color: #bef7df;
    border-color: rgba(29, 209, 138, 0.22);
}

.status-pending {
    background: rgba(254, 108, 0, 0.12);
    color: #ffd3b0;
    border-color: rgba(254, 108, 0, 0.22);
}

.status-rejected,
.status-blocked {
    background: rgba(255, 107, 107, 0.12);
    color: #ffdede;
    border-color: rgba(255, 107, 107, 0.22);
}

.status-paused,
.status-expired {
    background: rgba(199, 201, 203, 0.12);
    color: #f0f0f0;
    border-color: rgba(199, 201, 203, 0.22);
}

@media (max-width: 980px) {
    .admin-shortcuts,
    .admin-metrics-grid,
    .admin-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .palette-card,
    .admin-ad-top,
    .admin-shortcuts,
    .admin-metrics-grid,
    .admin-form-grid,
    .admin-form-grid-2 {
        grid-template-columns: 1fr;
        display: grid;
    }

    .palette-card img {
        max-width: 100%;
        width: 100%;
    }

    .brand-logo {
        width: 190px;
        max-width: 72vw;
    }
}

.brand-with-image .brand-logo {
    width: 230px;
    max-width: 100%;
    display: block;
}

.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;
}

.section-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stack-gap-md {
    display: grid;
    gap: 16px;
}

.search-card,
.quick-search-card {
    padding: 22px;
}

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

.filter-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-span-2 {
    grid-column: span 2;
}

.field-group label {
    color: var(--steel);
    font-size: 0.92rem;
    font-weight: 700;
}

.field-group input,
.field-group select,
.verify-inline input,
textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    outline: none;
}

.field-group input:focus,
.field-group select:focus,
.verify-inline input:focus,
textarea:focus {
    border-color: rgba(254,108,0,0.6);
    box-shadow: 0 0 0 4px rgba(254,108,0,0.12);
}

.search-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-summary {
    margin-left: auto;
}

.listing-top-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.listing-spec-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.listing-spec-row span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--steel);
    font-size: 0.82rem;
    font-weight: 600;
}

.listing-spec-row-lg {
    margin-top: 12px;
}

.favorite-form-inline {
    margin: 0;
}

.favorite-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--steel);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.favorite-btn:hover,
.favorite-btn.is-active {
    color: var(--primary);
    border-color: rgba(254,108,0,0.45);
    background: rgba(254,108,0,0.12);
}

.mini-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mini-favorite-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.mini-favorite-card img,
.mini-favorite-placeholder {
    width: 110px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    display: grid;
    place-items: center;
    color: var(--muted);
}

.mini-favorite-card strong,
.mini-favorite-card small,
.mini-favorite-card span {
    display: block;
}

.mini-favorite-card small,
.mini-favorite-card span {
    color: var(--muted);
    margin-top: 4px;
}

.compact-actions {
    margin-top: 0;
}

@media (max-width: 980px) {
    .hero-grid,
    .ad-page-grid,
    .filter-grid,
    .filter-grid-compact,
    .mini-list-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: span 1;
    }

    .search-summary {
        margin-left: 0;
        width: 100%;
    }
}

.soft-card {
    padding: 18px;
}

.plan-action-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.badge-featured {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(254, 108, 0, 0.16);
    color: #ffd8bb;
    border: 1px solid rgba(254, 108, 0, 0.25);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-awaiting_payment {
    background: rgba(254, 108, 0, 0.12);
    color: #ffd3b0;
    border-color: rgba(254, 108, 0, 0.22);
}

.status-paid {
    background: rgba(29, 209, 138, 0.12);
    color: #bef7df;
    border-color: rgba(29, 209, 138, 0.22);
}

.status-failed,
.status-cancelled {
    background: rgba(255, 107, 107, 0.12);
    color: #ffdede;
    border-color: rgba(255, 107, 107, 0.22);
}

.status-expired {
    background: rgba(199, 201, 203, 0.12);
    color: #f0f0f0;
    border-color: rgba(199, 201, 203, 0.22);
}

.payment-method-grid {
    display: grid;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.payment-option strong {
    display: block;
    margin-bottom: 4px;
}

.payment-option small {
    color: var(--muted);
}

.pix-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: center;
}

.pix-qr-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    min-height: 260px;
}

.pix-qr-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

.pix-copy-box {
    display: grid;
    gap: 12px;
}

.pix-code {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    resize: vertical;
}

.card-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-col-2 {
    grid-column: span 2;
}

.form-actions-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .pix-grid,
    .card-form-grid {
        grid-template-columns: 1fr;
    }

    .form-col-2 {
        grid-column: span 1;
    }
}

.site-main {
    min-height: calc(100vh - 220px);
}

.site-main-home {
    padding-top: 12px;
}

.home-top {
    padding: 10px 0 8px;
}

.home-top-stack {
    display: grid;
    gap: 16px;
}

.category-carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.category-carousel::before,
.category-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease;
}

.category-carousel::before {
    left: 46px;
    background: linear-gradient(90deg, rgba(245,247,250,1), rgba(245,247,250,0));
}

.category-carousel::after {
    right: 46px;
    background: linear-gradient(270deg, rgba(245,247,250,1), rgba(245,247,250,0));
}

.category-carousel.is-start::before,
.category-carousel.is-end::after {
    opacity: 0;
}

.category-carousel-arrow {
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.98);
    color: var(--text);
    display: inline-grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.category-carousel-arrow:hover {
    transform: scale(1.03);
    border-color: rgba(255,107,0,0.28);
}

.category-carousel-arrow[hidden] {
    display: none;
}

.category-carousel-arrow-prev,
.category-carousel-arrow-next {
    position: relative;
}

.category-carousel-arrow-prev {
    justify-self: start;
}

.category-carousel-arrow-next {
    justify-self: end;
}

.home-category-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 4px 6px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}

.home-category-rail::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.94);
    color: var(--text);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.category-chip:hover {
    border-color: rgba(255, 107, 0, 0.24);
    transform: translateY(-1px);
}

.category-chip-highlight {
    background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,142,41,0.07));
}

.category-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f4f6f8;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
}

.hero-marketplace {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 28px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
    min-height: 420px;
    padding: 30px;
    background:
        radial-gradient(circle at top left, rgba(255,107,0,0.14), transparent 24%),
        linear-gradient(135deg, #ffffff, #f5f7fa);
}

.hero-slide.is-active {
    display: grid;
}

.hero-slide-content {
    display: grid;
    align-content: center;
    gap: 16px;
    padding-right: 10px;
}

.hero-slide-content h1 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,107,0,0.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-actions-home {
    margin-top: 6px;
}

.hero-meta-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero-meta-list span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(17,24,39,0.08);
    background: rgba(255,255,255,0.88);
    color: #475467;
    font-weight: 700;
}

.hero-slide-media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 360px;
    background: linear-gradient(135deg, #0f1216, #1d232f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide-media-logo img,
.hero-slide-media-palette img {
    object-fit: contain;
    width: min(76%, 440px);
    height: auto;
}

.hero-media-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(17,18,22,0.78);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(17,24,39,0.1);
    background: rgba(255,255,255,0.92);
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15,23,42,0.08);
}

.hero-arrow-prev {
    left: 18px;
}

.hero-arrow-next {
    right: 18px;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 0 22px;
    margin-top: -10px;
}

.hero-dot {
    width: 42px;
    height: 6px;
    border-radius: 999px;
    border: 0;
    background: #d8dde6;
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.section-home-summary {
    padding-top: 18px;
}

.hero-stats-home {
    grid-template-columns: repeat(3, 1fr);
}

.category-grid-modern {
    grid-template-columns: repeat(3, 1fr);
}

.category-card-modern {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    background: #fff;
}

.category-card-modern p {
    margin: 0;
    color: var(--muted);
}

.category-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,142,41,0.07));
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.listing-card-modern {
    background: #fff;
}

.flash {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.flash-success {
    background: rgba(13, 159, 110, 0.1);
    color: #0c6b4b;
}

.flash-error {
    background: rgba(220, 76, 100, 0.1);
    color: #a61d39;
}

.stat-card,
.card,
.category-card,
.plan-card,
.listing-card,
.notice-card,
.empty-state,
.admin-shortcut-card,
.chat-list-item,
.mini-favorite-card,
.technical-box,
.admin-note,
.payment-option {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.notice-card,
.empty-state,
.notice-inline {
    color: var(--text);
}

.price,
.link-arrow,
.plan-name,
.footer-label,
.listing-top-meta,
.nav-highlight {
    color: var(--primary);
}

.field-group label,
.listing-spec-row span,
.plan-card small,
.auth-foot,
.muted-text,
.chat-list-item small,
.chat-list-item p,
.mini-favorite-card small,
.mini-favorite-card span {
    color: var(--muted);
}

.phone-box {
    color: #0f6d4c;
    background: rgba(13, 159, 110, 0.1);
    border-color: rgba(13, 159, 110, 0.18);
}

.badge-unread,
.filter-pill.is-active,
.badge-featured {
    color: #fff;
}

.badge-unread {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.filter-pill {
    background: #fff;
}

.status-published,
.status-approved,
.status-active,
.status-paid {
    color: #0f6d4c;
    background: rgba(13, 159, 110, 0.1);
    border-color: rgba(13, 159, 110, 0.18);
}

.status-pending,
.status-awaiting_payment {
    color: #a14c00;
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.18);
}

.status-rejected,
.status-blocked,
.status-failed,
.status-cancelled {
    color: #a61d39;
    background: rgba(220, 76, 100, 0.1);
    border-color: rgba(220, 76, 100, 0.18);
}

.status-paused,
.status-expired {
    color: #475467;
    background: rgba(71, 84, 103, 0.08);
    border-color: rgba(71, 84, 103, 0.12);
}

.site-footer {
    margin-top: 38px;
    border-top: 1px solid var(--line);
    padding: 28px 0 42px;
    background: rgba(255,255,255,0.72);
}

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

.header-mobile-bell {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(15,23,42,0.05);
}

@media (max-width: 1120px) {
    .header-topbar {
        grid-template-columns: 1fr;
    }

    .desktop-only {
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .ad-page-grid,
    .dashboard-grid,
    .footer-grid,
    .plans-grid,
    .category-grid,
    .listing-grid,
    .hero-stats-home,
    .category-grid-modern {
        grid-template-columns: 1fr 1fr;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-slide-media {
        min-height: 280px;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 84px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .container {
        width: min(100% - 20px, var(--container));
    }

    .header-shell {
        gap: 8px;
        padding: 10px 0 12px;
    }

    .header-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
    }

    .brand-logo {
        width: 88px;
    }

    .header-search-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .header-search-box {
        min-height: 46px;
        padding: 0 14px;
    }

    .header-state-box,
    .header-search-submit {
        display: none;
    }

    .header-mobile-location {
        display: block;
    }

    .header-mobile-location-form {
        width: fit-content;
        min-height: 0;
        padding: 0 12px;
        height: 38px;
        box-shadow: none;
    }

    .hero-marketplace {
        border-radius: 22px;
    }

    .hero-slide {
        min-height: 0;
        padding: 20px;
    }

    .hero-slide-content h1 {
        font-size: 2rem;
    }

    .hero-slide-media {
        min-height: 210px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        padding-bottom: 18px;
    }

    .category-carousel {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .category-carousel::before,
    .category-carousel::after,
    .category-carousel-arrow {
        display: none;
    }

    .home-category-rail {
        gap: 10px;
        padding: 0 2px 6px;
    }

    .category-chip {
        min-height: 44px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .header-inner,
    .section-head,
    .hero-actions,
    .hero-actions-home,
    .ad-title-row,
    .chat-list-item {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-grid,
    .ad-page-grid,
    .dashboard-grid,
    .footer-grid,
    .plans-grid,
    .category-grid,
    .listing-grid,
    .form-grid-2,
    .hero-stats-home,
    .category-grid-modern,
    .technical-grid,
    .spec-grid,
    .gallery-thumbs,
    .mini-list-grid {
        grid-template-columns: 1fr;
    }

    .span-2,
    .field-span-2,
    .form-col-2 {
        grid-column: span 1;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,0.96);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(12px);
        box-shadow: 0 -8px 20px rgba(15,23,42,0.05);
    }

    .mobile-bottom-link {
        position: relative;
        display: grid;
        justify-items: center;
        gap: 4px;
        padding: 8px 4px;
        color: #667085;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .mobile-bottom-link.is-active {
        color: var(--primary);
    }

    .mobile-bottom-icon {
        font-size: 1.15rem;
        line-height: 1;
    }

    .mobile-bottom-link-accent .mobile-bottom-icon {
        width: 42px;
        height: 42px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, var(--primary), var(--primary-2));
        color: #fff;
        box-shadow: 0 10px 24px rgba(255,107,0,0.26);
    }

    .mobile-bottom-badge {
        position: absolute;
        top: 2px;
        right: 14px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        display: inline-grid;
        place-items: center;
        background: var(--primary);
        color: #fff;
        font-size: 0.65rem;
        font-weight: 800;
    }
}

.brand-with-image {
    min-width: 180px;
}

.brand-logo {
    width: 190px;
    max-width: 100%;
}

@media (max-width: 760px) {
    .brand-with-image {
        min-width: 72px;
    }

    .brand-logo {
        width: 88px;
        max-width: 100%;
    }
}

/* ===== Header v3 responsive fix ===== */
.site-header-v3 {
    position: relative;
    top: auto;
    z-index: 20;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.header-v3-shell {
    padding: 10px 0 10px;
}

.header-desktop-v3,
.header-tablet-v3,
.header-mobile-v3 {
    display: none;
}

.brand-v3 {
    display: inline-flex;
    align-items: center;
}

.brand-logo-v3 {
    width: 154px;
    height: auto;
    display: block;
}

.header-search-desktop-v3,
.header-tablet-search-v3,
.header-mobile-search-v3 {
    display: grid;
    align-items: center;
    gap: 12px;
}

.header-desktop-v3 {
    grid-template-columns: 150px minmax(520px, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.header-search-desktop-v3 {
    grid-template-columns: minmax(0, 1fr) 64px;
    min-width: 0;
}

.header-search-single-v3 {
    grid-template-columns: minmax(0, 1fr) 64px;
}

.header-search-field-v3,
.header-state-field-v3 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
    background: #f5f7fa;
    border: 1px solid #e4e8ef;
}

.header-search-field-v3 input,
.header-state-field-v3 select {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--text);
    box-shadow: none;
    font-size: 0.95rem;
}

.header-search-field-v3 input:focus,
.header-state-field-v3 select:focus {
    box-shadow: none;
}

.header-search-button-v3 {
    width: 64px;
    min-height: 44px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.22);
}

.header-actions-desktop-v3,
.header-tablet-top-actions-v3,
.header-tablet-links-v3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions-desktop-v3 {
    flex-wrap: nowrap;
}

.header-text-link-v3,
.header-icon-pill-v3,
.header-profile-v3,
.header-profile-compact-v3,
.header-chip-link-v3,
.header-square-action-v3 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4e8ef;
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
}

.header-text-link-v3 {
    background: transparent;
    border-color: transparent;
}

.header-plans-link-v3 {
    background: rgba(255, 107, 0, 0.08);
    border-color: rgba(255, 107, 0, 0.18);
    color: var(--primary-2);
}

.header-plans-link-v3 .header-icon-v3 {
    color: var(--primary-2);
}

.header-mobile-plans-v3 {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.82rem;
}

.header-text-link-v3:hover,
.header-icon-pill-v3:hover,
.header-profile-v3:hover,
.header-profile-compact-v3:hover,
.header-chip-link-v3:hover,
.header-square-action-v3:hover {
    background: #f7f9fc;
}

.header-profile-avatar-v3 {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #edf1f6;
    color: #475467;
    font-size: 0.9rem;
    font-weight: 800;
}

.header-announce-v3 {
    min-height: 44px;
    padding-inline: 18px;
}

.header-icon-v3 {
    font-size: 1rem;
    color: #667085;
    line-height: 1;
}

.header-badge-v3 {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.header-tablet-v3 {
    display: none;
    gap: 12px;
}

.header-tablet-top-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-logo-tablet-v3 {
    width: 148px;
}

.header-tablet-top-actions-v3 {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-square-action-v3 {
    width: 46px;
    padding: 0;
    justify-content: center;
}

.header-tablet-search-v3 {
    grid-template-columns: minmax(0, 1fr) 64px;
}

.header-tablet-links-v3 {
    flex-wrap: wrap;
}

.header-mobile-v3 {
    display: none;
    gap: 8px;
}

.header-mobile-top-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-logo-mobile-v3 {
    width: 108px;
}

.header-mobile-search-v3 {
    grid-template-columns: minmax(0, 1fr) 52px;
}

.header-state-field-mobile-v3 {
    min-height: 42px;
    padding: 0 14px;
    width: fit-content;
}

.site-main-home {
    padding-top: 6px;
}

@media (min-width: 1181px) {
    .header-desktop-v3 {
        display: grid;
    }
}

@media (min-width: 1181px) {
    .header-search-desktop-v3 {
        width: min(100%, 760px);
    }

    .header-actions-desktop-v3 {
        justify-content: flex-end;
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    .header-tablet-v3 {
        display: grid;
    }

    .site-header-v3 .container {
        width: min(100% - 24px, var(--container));
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 84px;
    }

    .header-mobile-v3 {
        display: grid;
    }

    .site-header-v3 .container {
        width: min(100% - 16px, var(--container));
    }

    .header-v3-shell {
        padding: 8px 0 10px;
    }

    .header-mobile-search-v3 .header-search-field-v3 {
        min-height: 46px;
        border-radius: 16px;
    }

    .header-mobile-search-v3 .header-search-button-v3 {
        width: 52px;
        min-height: 46px;
        border-radius: 16px;
    }

    .header-mobile-top-v3 {
        gap: 10px;
    }

    .header-mobile-plans-v3 {
        margin-left: auto;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,0.98);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(12px);
        box-shadow: 0 -8px 20px rgba(15,23,42,0.05);
    }
}

/* Hide legacy header blocks from previous attempt */
.site-header-v3 .header-shell,
.site-header-v3 .header-topbar,
.site-header-v3 .header-mobile-location,
.site-header-v3 .desktop-only,
.site-header-v3 .mobile-only {
    display: none !important;
}

/* ===== Home v2 marketplace rails ===== */
.section-tight {
    padding-top: 10px;
    padding-bottom: 0;
}

.section-home-block {
    padding-top: 24px;
    padding-bottom: 24px;
}

.section-head-home {
    margin-bottom: 18px;
}

.section-copy {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 760px;
}

.rail-section {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 12px;
}

.rail-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}

.rail-track::-webkit-scrollbar {
    display: none;
}

.rail-track-ads > * {
    flex: 0 0 min(252px, calc(100vw - 72px));
}

.rail-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    display: inline-grid;
    place-items: center;
    align-self: center;
    font-size: 1.6rem;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.rail-arrow[hidden] {
    display: none;
}

.home-ad-card {
    position: relative;
    min-height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.home-ad-card-link {
    display: block;
    min-height: 100%;
}

.home-ad-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f7f9fc, #eef2f7);
    overflow: hidden;
}

.home-ad-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-ad-media-empty {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
}

.home-ad-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.home-ad-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.home-ad-category {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-ad-body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    min-height: 56px;
}

.home-ad-specs,
.home-ad-location {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.home-ad-price {
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.05;
}

.home-empty-banner,
.mini-link-banner,
.storefront-card,
.tip-card,
.home-category-card,
.google-ad-slot,
.quick-links-shell {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.home-empty-banner {
    display: grid;
    gap: 10px;
    padding: 26px;
    border-radius: 24px;
}

.home-empty-banner p {
    margin: 0;
    color: var(--muted);
}

.mini-link-banner {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(255,255,255,0.96));
}

.mini-link-banner strong,
.mini-link-banner span {
    display: block;
}

.mini-link-banner span {
    color: var(--muted);
}

.mini-link-banner-cta {
    min-width: 140px;
    text-align: center;
    color: var(--primary);
    font-weight: 800;
}

.storefront-grid,
.tips-grid,
.home-category-cards-grid,
.google-ads-grid {
    display: grid;
    gap: 18px;
}

.top-google-ad-slot {
    display: grid;
    gap: 8px;
    align-items: center;
    min-height: 112px;
    padding: 18px 28px;
    border-radius: 28px;
    border: 1px dashed rgba(255, 107, 0, 0.28);
    background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(255,255,255,0.98));
    color: var(--text);
}

.top-google-ad-slot-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,107,0,0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.top-google-ad-slot strong {
    font-size: 1.05rem;
}

.top-google-ad-slot small {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.storefront-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storefront-card,
.tip-card {
    border-radius: 26px;
    padding: 24px;
}

.storefront-card-media {
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 260px;
}

.storefront-card-link {
    position: relative;
    display: block;
    min-height: 260px;
    border-radius: inherit;
    overflow: hidden;
}

.storefront-card-link.is-static {
    cursor: default;
}

.storefront-card-picture,
.storefront-card-picture img {
    display: block;
    width: 100%;
    height: 100%;
}

.storefront-card-picture {
    position: absolute;
    inset: 0;
}

.storefront-card-picture img {
    object-fit: cover;
}

.storefront-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.04) 0%, rgba(10, 15, 28, 0.34) 100%);
    pointer-events: none;
}

.storefront-card-cta {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: calc(100% - 32px);
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.storefront-card h3,
.tip-card h3 {
    margin: 12px 0 10px;
    font-size: 1.32rem;
}

.storefront-card p,
.tip-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.storefront-tag {
    display: inline-flex;
    min-height: 32px;
    padding: 0 12px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255,107,0,0.1);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-category-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-category-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 24px;
}

.home-category-card strong {
    font-size: 1.1rem;
}

.home-category-card small {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.home-category-card-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255,107,0,0.14), rgba(255,142,41,0.08));
    color: var(--primary);
    font-weight: 900;
}

.home-category-card-icon {
    font-size: 1.35rem;
    line-height: 1;
}

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

.google-ads-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.google-ad-slot {
    border-radius: 24px;
    min-height: 158px;
    display: grid;
    place-items: center;
    padding: 22px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
    background: linear-gradient(135deg, #f9fafb, #eef2f7);
}

.google-ad-slot-wide {
    grid-column: span 2;
    min-height: 120px;
}

.quick-links-shell {
    border-radius: 28px;
    padding: 0 22px 22px;
}

.quick-links-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-top: 8px;
}

.quick-links-tab {
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #475467;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.quick-links-tab.is-active,
.quick-links-tab:hover,
.quick-links-tab:focus-visible {
    color: var(--primary);
    border-bottom-color: var(--primary);
    outline: 0;
}

.quick-links-panel {
    display: none;
}

.quick-links-panel.is-active {
    display: block;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 28px;
}

.quick-links-column {
    display: grid;
    gap: 16px;
}

.quick-links-column a {
    color: var(--text);
    font-size: 1rem;
}

.quick-links-column a:hover {
    color: var(--primary);
}

.quick-links-column a.is-hidden-mobile {
    display: none;
}

.quick-links-toggle {
    display: none;
    margin-top: 18px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 107, 0, 0.2);
    background: rgba(255, 107, 0, 0.08);
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .rail-track-ads > * {
        flex-basis: min(232px, calc(100vw - 88px));
    }

    .storefront-grid,
    .quick-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-category-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-category-cards-grid > :nth-child(n + 7) {
        display: none;
    }

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

    .quick-links-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .section-home-block {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .section-head-home {
        margin-bottom: 14px;
    }

    .rail-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .rail-arrow {
        display: none;
    }

    .rail-track {
        padding-bottom: 4px;
        gap: 12px;
    }

    .rail-track-ads > * {
        flex-basis: min(250px, calc(100vw - 54px));
    }

    .home-ad-body h3 {
        min-height: 0;
        font-size: 1rem;
    }

    .mini-link-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }

    .storefront-grid,
    .tips-grid,
    .google-ads-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .storefront-card-media,
    .storefront-card-link {
        min-height: 208px;
    }

    .storefront-card-cta {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        min-height: 40px;
        font-size: 0.92rem;
    }

    .home-category-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .home-category-card {
        padding: 16px 10px;
        gap: 8px;
        text-align: center;
    }

    .home-category-card strong {
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .home-category-card small {
        display: none;
    }

    .home-category-card-badge {
        width: 44px;
        height: 44px;
        margin: 0 auto;
        border-radius: 14px;
    }

    .home-category-card-icon {
        font-size: 1.15rem;
    }

    .quick-links-shell {
        padding: 0 16px 18px;
        border-radius: 22px;
    }

    .quick-links-tab {
        min-height: 46px;
        padding: 0 10px;
        font-size: 0.92rem;
    }

    .quick-links-column {
        gap: 14px;
    }
}

/* Ad detail page redesign */
body.page-ad-show {
    background: #f7f8fb;
}

.section-ad-show-page {
    padding-top: 24px;
    padding-bottom: 136px;
}

.ad-show-shell {
    display: grid;
    gap: 24px;
}

.ad-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) 360px;
    gap: 22px;
    align-items: start;
}

.ad-detail-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 16px;
}

.ad-show-main {
    display: grid;
    gap: 22px;
}

.ad-top-media-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.ad-inline-google-card {
    border-radius: 24px;
    border: 1px dashed rgba(236, 117, 34, 0.24);
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,247,242,0.96));
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.ad-inline-google-card__label {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ad-inline-google-card__content {
    display: grid;
    gap: 8px;
}

.ad-inline-google-card__content strong {
    font-size: 1rem;
    line-height: 1.3;
    color: var(--primary-dark);
}

.ad-inline-google-card__content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--muted);
}

.desktop-inline-google-ad {
    min-height: 132px;
    padding: 18px 20px;
    display: grid;
    gap: 10px;
}

.ad-media-card,
.ad-summary-card,
.seller-contact-card,
.ad-price-card {
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.ad-price-card,
.seller-contact-card,
.ad-summary-card {
    padding: 20px;
}

.ad-price-card h1 {
    margin: 6px 0 8px;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.15;
}

.ad-location {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.ad-price-value {
    display: block;
    margin-top: 14px;
    color: var(--primary-dark);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1;
    font-weight: 900;
}

.ad-media-stage {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2f7, #dde5ef);
    min-height: 470px;
}

.ad-media-stage-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.ad-stage-video,
.ad-stage-embed,
.gallery-main-image {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    display: block;
    border: 0;
}

.ad-stage-embed {
    background: #000;
}

.is-hidden {
    display: none !important;
}

.ad-media-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.ad-media-thumb {
    min-height: 82px;
    display: grid;
    place-items: center;
    gap: 8px;
    background: #fff7f2;
    color: var(--text);
    padding: 10px;
}

.ad-media-thumb img {
    width: 100%;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.ad-media-thumb strong {
    font-size: 0.78rem;
}

.ad-media-thumb-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 800;
}

.ad-mobile-gallery {
    display: none;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 2px;
    scroll-snap-type: x mandatory;
}

.ad-mobile-gallery::-webkit-scrollbar {
    display: none;
}

.ad-mobile-gallery-item {
    min-width: min(86vw, 360px);
    border-radius: 18px;
    overflow: hidden;
    background: #111827;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.ad-mobile-gallery-item img,
.ad-mobile-gallery-item video,
.ad-mobile-gallery-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.section-title-small {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.25;
}

.ad-highlight-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ad-highlight-strip span,
.seller-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff7f2;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid rgba(236, 117, 34, 0.16);
}

.seller-chip-success {
    background: #ebfff3;
    color: #147d46;
    border-color: rgba(20, 125, 70, 0.16);
}

.ad-info-grid,
.spec-grid-product,
.seller-contact-meta-grid {
    display: grid;
    gap: 12px;
}

.ad-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spec-grid-product {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seller-contact-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad-info-item,
.spec-item,
.seller-contact-meta > div {
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    display: grid;
    gap: 5px;
}

.ad-info-item span,
.spec-item span,
.seller-contact-meta span {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.2;
}

.ad-info-item strong,
.spec-item strong,
.seller-contact-meta strong {
    font-size: 0.88rem;
    line-height: 1.25;
}

.ad-description-block .rich-text {
    color: var(--text);
    display: block;
    line-height: 1.65;
    font-size: 0.94rem;
}

.section-ad-slot-block {
    padding-top: 0;
}

.google-ad-slot-wide {
    min-height: 124px;
    padding: 24px;
    border-radius: 24px;
    display: grid;
    gap: 7px;
}

.google-ad-slot-wide p {
    margin: 0;
    color: var(--muted);
}

.google-ad-slot-label {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

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

.ad-safety-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ad-safety-card {
    padding: 18px;
    border-radius: 22px;
}

.ad-safety-card h3 {
    margin: 8px 0 10px;
    font-size: 0.98rem;
    line-height: 1.35;
}

.ad-safety-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.9rem;
}

.seller-contact-card {
    display: grid;
    gap: 16px;
}

.seller-contact-card h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.seller-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seller-chat-form textarea {
    min-height: 84px;
}

.ad-mobile-sticky-cta {
    display: none;
}

@media (max-width: 1180px) {
    .ad-detail-top {
        grid-template-columns: 1fr;
    }

    .desktop-inline-google-ad {
        display: none;
    }

    .ad-detail-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .ad-info-grid,
    .spec-grid-product {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .section-ad-show-page {
        padding-top: 16px;
        padding-bottom: 170px;
    }

    .ad-detail-side {
        grid-template-columns: 1fr;
    }

    .ad-media-stage,
    .desktop-only-media {
        display: none;
    }

    .ad-mobile-gallery {
        display: flex;
    }

    .ad-price-card,
    .seller-contact-card,
    .ad-summary-card {
        padding: 16px;
    }

    .ad-price-card h1 {
        font-size: 1.18rem;
    }

    .ad-price-value {
        font-size: 1.55rem;
    }

    .ad-info-grid,
    .spec-grid-product {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .seller-contact-meta-grid,
    .ad-safety-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-head-between {
        align-items: stretch;
        flex-direction: column;
    }

    .ad-mobile-sticky-cta {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 1000;
        display: grid;
        gap: 8px;
    }

    .ad-mobile-sticky-main,
    .ad-mobile-sticky-ad {
        border-radius: 18px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    }

    .ad-mobile-sticky-main {
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(12px);
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .ad-mobile-sticky-copy {
        min-width: 0;
    }

    .ad-mobile-sticky-main strong {
        display: block;
        font-size: 0.95rem;
        line-height: 1.1;
    }

    .ad-mobile-sticky-main small {
        display: block;
        color: var(--muted);
        margin-top: 3px;
        font-size: 0.74rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ad-mobile-sticky-form {
        margin: 0;
        flex-shrink: 0;
    }

    .ad-mobile-sticky-main .btn {
        min-width: 146px;
        min-height: 44px;
        white-space: nowrap;
        padding: 0 16px;
        font-size: 0.88rem;
    }

    .ad-mobile-sticky-ad {
        background: rgba(17, 24, 39, 0.97);
        color: #fff;
        padding: 9px 12px;
        display: grid;
        gap: 4px;
    }

    .ad-mobile-sticky-ad span {
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.76);
    }

    .ad-mobile-sticky-ad small {
        color: rgba(255,255,255,0.92);
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .ad-info-grid,
    .spec-grid-product,
    .seller-contact-meta-grid,
    .ad-safety-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ad-mobile-sticky-main {
        padding: 10px;
    }

    .ad-mobile-sticky-main .btn {
        min-width: 132px;
        padding: 0 12px;
        font-size: 0.82rem;
    }
}

/* Search results page */
.search-mobile-filter-toggle {
    display: none;
}

.search-mobile-filter-overlay[hidden] {
    display: none !important;
}

.search-mobile-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.58);
    padding-top: env(safe-area-inset-top, 0px);
}

.search-mobile-filter-panel {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: grid;
    grid-template-rows: auto 1fr;
}

.search-mobile-filter-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 16px;
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.search-mobile-filter-head strong {
    font-size: 1.02rem;
    color: #0f172a;
}

.search-mobile-filter-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-mobile-filter-body {
    overflow-y: auto;
    padding: 16px 18px 28px;
}

body.search-filter-open {
    overflow: hidden;
}

.search-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 250px;
    gap: 22px;
    align-items: start;
}

.search-sidebar-left,
.search-google-sticky-card,
.search-results-hero,
.search-pagination,
.search-quick-links,
.search-feature-card {
    border-radius: 24px;
}

.search-sidebar {
    position: sticky;
    top: 24px;
}

.search-sidebar-left {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.search-sidebar-head h2 {
    font-size: 1.25rem;
    margin: 6px 0 8px;
}

.search-sidebar-head p {
    margin: 0;
    color: var(--color-text-soft, #64748b);
    font-size: 0.95rem;
    line-height: 1.55;
}

.search-filter-form {
    display: grid;
    gap: 14px;
}

.search-filter-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.search-filter-grid-2 label {
    display: block;
    margin-bottom: 8px;
}

.search-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.search-main-column {
    display: grid;
    gap: 22px;
}

.search-results-hero {
    padding: 26px;
    display: grid;
    gap: 18px;
}

.search-results-title-wrap h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.08;
    color: #0f172a;
}

.search-divider {
    color: #f97316;
}

.search-results-count {
    margin: 10px 0 0;
    font-size: 0.98rem;
    color: #64748b;
}

.search-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.search-seller-toggle {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-toggle-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    transition: all 0.2s ease;
}

.search-toggle-chip:hover,
.search-toggle-chip.is-active {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border-color: rgba(249, 115, 22, 0.28);
}

.search-sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-sort-form label {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    font-weight: 700;
}

.search-sort-form select {
    min-width: 180px;
}

.search-inline-ad {
    border: 1px dashed rgba(249, 115, 22, 0.35);
    background: linear-gradient(135deg, rgba(255,247,237,0.92), rgba(255,255,255,0.98));
    border-radius: 20px;
    padding: 18px 20px;
    display: grid;
    gap: 4px;
}

.search-inline-ad span,
.search-grid-google-card span,
.search-grid-google-inline span,
.search-google-sticky-card span {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f97316;
    font-weight: 800;
}

.search-inline-ad strong,
.search-grid-google-card strong,
.search-grid-google-inline strong,
.search-google-sticky-card strong {
    color: #0f172a;
    font-size: 1rem;
}

.search-inline-ad small,
.search-grid-google-card p,
.search-google-sticky-card p {
    color: #64748b;
}

.search-grid-wrap {
    display: grid;
    gap: 16px;
}

.search-grid-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.search-card-product,
.search-grid-google-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    overflow: hidden;
    min-width: 0;
}

.search-card-product {
    display: grid;
    grid-template-rows: auto 1fr;
}

.search-card-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #eef2f7;
    overflow: hidden;
}

.search-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-weight: 700;
}

.search-card-body {
    padding: 14px 14px 16px;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.search-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.search-card-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ea580c;
    background: rgba(249, 115, 22, 0.12);
    padding: 7px 10px;
    border-radius: 999px;
}

.search-card-body h3,
.search-card-body h3 a {
    font-size: 1.02rem;
    line-height: 1.35;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card-specs,
.search-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #64748b;
    font-size: 0.82rem;
}

.search-card-specs span,
.search-card-meta span {
    white-space: nowrap;
}

.search-card-price {
    font-size: 1.18rem;
    color: #111827;
}

.search-grid-google-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    min-height: 100%;
    background: linear-gradient(145deg, #fff7ed, #ffffff);
}

.search-grid-google-inline {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px dashed rgba(249, 115, 22, 0.35);
    background: #fff;
}

.search-pagination {
    padding: 18px 22px;
}

.search-pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}

.search-page-btn.is-current,
.search-page-btn:hover {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.search-after-pagination {
    display: grid;
    gap: 18px;
}

.search-inline-ad-rectangle {
    min-height: 120px;
    align-content: center;
}

.search-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.search-feature-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 20px;
    min-height: 150px;
}

.search-feature-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #0f172a;
}

.search-feature-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.search-quick-links {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.search-quick-links-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 12px;
}

.search-quick-tab {
    background: transparent;
    border: 0;
    color: #334155;
    font-weight: 800;
    padding: 8px 4px 12px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.search-quick-tab:hover,
.search-quick-tab.is-active {
    color: #ea580c;
    border-color: #f97316;
}

.search-quick-panel {
    display: none;
}

.search-quick-panel.is-active {
    display: block;
}

.search-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 20px;
}

.search-quick-grid a {
    color: #0f172a;
    font-weight: 600;
}

.search-quick-grid a:hover {
    color: #ea580c;
}

.search-google-sticky-card {
    position: sticky;
    top: 24px;
    min-height: 340px;
    padding: 24px;
    display: grid;
    align-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border: 1px dashed rgba(249, 115, 22, 0.35);
}

@media (max-width: 1260px) {
    .search-layout {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .search-sidebar-right {
        grid-column: 1 / -1;
        position: static;
    }

    .search-google-sticky-card {
        position: static;
        min-height: 180px;
    }
}

@media (max-width: 1040px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 18px;
        border-radius: 999px;
        border: 1px solid rgba(249, 115, 22, 0.24);
        background: rgba(255, 247, 237, 0.96);
        color: #ea580c;
        font-weight: 800;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
        position: sticky;
        top: 10px;
        z-index: 25;
        margin: 0 0 16px auto;
    }

    .search-sidebar-left {
        display: none;
    }

    .search-sidebar {
        position: static;
    }

    .search-sidebar-left,
    .search-results-hero,
    .search-quick-links {
        border-radius: 20px;
    }

    .search-grid-results,
    .search-feature-grid,
    .search-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .search-results-title-wrap h1 {
        font-size: 1.45rem;
    }

    .search-grid-results,
    .search-feature-grid,
    .search-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-card-body {
        padding: 10px;
        gap: 8px;
    }

    .search-card-body h3,
    .search-card-body h3 a {
        font-size: 0.88rem;
    }

    .search-card-price {
        font-size: 1rem;
    }

    .search-card-specs,
    .search-card-meta,
    .search-card-badge {
        font-size: 0.72rem;
    }

    .search-grid-google-card {
        padding: 14px;
    }

    .search-grid-google-inline {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .search-feature-card {
        padding: 16px;
        min-height: 124px;
    }
}

@media (max-width: 560px) {
    .search-layout {
        gap: 16px;
    }

    .search-mobile-filter-toggle {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }

    .search-sidebar-left,
    .search-results-hero,
    .search-quick-links,
    .search-pagination {
        padding: 16px;
    }

    .search-toolbar-row,
    .search-sort-form {
        align-items: stretch;
    }

    .search-sort-form {
        width: 100%;
    }

    .search-sort-form select {
        min-width: 0;
        width: 100%;
    }

    .search-filter-grid-2 {
        grid-template-columns: 1fr;
    }

    .search-grid-results,
    .search-feature-grid,
    .search-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .search-card-body h3,
    .search-card-body h3 a {
        font-size: 0.82rem;
    }

    .search-card-price {
        font-size: 0.92rem;
    }

    .search-card-specs,
    .search-card-meta {
        font-size: 0.68rem;
        gap: 4px 6px;
    }

    .search-card-badge {
        padding: 6px 8px;
        font-size: 0.63rem;
    }

    .search-feature-card strong {
        font-size: 0.9rem;
    }

    .search-feature-card p,
    .search-inline-ad small,
    .search-google-sticky-card p {
        font-size: 0.78rem;
    }
}


/* Search filters mobile auto-submit + floating bar overrides */
.search-filter-auto-note {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.search-mobile-filter-bar {
    display: none;
}

@media (max-width: 1180px) {
    .search-mobile-filter-bar {
        display: block;
        position: sticky;
        top: 0;
        z-index: 90;
        padding: 10px 0 0;
        background: linear-gradient(180deg, rgba(244, 246, 248, 0.96), rgba(244, 246, 248, 0.75) 72%, rgba(244, 246, 248, 0));
        backdrop-filter: blur(10px);
    }

    .search-mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 50px;
        padding: 0 18px;
        border-radius: 999px;
        border: 1px solid rgba(249, 115, 22, 0.22);
        background: #fff;
        color: #ea580c;
        font-weight: 800;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
        margin: 0 0 14px;
    }

    .search-mobile-filter-toggle-icon {
        font-size: 1rem;
        line-height: 1;
    }

    .search-sidebar-left {
        display: none !important;
    }

    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        position: static;
    }
}

@media (max-width: 1040px) {
    .search-mobile-filter-toggle {
        position: static;
        top: auto;
        margin: 0 0 14px;
    }
}

@media (max-width: 560px) {
    .search-mobile-filter-bar {
        padding-top: 8px;
    }

    .search-mobile-filter-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Painel do usuário redesenhado ===== */
.panel-section {
    padding-top: 34px;
    padding-bottom: 18px;
}

.panel-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.panel-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.panel-sidebar-top,
.panel-nav-card {
    padding: 22px;
}

.panel-sidebar-top {
    background: linear-gradient(180deg, #1b2230 0%, #111722 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.18);
}

.panel-sidebar-home-link {
    display: block;
}

.panel-sidebar-profile {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 10px;
}

.panel-sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #1c1310;
    font-size: 1.7rem;
    font-weight: 900;
}

.panel-sidebar-top h2 {
    margin: 0 0 6px;
    font-size: 1.32rem;
}

.panel-sidebar-top .muted-text {
    margin: 0;
    color: rgba(255,255,255,0.72);
}

.panel-sidebar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.panel-mini-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.panel-mini-chip.is-ok {
    background: rgba(13,159,110,0.15);
    border-color: rgba(13,159,110,0.28);
    color: #c5ffe6;
}

.panel-nav-card {
    display: grid;
    gap: 18px;
}

.panel-nav-section {
    display: grid;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.panel-nav-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.panel-nav-title {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-nav-link,
.panel-nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: var(--panel-2);
    color: var(--text);
    font-weight: 800;
    transition: 0.18s ease;
}

.panel-nav-link:hover,
.panel-nav-link.is-active,
.panel-nav-button:hover {
    border-color: rgba(254,108,0,0.2);
    background: rgba(254,108,0,0.08);
    color: #7f3900;
    transform: translateY(-1px);
}

.panel-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--primary);
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.panel-nav-button {
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.panel-logout-form {
    margin: 0;
}

.panel-content {
    min-width: 0;
    display: grid;
    gap: 20px;
}

.panel-dashboard-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.92fr);
    gap: 18px;
}

.panel-welcome-card,
.panel-account-card,
.panel-feature-card,
.panel-metric-card,
.panel-status-card,
.panel-faq-card {
    padding: 22px;
}

.panel-welcome-card {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 30%),
        linear-gradient(135deg, #121924 0%, #232c3a 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.18);
}

.panel-welcome-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.panel-welcome-card .muted-text,
.panel-welcome-card .eyebrow {
    color: rgba(255,255,255,0.74);
}

.panel-welcome-card h1 {
    margin: 8px 0 10px;
    font-size: clamp(1.9rem, 2.5vw, 2.7rem);
}

.panel-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-hero-highlight-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.panel-highlight-pill {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
    font-size: 0.9rem;
}

.panel-highlight-pill.is-ok {
    background: rgba(13,159,110,0.18);
    border-color: rgba(13,159,110,0.28);
}

.panel-account-card {
    display: grid;
    gap: 18px;
    align-content: start;
}

.panel-account-top {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.panel-account-avatar {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #1c1310;
    font-size: 1.75rem;
    font-weight: 900;
}

.panel-account-card h2 {
    margin: 6px 0 4px;
    font-size: 1.28rem;
}

.panel-progress-block {
    display: grid;
    gap: 12px;
}

.panel-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-progress-head strong {
    font-size: 0.96rem;
}

.panel-progress-head span {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 800;
}

.panel-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #edf1f5;
    overflow: hidden;
}

.panel-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.panel-verify-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.panel-verify-chip {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.panel-verify-chip.is-ok {
    border-color: rgba(13,159,110,0.22);
    background: rgba(13,159,110,0.08);
    color: var(--success);
}

.panel-metric-grid,
.panel-card-grid,
.panel-help-grid,
.panel-feature-grid,
.panel-bottom-grid {
    display: grid;
    gap: 16px;
}

.panel-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-metric-card {
    position: relative;
    overflow: hidden;
}

.panel-metric-card::before {
    content: '';
    position: absolute;
    inset: auto -18px -18px auto;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(255,107,0,0.12), transparent 68%);
}

.panel-metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(254,108,0,0.1);
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 10px;
}

.panel-metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
    line-height: 1;
}

.panel-metric-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.panel-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-feature-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.panel-feature-card-wide {
    grid-column: span 2;
}

.panel-feature-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-feature-badge {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(254,108,0,0.08);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.82rem;
}

.panel-shortcut-card h2,
.panel-status-card h2,
.panel-faq-card h2,
.panel-ad-top h2,
.panel-feature-card h2 {
    margin: 6px 0 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.panel-link-stack {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.panel-inline-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    font-weight: 800;
    transition: 0.18s ease;
}

.panel-inline-link::after {
    content: '›';
    color: var(--primary);
    font-size: 1.1rem;
}

.panel-inline-link:hover {
    border-color: rgba(254,108,0,0.2);
    background: rgba(254,108,0,0.08);
}

.panel-inline-link-solid {
    background: linear-gradient(135deg, rgba(254,108,0,0.12), rgba(255,142,41,0.08));
}

.panel-mini-list {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.panel-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.panel-mini-row strong {
    display: block;
    font-size: 0.96rem;
}

.panel-mini-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.panel-mini-row-highlight {
    background: rgba(254,108,0,0.04);
}

.panel-bottom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-check-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.panel-form-tight input,
.panel-form-tight select,
.panel-form-tight textarea {
    padding: 12px 14px;
}

.panel-verification-stack {
    margin-top: 18px;
}

.panel-ad-list {
    display: grid;
    gap: 16px;
}

.panel-ad-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
}

.panel-ad-image {
    width: 100%;
    height: 162px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255,255,255,0.04);
}

.panel-ad-image-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.panel-ad-body {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.panel-ad-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.panel-ad-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.panel-ad-meta-grid span {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--steel);
    font-size: 0.84rem;
    font-weight: 700;
}

.panel-ad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-ad-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-faq-card p,
.panel-shortcut-card p,
.panel-status-card p,
.panel-feature-card p {
    margin: 0;
}

@media (max-width: 1240px) {
    .panel-shell {
        grid-template-columns: 284px minmax(0, 1fr);
    }

    .panel-dashboard-top {
        grid-template-columns: 1fr;
    }

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

    .panel-feature-card-wide {
        grid-column: span 2;
    }

    .panel-bottom-grid,
    .panel-card-grid-3,
    .panel-help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 980px) {
    .panel-shell {
        grid-template-columns: 1fr;
    }

    .panel-sidebar {
        position: static;
    }
}

@media (max-width: 860px) {
    .panel-section {
        padding-top: 22px;
    }

    .panel-welcome-top,
    .panel-ad-card,
    .panel-ad-top,
    .panel-ad-footer,
    .panel-feature-head,
    .panel-mini-row {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-feature-grid,
    .panel-card-grid-2,
    .panel-card-grid-3,
    .panel-help-grid,
    .panel-bottom-grid,
    .panel-ad-meta-grid {
        grid-template-columns: 1fr;
    }

    .panel-feature-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .panel-sidebar-top,
    .panel-nav-card,
    .panel-welcome-card,
    .panel-account-card,
    .panel-metric-card,
    .panel-feature-card,
    .panel-status-card,
    .panel-faq-card {
        padding: 18px;
    }

    .panel-sidebar-profile,
    .panel-account-top {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .panel-sidebar-avatar,
    .panel-account-avatar {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 1.4rem;
    }

    .panel-welcome-card h1 {
        font-size: 1.6rem;
    }

    .panel-metric-grid,
    .panel-verify-list {
        grid-template-columns: 1fr;
    }

    .panel-ad-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .panel-ad-image {
        height: 190px;
    }
}



.panel-verify-box {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.55);
}

.panel-verify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.panel-verify-head strong {
    display: block;
    font-size: 1rem;
}

.panel-verify-head small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.panel-verify-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.panel-verify-box-compact .panel-verify-head {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .panel-verify-head,
    .panel-verify-inline {
        grid-template-columns: 1fr;
        display: grid;
    }

    .panel-verify-head .btn,
    .panel-verify-inline .btn {
        width: 100%;
    }
}


.input-locked,
input[readonly].input-locked,
input:disabled.input-locked {
    background: #eef1f4 !important;
    border-color: #d7dce3 !important;
    color: #8f98a8 !important;
    -webkit-text-fill-color: #8f98a8;
    opacity: 1;
}

.input-locked::placeholder,
input:disabled.input-locked::placeholder,
input[readonly].input-locked::placeholder,
input:disabled::placeholder,
input[readonly]::placeholder {
    color: #98a2b3 !important;
    -webkit-text-fill-color: #98a2b3;
    opacity: 1;
}


/* Chat workspace redesign */
.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;
}

.chat-page-section .container {
    max-width: min(1480px, calc(100% - 32px));
}

.chat-page-head {
    margin-bottom: 18px;
}

.chat-workspace {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.chat-sidebar-panel,
.chat-room-panel {
    padding: 0;
    overflow: hidden;
}

.chat-sidebar-panel {
    display: grid;
    align-content: start;
}

.chat-sidebar-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255,122,0,0.05) 0%, rgba(255,255,255,0.98) 100%);
}

.chat-sidebar-header h2,
.chat-sidebar-title-row h3 {
    margin: 4px 0 0;
    font-size: 1.04rem;
}

.chat-sidebar-link {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.94rem;
}

.chat-sidebar-block {
    padding: 18px 16px 0;
}

.chat-sidebar-block:last-child {
    padding-bottom: 16px;
}

.chat-sidebar-block-muted {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 10px;
    padding-top: 16px;
}

.chat-sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.chat-sidebar-title-row span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.chat-thread-list {
    display: grid;
    gap: 10px;
}

.chat-thread-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.chat-thread-card:hover,
.chat-thread-card.is-active {
    transform: translateY(-1px);
    border-color: rgba(255,122,0,0.36);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.chat-thread-list-inactive .chat-thread-card {
    opacity: 0.8;
}

.chat-thread-thumb,
.chat-room-ad-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f4f5f6;
}

.chat-thread-thumb {
    width: 76px;
    height: 76px;
}

.chat-room-ad-thumb {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.chat-thread-thumb img,
.chat-room-ad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-thread-thumb-empty,
.chat-room-ad-thumb-empty {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.chat-thread-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.chat-thread-copy strong,
.chat-room-ad-copy strong {
    font-size: 0.96rem;
    line-height: 1.32;
}

.chat-thread-copy span,
.chat-room-ad-copy small {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.chat-thread-copy small {
    color: #667085;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chat-thread-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.chat-thread-meta small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.chat-empty-state,
.chat-empty-detail,
.chat-empty-conversation {
    margin: 16px;
}

.chat-room-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 760px;
}

.chat-room-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255,122,0,0.04) 0%, rgba(255,255,255,0.98) 100%);
}

.chat-room-ad-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.chat-room-ad-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.chat-room-label {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,122,0,0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chat-room-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chat-room-price-box {
    display: grid;
    gap: 4px;
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.chat-room-price-box span,
.chat-room-price-box small {
    color: var(--muted);
    font-size: 0.82rem;
}

.chat-room-price-box strong {
    color: #111827;
    font-size: 1.18rem;
    line-height: 1.1;
}

.chat-messages-surface {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    background: linear-gradient(180deg, rgba(248,250,252,0.94) 0%, rgba(255,255,255,0.98) 100%);
}

.chat-messages-scroll {
    display: grid;
    gap: 14px;
    padding: 20px 24px;
    overflow-y: auto;
    align-content: start;
}

.message-bubble {
    max-width: min(72%, 560px);
    padding: 14px 16px;
    border-radius: 20px;
}

.message-bubble strong {
    font-size: 0.84rem;
}

.message-bubble p {
    font-size: 0.94rem;
    line-height: 1.55;
}

.message-bubble small {
    font-size: 0.76rem;
}

.chat-compose-panel {
    display: grid;
    gap: 12px;
    padding: 18px 24px 22px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.96);
}

.chat-compose-panel textarea {
    min-height: 126px;
    resize: vertical;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 16px 18px;
    font-size: 0.96rem;
    line-height: 1.55;
    background: #fff;
}

.chat-compose-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.chat-compose-actions .muted-text {
    margin: 0;
    font-size: 0.82rem;
}

@media (max-width: 1120px) {
    .chat-workspace {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .chat-room-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-room-header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .chat-workspace {
        grid-template-columns: 1fr;
    }

    .chat-sidebar-panel {
        order: 1;
    }

    .chat-room-panel {
        order: 2;
        min-height: 0;
    }

    .chat-thread-card {
        grid-template-columns: 64px minmax(0, 1fr) auto;
    }

    .chat-thread-thumb {
        width: 64px;
        height: 64px;
    }

    .chat-room-ad-thumb {
        width: 74px;
        height: 74px;
    }

    .chat-messages-scroll,
    .chat-compose-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .message-bubble {
        max-width: 100%;
    }

    .chat-compose-actions {
        align-items: stretch;
        flex-direction: column;
    }
}


@media (max-width: 860px) {
    .chat-page-section {
        padding-top: 12px;
    }

    .chat-page-head {
        margin-bottom: 12px;
    }

    .chat-page-head h1 {
        font-size: 1.2rem;
    }

    .chat-page-head p {
        font-size: 0.9rem;
    }

    .chat-workspace.is-mobile-list .chat-room-panel {
        display: none;
    }

    .chat-workspace.is-mobile-detail .chat-sidebar-panel {
        display: none;
    }

    .chat-workspace.is-mobile-detail {
        display: block;
    }

    .chat-workspace.is-mobile-detail .chat-room-panel {
        min-height: calc(100vh - 132px);
        border-radius: 24px;
    }

    .chat-workspace.is-mobile-list .chat-sidebar-panel,
    .chat-workspace.is-mobile-detail .chat-room-panel {
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    }

    .chat-sidebar-header {
        padding: 16px 16px 14px;
        position: sticky;
        top: 0;
        z-index: 5;
        background: linear-gradient(180deg, rgba(255,122,0,0.08) 0%, rgba(255,255,255,0.98) 100%);
        backdrop-filter: blur(10px);
    }

    .chat-sidebar-link {
        display: none;
    }

    .chat-sidebar-block {
        padding: 14px 12px 0;
    }

    .chat-thread-list {
        gap: 8px;
    }

    .chat-thread-card {
        padding: 10px;
        gap: 10px;
        border-radius: 16px;
        grid-template-columns: 60px minmax(0, 1fr) auto;
    }

    .chat-thread-copy strong {
        font-size: 0.9rem;
    }

    .chat-thread-copy span,
    .chat-thread-copy small {
        font-size: 0.76rem;
    }

    .chat-mobile-room-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        margin-bottom: 10px;
    }

    .chat-mobile-back,
    .chat-mobile-ad-link {
        font-size: 0.82rem;
        font-weight: 800;
        color: var(--primary);
    }

    .chat-room-header {
        position: sticky;
        top: 0;
        z-index: 8;
        padding: 14px 14px 12px;
        gap: 12px;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(14px);
    }

    .chat-room-ad-card {
        gap: 10px;
        width: 100%;
    }

    .chat-room-ad-thumb {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .chat-room-label {
        padding: 5px 9px;
        font-size: 0.64rem;
    }

    .chat-room-ad-copy strong {
        font-size: 0.88rem;
    }

    .chat-room-ad-copy small {
        font-size: 0.74rem;
    }

    .chat-room-header-actions {
        width: 100%;
        justify-content: space-between;
        align-items: stretch;
        gap: 8px;
    }

    .chat-room-price-box {
        min-width: 0;
        flex: 1 1 auto;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .chat-room-price-box span,
    .chat-room-price-box small {
        font-size: 0.72rem;
    }

    .chat-room-price-box strong {
        font-size: 1rem;
    }

    .chat-room-open-ad {
        white-space: nowrap;
        min-height: auto;
        padding: 10px 14px;
        border-radius: 14px;
        align-self: stretch;
    }

    .chat-messages-surface {
        grid-template-rows: minmax(0, 1fr) auto;
        min-height: calc(100vh - 280px);
    }

    .chat-messages-scroll {
        padding: 14px 12px 108px;
        gap: 10px;
    }

    .message-bubble {
        padding: 12px 14px;
        border-radius: 18px;
    }

    .message-bubble strong {
        font-size: 0.76rem;
    }

    .message-bubble p {
        font-size: 0.88rem;
        line-height: 1.48;
    }

    .message-bubble small {
        font-size: 0.7rem;
    }

    .chat-compose-panel {
        position: sticky;
        bottom: 0;
        z-index: 9;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        box-shadow: 0 -14px 30px rgba(15, 23, 42, 0.08);
    }

    .chat-compose-panel textarea {
        min-height: 90px;
        border-radius: 16px;
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .chat-compose-actions .muted-text {
        display: none;
    }

    .chat-compose-actions button {
        width: 100%;
    }
}

/* Chat refresh */
.chat-page-section {
    padding-top: 20px;
}

.chat-ads-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px dashed rgba(255,122,0,0.32);
    background: linear-gradient(135deg, rgba(255,122,0,0.08), rgba(15,23,42,0.03));
}

.chat-ads-banner strong {
    display: block;
    font-size: 1.08rem;
    color: #111827;
}

.chat-ads-banner p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.chat-workspace {
    grid-template-columns: 390px minmax(0, 1fr);
    align-items: start;
}

.chat-sidebar-panel {
    position: sticky;
    top: 22px;
    height: calc(100vh - 150px);
    overflow-y: auto;
}

.chat-room-panel {
    position: sticky;
    top: 22px;
    height: calc(100vh - 150px);
    min-height: 0;
}

.chat-sidebar-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.chat-role-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px 0;
}

.chat-role-filter {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.08);
    background: #fff;
    color: #1f2937;
    font-weight: 800;
    font-size: 0.84rem;
}

.chat-role-filter:hover,
.chat-role-filter.is-active {
    border-color: rgba(255,122,0,0.32);
    background: rgba(255,122,0,0.08);
    color: var(--primary);
}

.chat-thread-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.chat-role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
    border: 1px solid rgba(15,23,42,0.08);
}

.chat-role-chip.is-selling {
    background: rgba(255,122,0,0.1);
    color: var(--primary);
}

.chat-role-chip.is-buying {
    background: rgba(15,23,42,0.06);
    color: #334155;
}

.chat-messages-scroll {
    padding-bottom: 18px;
}

.chat-media-card {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.chat-media-card img,
.chat-media-card video {
    width: min(100%, 360px);
    max-height: 320px;
    border-radius: 16px;
    object-fit: cover;
    background: #0f172a;
}

.chat-media-card audio {
    width: min(100%, 360px);
}

.chat-media-name {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.chat-compose-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chat-compose-tools input[type="file"] {
    position: absolute;
    left: -9999px;
}

.chat-attach-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,122,0,0.22);
    background: rgba(255,122,0,0.08);
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

.chat-attach-hint {
    color: var(--muted);
    font-size: 0.8rem;
}

@media (max-width: 1120px) {
    .chat-workspace {
        grid-template-columns: 340px minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .chat-ads-banner {
        padding: 14px 16px;
        border-radius: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-workspace,
    .chat-workspace.is-mobile-detail {
        display: block;
    }

    .chat-sidebar-panel,
    .chat-room-panel {
        position: static;
        height: auto;
    }

    .chat-role-filters {
        position: sticky;
        top: 0;
        z-index: 6;
        padding: 10px 12px 0;
        background: rgba(248,250,252,0.96);
        backdrop-filter: blur(12px);
    }

    .chat-role-filter {
        min-height: 38px;
        font-size: 0.78rem;
        padding: 0 10px;
    }

    .chat-thread-topline {
        gap: 6px;
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-role-chip {
        font-size: 0.62rem;
    }

    .chat-compose-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-attach-button {
        width: 100%;
    }

    .chat-attach-hint {
        text-align: center;
    }
}

/* Chat redesign v3 */
.chat-ui-v2 .container {
    max-width: 1440px;
}

.chat-banner-v2 {
    min-height: 92px;
    border: 1px solid rgba(255,122,0,0.18);
    background: linear-gradient(135deg, rgba(255,122,0,0.12), rgba(255,255,255,0.95));
}

.chat-workspace-v2 {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh - 260px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.08);
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.chat-sidebar-v2,
.chat-room-v2 {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}

.chat-sidebar-v2 {
    border-right: 1px solid rgba(15,23,42,0.08);
    padding: 0;
    position: sticky;
    top: 20px;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.chat-sidebar-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-sidebar-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 14px;
}

.chat-sidebar-header-v2 h1 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: #111827;
}

.chat-sidebar-icon-link {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: #fff;
}

.chat-sidebar-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 0 16px;
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.12);
    background: #fff;
}

.chat-sidebar-search-wrap span {
    color: #94a3b8;
    font-size: 1.1rem;
}

.chat-sidebar-search-wrap input {
    border: 0;
    outline: 0;
    width: 100%;
    padding: 0;
    font-size: 1rem;
    background: transparent;
    color: #0f172a;
}

.chat-role-filters {
    display: flex;
    gap: 10px;
    padding: 0 14px 14px;
    background: #fff;
}

.chat-role-filter {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.12);
    background: #fff;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
}

.chat-role-filter:hover,
.chat-role-filter.is-active {
    background: rgba(255,122,0,0.1);
    border-color: rgba(255,122,0,0.28);
    color: var(--primary);
}

.chat-thread-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

.chat-thread-list {
    display: block;
}

.chat-thread-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 14px;
    border-radius: 0;
    border: 0;
    background: #fff;
    border-left: 4px solid transparent;
}

.chat-thread-card + .chat-thread-card {
    border-top: 1px solid rgba(15,23,42,0.06);
}

.chat-thread-card:hover {
    background: #f8fafc;
}

.chat-thread-card.is-active {
    background: #f3f4f6;
    border-left-color: #7c3aed;
}

.chat-thread-thumb {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    overflow: hidden;
    background: #e2e8f0;
}

.chat-thread-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #475569;
}

.chat-thread-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-thread-copy {
    min-width: 0;
}

.chat-thread-ad-title {
    font-size: 0.96rem;
    color: #64748b;
    line-height: 1.3;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-thread-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.chat-thread-user-row strong {
    font-size: 1rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-role-chip {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.chat-thread-preview {
    color: #334155;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-thread-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.chat-thread-meta small {
    font-size: 0.95rem;
    color: #64748b;
}

.badge-unread {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    padding: 0 8px;
    background: #7c3aed;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-inactive-toggle-wrap {
    border-top: 1px solid rgba(15,23,42,0.08);
    margin-top: 6px;
}

.chat-inactive-toggle {
    width: 100%;
    min-height: 60px;
    padding: 0 14px;
    background: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
}

.chat-inactive-arrow {
    font-size: 1.8rem;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.chat-inactive-toggle[aria-expanded="true"] .chat-inactive-arrow {
    transform: rotate(-90deg);
}

.chat-thread-list-inactive .chat-thread-card {
    opacity: 0.86;
}

.chat-room-v2 {
    position: sticky;
    top: 20px;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.chat-room-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    height: 100%;
}

.chat-room-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(15,23,42,0.08);
    background: #fff;
}

.chat-room-contact-name {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.chat-room-profile-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.94rem;
    color: #0f172a;
}

.chat-room-ad-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
}

.chat-room-ad-summary-copy {
    text-align: right;
}

.chat-room-ad-summary-title {
    font-size: 0.95rem;
    color: #334155;
    max-width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-room-ad-summary-price {
    margin-top: 6px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #111827;
}

.chat-room-ad-summary-thumb {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-weight: 800;
}

.chat-room-ad-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-safety-banner {
    min-height: 68px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #111827, #0f172a);
    color: #fff;
}

.chat-safety-banner p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.chat-safety-icon {
    font-size: 1.3rem;
}

.chat-messages-surface-v2 {
    min-height: 0;
    background: #fff;
}

.chat-messages-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 22px 20px;
    background: #fff;
}

.chat-message-row {
    display: flex;
    margin-bottom: 16px;
}

.chat-message-row.is-mine {
    justify-content: flex-end;
}

.chat-message-row.is-theirs {
    justify-content: flex-start;
}

.message-bubble {
    max-width: min(560px, 72%);
    padding: 18px 20px 14px;
    border-radius: 22px;
    box-shadow: none;
}

.message-mine {
    background: #ede9fe;
    color: #1f2937;
    border-bottom-right-radius: 8px;
}

.message-theirs {
    background: #f8fafc;
    color: #111827;
    border: 1px solid rgba(15,23,42,0.06);
    border-bottom-left-radius: 8px;
}

.message-bubble p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.6;
}

.message-bubble small {
    display: block;
    margin-top: 10px;
    color: #6b7280;
    font-size: 0.88rem;
    text-align: right;
}

.chat-media-card {
    margin-top: 12px;
}

.chat-media-card img,
.chat-media-card video {
    width: min(100%, 360px);
    max-height: 320px;
    border-radius: 18px;
}

.chat-quick-replies {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px 0;
    background: #fff;
}

.chat-quick-chip {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.22);
    background: #fff;
    color: #1f2937;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
}

.chat-quick-chip:hover {
    border-color: rgba(255,122,0,0.28);
    color: var(--primary);
}

.chat-compose-panel-v2 {
    border-top: 1px solid rgba(15,23,42,0.08);
    padding: 16px 20px 18px;
    background: #fff;
}

.chat-compose-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 68px;
    padding: 10px 14px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.08);
}

.chat-attach-icon,
.chat-send-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
}

.chat-attach-icon {
    background: #fff;
    border: 1px solid rgba(255,122,0,0.2);
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
}

.chat-compose-input-wrap input[type="file"] {
    position: absolute;
    left: -9999px;
}

.chat-compose-input-wrap textarea {
    border: 0;
    outline: 0;
    resize: none;
    width: 100%;
    min-height: 24px;
    max-height: 148px;
    padding: 10px 0;
    background: transparent;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #111827;
}

.chat-send-button {
    border: 0;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.chat-compose-footerline {
    margin-top: 10px;
    padding-left: 4px;
}

.chat-attach-hint {
    color: #64748b;
    font-size: 0.84rem;
}

.chat-empty-detail-v2 {
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px 24px;
    color: #64748b;
}

.chat-empty-icon {
    width: 110px;
    margin: 0 auto 16px;
    color: #94a3b8;
}

.chat-empty-icon svg {
    width: 100%;
    height: auto;
}

@media (max-width: 1180px) {
    .chat-workspace-v2 {
        grid-template-columns: 360px minmax(0, 1fr);
    }

    .chat-room-ad-summary-title {
        max-width: 280px;
    }
}

@media (max-width: 860px) {
    .chat-workspace-v2,
    .chat-workspace-v2.is-mobile-detail {
        display: block;
        min-height: 0;
        border-radius: 24px;
    }

    .chat-sidebar-v2,
    .chat-room-v2 {
        position: static;
        height: auto;
    }

    .chat-sidebar-v2 {
        border-right: 0;
    }

    .chat-workspace-v2.is-mobile-list .chat-room-v2 {
        display: none;
    }

    .chat-workspace-v2.is-mobile-detail .chat-sidebar-v2 {
        display: none;
    }

    .chat-banner-v2 {
        min-height: 74px;
    }

    .chat-sidebar-header-v2 {
        padding: 18px 16px 12px;
    }

    .chat-sidebar-search-wrap {
        margin: 0 12px 12px;
        min-height: 52px;
    }

    .chat-role-filters {
        overflow-x: auto;
        padding: 0 12px 12px;
    }

    .chat-role-filter {
        min-height: 42px;
        padding: 0 14px;
        white-space: nowrap;
    }

    .chat-thread-card {
        grid-template-columns: 62px minmax(0, 1fr) auto;
        padding: 16px 12px;
    }

    .chat-room-header-v2 {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 14px 12px;
    }

    .chat-room-ad-summary {
        justify-content: space-between;
    }

    .chat-room-ad-summary-copy {
        text-align: left;
    }

    .chat-safety-banner {
        align-items: flex-start;
        padding: 14px;
    }

    .chat-safety-banner p {
        font-size: 0.88rem;
    }

    .chat-messages-scroll {
        max-height: calc(100vh - 360px);
        padding: 16px 14px;
    }

    .message-bubble {
        max-width: 88%;
        padding: 14px 16px 12px;
    }

    .message-bubble p {
        font-size: 0.98rem;
    }

    .chat-quick-replies {
        padding: 12px 14px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .chat-quick-chip {
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .chat-compose-panel-v2 {
        padding: 12px 14px 16px;
    }

    .chat-compose-input-wrap {
        min-height: 58px;
        padding: 8px 10px;
        gap: 8px;
    }

    .chat-attach-icon,
    .chat-send-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .chat-compose-input-wrap textarea {
        font-size: 0.96rem;
        padding: 8px 0;
    }

    .chat-mobile-room-topbar {
        display: block;
    }
}


/* Chat refinements */
body.page-chat {
    overflow: hidden;
}

body.page-chat .site-main {
    height: calc(100vh - 96px);
    overflow: hidden;
}

body.page-chat .site-header-v3 {
    position: relative;
    z-index: 20;
}

.chat-page-section.chat-ui-v2 {
    height: 100%;
    padding: 10px 0 0;
}

.chat-page-section.chat-ui-v2 > .container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-banner-v2 {
    min-height: 74px;
    margin-bottom: 12px;
    flex: 0 0 auto;
}

.chat-sidebar-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-back-home-link {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.08);
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
}

.chat-workspace-v2 {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100% - 86px);
    grid-template-columns: 420px minmax(0, 1fr);
}

.chat-sidebar-v2,
.chat-room-v2 {
    top: 0;
    height: 100%;
}

.chat-room-v2 {
    width: 100%;
}

.chat-room-header-v2 {
    padding: 18px 24px;
}

.chat-room-contact-name {
    font-size: 1.1rem;
}

.chat-room-ad-summary {
    min-width: 420px;
    justify-content: flex-end;
    gap: 16px;
}

.chat-room-ad-summary-copy {
    text-align: right;
}

.chat-room-ad-summary-title {
    max-width: 460px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.chat-room-ad-summary-price {
    font-size: 1.2rem;
}

.chat-room-ad-summary-thumb {
    width: 88px;
    height: 88px;
    border-radius: 20px;
}

.chat-room-shell {
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.chat-messages-surface-v2,
.chat-messages-scroll {
    min-height: 0;
}

.chat-message-row {
    width: 100%;
}

.message-bubble {
    max-width: min(680px, 78%);
}

.chat-quick-chip,
.chat-role-filter {
    transition: all .18s ease;
}

.chat-record-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,0.08);
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 44px;
    font-size: 1rem;
}

.chat-record-button.is-recording {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.28);
    color: #b91c1c;
}

.chat-send-button,
.chat-attach-icon,
.chat-record-button {
    box-shadow: none;
}

@media (max-width: 1180px) {
    .chat-room-ad-summary {
        min-width: 320px;
    }

    .chat-room-ad-summary-thumb {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 860px) {
    body.page-chat {
        overflow: auto;
    }

    body.page-chat .site-main {
        height: auto;
        overflow: visible;
    }

    .chat-page-section.chat-ui-v2,
    .chat-page-section.chat-ui-v2 > .container {
        height: auto;
    }

    .chat-workspace-v2 {
        height: auto;
    }

    .chat-sidebar-title-wrap {
        gap: 10px;
    }

    .chat-back-home-link {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .chat-room-ad-summary {
        min-width: 0;
        width: 100%;
    }

    .chat-record-button,
    .chat-attach-icon,
    .chat-send-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }
}


/* Chat fixes v6 */
.chat-workspace-v2 {
    overflow: hidden;
}

.chat-sidebar-shell,
.chat-room-v2,
.chat-room-shell,
.chat-thread-scroll,
.chat-messages-surface-v2,
.chat-messages-scroll {
    min-height: 0;
}

.chat-room-v2 {
    display: flex;
    flex-direction: column;
}

.chat-room-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages-surface-v2 {
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
}

.chat-messages-scroll {
    flex: 1 1 auto;
    overscroll-behavior: contain;
}

.chat-thread-scroll {
    overscroll-behavior: contain;
}

.chat-mobile-room-topbar {
    display: none;
}

.chat-room-header-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(520px, 48%);
    align-items: center;
    gap: 20px;
}

.chat-room-ad-summary {
    min-width: 0;
    width: 100%;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.08);
}

.chat-room-ad-summary-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.chat-room-ad-summary-title {
    max-width: none;
    font-size: 1.06rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-room-ad-summary-price {
    font-size: 1.7rem;
    line-height: 1.1;
}

.chat-room-ad-summary-thumb {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    flex: 0 0 120px;
}

.chat-safety-banner {
    position: relative;
    padding-right: 56px;
}

.chat-safety-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.chat-safety-close:hover {
    background: rgba(255,255,255,0.14);
}

.chat-quick-replies,
.chat-compose-panel-v2 {
    flex: 0 0 auto;
}

@media (max-width: 1180px) {
    .chat-room-header-v2 {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 44%);
    }

    .chat-room-ad-summary-thumb {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .chat-room-ad-summary-price {
        font-size: 1.45rem;
    }
}

@media (max-width: 860px) {
    .chat-mobile-room-topbar {
        display: block;
    }

    .chat-room-header-v2 {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .chat-room-ad-summary {
        padding: 12px 14px;
    }

    .chat-room-ad-summary-thumb {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        border-radius: 18px;
    }

    .chat-room-ad-summary-price {
        font-size: 1.2rem;
    }

    .chat-safety-banner {
        padding-right: 48px;
    }

    .chat-safety-close {
        right: 12px;
        width: 28px;
        height: 28px;
    }
}


/* Chat micro refinements v7 */
body.page-chat .site-main { overflow: hidden; }
.chat-page-section.chat-ui-v2 { padding-top: 6px; }
.chat-banner-v2 { min-height: 54px !important; padding: 12px 18px !important; margin-bottom: 10px !important; border-radius: 22px !important; }
.chat-banner-v2 .eyebrow { margin-bottom: 4px !important; font-size: .7rem !important; }
.chat-banner-v2 strong { font-size: 1.05rem !important; }
.chat-banner-v2 p { font-size: .9rem !important; margin: 0 !important; }
.chat-workspace-v2 { height: calc(100% - 66px) !important; grid-template-columns: 360px minmax(0,1fr) !important; }
.chat-sidebar-header-v2 { padding: 12px 14px 8px !important; }
.chat-sidebar-title-wrap h1 { font-size: 1.7rem !important; }
.chat-back-home-link, .chat-sidebar-icon-link { width: 34px !important; height: 34px !important; border-radius: 10px !important; font-size: 1rem !important; }
.chat-sidebar-search-wrap { margin: 0 14px 10px !important; min-height: 48px !important; }
.chat-sidebar-search-wrap input { font-size: .95rem !important; }
.chat-role-filters { padding: 0 14px 10px !important; gap: 8px !important; }
.chat-role-filter { padding: 10px 16px !important; font-size: .9rem !important; }
.chat-thread-card { grid-template-columns: 52px minmax(0,1fr) 44px !important; gap: 10px !important; padding: 12px 12px !important; }
.chat-thread-thumb { width: 52px !important; height: 52px !important; border-radius: 14px !important; }
.chat-thread-ad-title { font-size: .82rem !important; margin-bottom: 4px !important; }
.chat-thread-user-row { gap: 8px !important; margin-bottom: 4px !important; flex-wrap: nowrap !important; }
.chat-thread-user-row strong { font-size: .82rem !important; min-width: 0 !important; flex: 1 1 auto !important; }
.chat-thread-preview { font-size: .82rem !important; }
.chat-role-chip { padding: 3px 8px !important; font-size: .66rem !important; line-height: 1 !important; }
.chat-thread-meta { align-self: start !important; justify-items: end !important; padding-top: 2px !important; }
.chat-thread-meta small { font-size: .72rem !important; }
.badge-unread { min-width: 18px !important; height: 18px !important; font-size: .66rem !important; padding: 0 5px !important; }
.chat-room-header-v2 { grid-template-columns: minmax(0,1fr) minmax(280px,34%) !important; gap: 14px !important; padding: 12px 16px !important; }
.chat-room-contact-name { font-size: .95rem !important; line-height: 1.25 !important; }
.chat-room-profile-link { font-size: .84rem !important; }
.chat-room-ad-summary { min-width: 0 !important; padding: 10px 12px !important; gap: 10px !important; border-radius: 16px !important; align-items: center !important; }
.chat-room-ad-summary-copy { text-align: right !important; }
.chat-room-ad-summary-title { font-size: .88rem !important; line-height: 1.25 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.chat-room-ad-summary-price { font-size: 1rem !important; margin-top: 4px !important; }
.chat-room-ad-summary-thumb { width: 64px !important; height: 64px !important; flex: 0 0 64px !important; border-radius: 14px !important; }
.chat-safety-banner { padding: 10px 44px 10px 14px !important; min-height: 0 !important; }
.chat-safety-banner p { font-size: .82rem !important; line-height: 1.35 !important; }
.chat-safety-close { width: 28px !important; height: 28px !important; right: 10px !important; font-size: 1rem !important; z-index: 5 !important; }
.chat-messages-surface-v2 { padding: 8px 0 0 !important; }
.chat-messages-scroll { padding: 14px 16px !important; }
.message-bubble { max-width: min(520px,70%) !important; padding: 12px 14px !important; border-radius: 18px !important; }
.message-bubble p { font-size: .88rem !important; line-height: 1.45 !important; }
.message-bubble small { font-size: .72rem !important; }
.chat-quick-replies { gap: 8px !important; padding: 10px 16px !important; }
.chat-quick-chip { padding: 9px 14px !important; font-size: .83rem !important; border-radius: 999px !important; }
.chat-compose-panel-v2 { padding: 10px 16px 12px !important; }
.chat-compose-input-wrap { min-height: 58px !important; padding: 6px !important; gap: 8px !important; }
.chat-compose-input-wrap textarea { font-size: .92rem !important; padding: 10px 2px !important; }
.chat-attach-icon, .chat-record-button, .chat-send-button { width: 38px !important; height: 38px !important; flex-basis: 38px !important; border-radius: 12px !important; font-size: .95rem !important; }
.chat-compose-footerline { display: none !important; }
.chat-media-card img, .chat-media-card video { max-width: 240px !important; max-height: 180px !important; border-radius: 12px !important; }
.chat-room-v2 { overflow: hidden !important; }
.chat-room-shell { height: 100% !important; }
.chat-thread-scroll, .chat-messages-scroll { scrollbar-width: thin; }
@media (max-width: 1180px) { .chat-workspace-v2 { grid-template-columns: 330px minmax(0,1fr) !important; } .chat-room-header-v2 { grid-template-columns: minmax(0,1fr) minmax(240px,34%) !important; } .chat-room-ad-summary-thumb { width: 56px !important; height: 56px !important; flex-basis: 56px !important; } }
@media (max-width: 860px) { .chat-banner-v2 { min-height: 48px !important; } .chat-workspace-v2 { height: auto !important; } .chat-room-header-v2 { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; } .chat-room-ad-summary { width: 100% !important; } .chat-room-ad-summary-copy { text-align: left !important; } .chat-room-ad-summary-thumb { width: 52px !important; height: 52px !important; flex-basis: 52px !important; } .chat-safety-banner p { padding-right: 8px !important; } }

/* Chat full width + compact refinements v8 */
body.page-chat .container,
.chat-page-section.chat-ui-v2 .container,
.chat-ui-v2 .container {
    max-width: none !important;
    width: calc(100vw - 20px) !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.page-chat .site-main {
    height: calc(100vh - 84px) !important;
}

.chat-page-section.chat-ui-v2 {
    padding-top: 4px !important;
}

.chat-banner-v2 {
    min-height: 48px !important;
    padding: 8px 14px !important;
    margin-bottom: 8px !important;
    border-radius: 18px !important;
}

.chat-banner-v2 strong {
    font-size: 0.96rem !important;
}

.chat-banner-v2 p {
    font-size: 0.82rem !important;
}

.chat-workspace-v2 {
    width: 100% !important;
    height: calc(100% - 58px) !important;
    grid-template-columns: 340px minmax(0, 1fr) !important;
    border-radius: 22px !important;
}

.chat-sidebar-v2,
.chat-room-v2 {
    height: 100% !important;
}

.chat-sidebar-header-v2 {
    padding: 10px 12px 8px !important;
}

.chat-sidebar-title-wrap h1 {
    font-size: 1.05rem !important;
}

.chat-sidebar-search-wrap {
    min-height: 46px !important;
    margin: 0 12px 8px !important;
}

.chat-sidebar-search-wrap input {
    font-size: 0.9rem !important;
}

.chat-role-filters {
    padding: 0 12px 8px !important;
    gap: 6px !important;
}

.chat-role-filter {
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: 0.84rem !important;
}

.chat-thread-card {
    grid-template-columns: 46px minmax(0, 1fr) 52px !important;
    gap: 8px !important;
    padding: 10px 10px !important;
}

.chat-thread-thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
}

.chat-thread-ad-title {
    font-size: 0.78rem !important;
    margin-bottom: 3px !important;
}

.chat-thread-user-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 4px 6px !important;
    margin-bottom: 3px !important;
}

.chat-thread-user-row strong {
    width: 100% !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}

.chat-role-chip {
    font-size: 0.62rem !important;
    padding: 2px 7px !important;
}

.chat-thread-preview {
    font-size: 0.8rem !important;
}

.chat-thread-meta {
    min-width: 46px !important;
    gap: 4px !important;
    justify-items: end !important;
    align-self: center !important;
}

.chat-thread-meta small {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
}

.chat-room-shell {
    height: 100% !important;
}

.chat-room-header-v2 {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 28%) !important;
    gap: 12px !important;
    padding: 10px 14px !important;
}

.chat-room-contact-name {
    font-size: 0.88rem !important;
}

.chat-room-profile-link {
    margin-top: 4px !important;
    font-size: 0.78rem !important;
}

.chat-room-ad-summary {
    max-width: 320px !important;
    justify-self: end !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 14px !important;
}

.chat-room-ad-summary-title {
    font-size: 0.78rem !important;
}

.chat-room-ad-summary-price {
    font-size: 0.86rem !important;
    margin-top: 3px !important;
}

.chat-room-ad-summary-thumb {
    width: 50px !important;
    height: 50px !important;
    flex: 0 0 50px !important;
    border-radius: 12px !important;
}

.chat-safety-banner {
    min-height: 0 !important;
    padding: 9px 40px 9px 12px !important;
}

.chat-safety-banner p {
    font-size: 0.77rem !important;
}

.chat-safety-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 12 !important;
}

.chat-messages-surface-v2 {
    overflow: hidden !important;
}

.chat-messages-scroll {
    padding: 10px 12px !important;
}

.message-bubble {
    max-width: min(420px, 62%) !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
}

.message-bubble p {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
}

.message-bubble small {
    margin-top: 6px !important;
    font-size: 0.68rem !important;
}

.chat-quick-replies {
    gap: 6px !important;
    padding: 8px 12px !important;
}

.chat-quick-chip {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.76rem !important;
}

.chat-compose-panel-v2 {
    padding: 8px 12px 10px !important;
}

.chat-compose-input-wrap {
    min-height: 50px !important;
    padding: 5px !important;
    gap: 6px !important;
    border-radius: 16px !important;
}

.chat-compose-input-wrap textarea {
    font-size: 0.86rem !important;
    line-height: 1.25 !important;
    min-height: 18px !important;
    padding: 8px 2px !important;
}

.chat-attach-icon,
.chat-record-button,
.chat-send-button {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
}

.chat-compose-footerline {
    display: none !important;
}

.chat-media-card img,
.chat-media-card video {
    max-width: 220px !important;
    max-height: 160px !important;
}

@media (min-width: 861px) {
    .chat-page-section.chat-ui-v2,
    .chat-page-section.chat-ui-v2 > .container,
    .chat-workspace-v2,
    .chat-room-v2,
    .chat-room-shell,
    .chat-sidebar-shell {
        min-height: 0 !important;
    }
}

@media (max-width: 1180px) {
    .chat-workspace-v2 {
        grid-template-columns: 310px minmax(0,1fr) !important;
    }

    .chat-room-header-v2 {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 30%) !important;
    }
}

@media (max-width: 860px) {
    body.page-chat .container,
    .chat-page-section.chat-ui-v2 .container,
    .chat-ui-v2 .container {
        width: calc(100vw - 12px) !important;
    }

    .chat-banner-v2 {
        min-height: 44px !important;
        padding: 8px 10px !important;
    }

    .chat-workspace-v2 {
        height: auto !important;
        border-radius: 18px !important;
    }

    .chat-room-header-v2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .chat-room-ad-summary {
        max-width: none !important;
        width: 100% !important;
    }

    .chat-room-ad-summary-copy {
        text-align: left !important;
    }
}


/* Chat compose visibility fix */
.chat-room-v2 { overflow: hidden !important; }
.chat-room-shell { display: grid !important; grid-template-rows: auto auto minmax(0,1fr) auto auto !important; min-height: 0 !important; }
.chat-messages-surface-v2 { min-height: 0 !important; height: auto !important; overflow: hidden !important; }
.chat-messages-scroll { min-height: 0 !important; height: 100% !important; overflow-y: auto !important; }
.chat-quick-replies { align-items: center !important; }
.chat-compose-panel-v2 { display: block !important; position: relative !important; z-index: 6 !important; background: #fff !important; border-top: 1px solid rgba(15, 23, 42, 0.08) !important; }
.chat-compose-input-wrap { display: grid !important; grid-template-columns: 38px minmax(0,1fr) 38px 38px !important; align-items: center !important; }
.chat-compose-input-wrap textarea { width: 100% !important; order: 2 !important; }
.chat-attach-icon { order: 1 !important; }
.chat-record-button { order: 3 !important; margin-left: 2px !important; }
.chat-send-button { order: 4 !important; }
@media (min-width: 861px) {
  .chat-workspace-v2 { height: calc(100vh - 190px) !important; min-height: 560px !important; }
}
@media (max-width: 860px) {
  .chat-room-shell { display: flex !important; flex-direction: column !important; }
  .chat-compose-panel-v2 { position: sticky !important; bottom: 0 !important; }
  .chat-compose-input-wrap { grid-template-columns: 36px minmax(0,1fr) 36px 36px !important; }
}

/* Chat compose + recording fix */
.chat-workspace-v2 {
  height: calc(100vh - 176px) !important;
  min-height: 560px !important;
}
.chat-room-v2 {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.chat-room-shell {
  display: grid !important;
  grid-template-rows: auto auto minmax(0,1fr) auto auto !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.chat-messages-surface-v2 {
  min-height: 0 !important;
  overflow: hidden !important;
}
.chat-messages-scroll {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
}
.chat-quick-replies {
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.05) !important;
  background: #fff !important;
}
.chat-compose-panel-v2 {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 7 !important;
  display: block !important;
  background: #fff !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.06) !important;
}
.chat-compose-input-wrap {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0,1fr) 34px 34px !important;
  align-items: center !important;
  min-height: 48px !important;
}
.chat-compose-input-wrap textarea {
  display: block !important;
  width: 100% !important;
  min-height: 20px !important;
  max-height: 88px !important;
  overflow-y: auto !important;
  background: transparent !important;
}
.chat-compose-recording {
  grid-column: 2 / 4;
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 6px;
}
.chat-compose-input-wrap.is-recording textarea,
.chat-compose-panel-v2.is-recording textarea,
.chat-compose-input-wrap.is-recording .chat-attach-icon,
.chat-compose-panel-v2.is-recording .chat-attach-icon,
.chat-compose-input-wrap.is-recording .chat-send-button,
.chat-compose-panel-v2.is-recording .chat-send-button {
  display: none !important;
}
.chat-compose-input-wrap.is-recording {
  grid-template-columns: minmax(0,1fr) 34px !important;
}
.chat-compose-input-wrap.is-recording .chat-compose-recording {
  display: flex !important;
}
.chat-compose-input-wrap.is-recording .chat-record-button {
  grid-column: 2;
}
.chat-compose-recording strong {
  font-size: 0.84rem;
  color: #0f172a;
  white-space: nowrap;
}
.chat-compose-recording small {
  font-size: 0.76rem;
  color: #64748b;
  margin-left: auto;
}
.chat-recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff7a00;
  box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.55);
  animation: chatRecordPulse 1.2s infinite;
}
.chat-recording-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.chat-recording-wave span {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9f3b 0%, #ff7a00 100%);
  animation: chatWave 1s ease-in-out infinite;
}
.chat-recording-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.chat-recording-wave span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.chat-recording-wave span:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.chat-recording-wave span:nth-child(4) { height: 16px; animation-delay: 0.45s; }
@keyframes chatRecordPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,122,0,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255,122,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,0,0); }
}
@keyframes chatWave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 860px) {
  .chat-workspace-v2 {
    height: auto !important;
    min-height: 0 !important;
  }
  .chat-compose-panel-v2 {
    position: sticky !important;
    bottom: 0 !important;
  }
}

/* Chat compose + audio compact polish */
.chat-compose-panel-v2 {
  display: block !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 8 !important;
  background: #fff !important;
  padding: 10px 14px 12px !important;
}
.chat-compose-input-wrap {
  display: grid !important;
  grid-template-columns: 38px minmax(0,1fr) 38px 38px !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 54px !important;
  padding: 6px 8px !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  border-radius: 18px !important;
  background: #fff !important;
}
.chat-compose-input-wrap textarea {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-height: 40px !important;
  height: 40px !important;
  max-height: 88px !important;
  resize: none !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 4px !important;
  color: #0f172a !important;
}
.chat-compose-input-wrap:not(.is-recording) .chat-compose-recording {
  display: none !important;
}
.chat-compose-input-wrap.is-recording {
  grid-template-columns: minmax(0,1fr) 42px !important;
}
.chat-compose-input-wrap.is-recording .chat-attach-icon,
.chat-compose-input-wrap.is-recording .chat-send-button,
.chat-compose-input-wrap.is-recording textarea {
  display: none !important;
}
.chat-compose-input-wrap.is-recording .chat-compose-recording {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 0 6px !important;
}
.chat-compose-recording {
  grid-column: 1 / 2 !important;
}
.chat-compose-recording small {
  font-size: 0.86rem !important;
  color: #334155 !important;
  margin-left: 4px !important;
}
.chat-record-button,
.chat-send-button,
.chat-attach-icon {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
}
.chat-record-button.is-recording {
  background: #fff1f2 !important;
  color: #dc2626 !important;
  border: 1px solid rgba(220,38,38,0.18) !important;
}
.chat-recording-wave {
  display: inline-flex !important;
  align-items: flex-end !important;
  gap: 3px !important;
  height: 18px !important;
}
.chat-recording-wave span {
  width: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ff9f3b 0%, #ff7a00 100%) !important;
  animation: chatWave 0.95s ease-in-out infinite !important;
}
.chat-recording-wave span:nth-child(1) { height: 7px !important; animation-delay: 0s !important; }
.chat-recording-wave span:nth-child(2) { height: 14px !important; animation-delay: 0.12s !important; }
.chat-recording-wave span:nth-child(3) { height: 9px !important; animation-delay: 0.24s !important; }
.chat-recording-wave span:nth-child(4) { height: 16px !important; animation-delay: 0.36s !important; }
.chat-recording-wave span:nth-child(5) { height: 11px !important; animation-delay: 0.48s !important; }
.chat-recording-wave span:nth-child(6) { height: 8px !important; animation-delay: 0.60s !important; }

.chat-media-audio {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.chat-audio-player {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 180px !important;
  max-width: 100% !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.62) !important;
  border: 1px solid rgba(255,122,0,0.14) !important;
}
.message-theirs .chat-audio-player {
  background: rgba(248,250,252,0.95) !important;
}
.chat-audio-player audio {
  display: none !important;
}
.chat-audio-toggle {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,122,0,0.18) !important;
  background: #fff !important;
  color: #ff7a00 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 34px !important;
}
.chat-audio-wave {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  flex: 1 1 auto !important;
  min-width: 72px !important;
}
.chat-audio-wave span {
  width: 3px !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: rgba(255,122,0,0.35) !important;
}
.chat-audio-wave span:nth-child(2n) { height: 18px !important; }
.chat-audio-wave span:nth-child(3n) { height: 10px !important; }
.chat-audio-player.is-playing .chat-audio-wave span {
  animation: chatWave 0.9s ease-in-out infinite !important;
}
.chat-audio-time {
  font-size: 0.8rem !important;
  color: #475569 !important;
  white-space: nowrap !important;
}
.chat-media-name {
  display: none !important;
}


/* Chat composer final visibility + compact audio output */
body.page-chat .site-main {
  overflow: hidden !important;
}
.chat-workspace-v2,
.chat-room-v2,
.chat-room-shell {
  min-height: 0 !important;
}
.chat-room-v2 {
  display: flex !important;
  flex-direction: column !important;
}
.chat-room-shell {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}
.chat-room-header-v2,
.chat-safety-banner,
.chat-quick-replies,
.chat-compose-panel-v2 {
  flex: 0 0 auto !important;
}
.chat-messages-surface-v2 {
  flex: 1 1 auto !important;
  min-height: 140px !important;
  overflow: hidden !important;
}
.chat-messages-scroll {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
.chat-compose-panel-v2 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: sticky !important;
  bottom: 0 !important;
  background: #fff !important;
  z-index: 30 !important;
}
.chat-compose-input-wrap {
  display: grid !important;
  grid-template-columns: 34px minmax(0,1fr) 34px 34px !important;
  align-items: center !important;
  min-height: 52px !important;
  width: 100% !important;
}
.chat-compose-input-wrap textarea {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: 38px !important;
  min-height: 38px !important;
}
.chat-compose-input-wrap:not(.is-recording) textarea {
  display: block !important;
}
.chat-compose-input-wrap:not(.is-recording) .chat-compose-recording {
  display: none !important;
}
.chat-compose-input-wrap.is-recording {
  grid-template-columns: minmax(0,1fr) 34px !important;
}
.chat-compose-input-wrap.is-recording .chat-compose-recording {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.chat-compose-input-wrap.is-recording .chat-attach-icon,
.chat-compose-input-wrap.is-recording .chat-send-button,
.chat-compose-input-wrap.is-recording textarea {
  display: none !important;
}
.chat-compose-recording {
  grid-column: 1 / 2 !important;
  min-width: 0 !important;
  padding: 0 6px !important;
}
.chat-compose-recording strong { display: none !important; }
.chat-recording-wave {
  display: inline-flex !important;
  align-items: flex-end !important;
  gap: 3px !important;
  height: 18px !important;
}
.chat-recording-wave span {
  width: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ff9f3b 0%, #ff7a00 100%) !important;
  animation: chatWave 0.95s ease-in-out infinite !important;
}
.chat-recording-wave span:nth-child(1) { height: 8px !important; animation-delay: 0s !important; }
.chat-recording-wave span:nth-child(2) { height: 14px !important; animation-delay: .12s !important; }
.chat-recording-wave span:nth-child(3) { height: 9px !important; animation-delay: .24s !important; }
.chat-recording-wave span:nth-child(4) { height: 16px !important; animation-delay: .36s !important; }
.chat-recording-wave span:nth-child(5) { height: 10px !important; animation-delay: .48s !important; }
.chat-recording-wave span:nth-child(6) { height: 7px !important; animation-delay: .60s !important; }
.chat-media-card.chat-media-audio {
  margin-top: 8px !important;
}
.chat-audio-player {
  min-width: 220px !important;
  max-width: 320px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.72) !important;
}
.chat-audio-toggle {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
}
.chat-audio-wave {
  min-width: 86px !important;
}
.chat-audio-time {
  font-size: .74rem !important;
}
@media (max-width: 860px) {
  .chat-compose-panel-v2 {
    position: sticky !important;
    bottom: 0 !important;
  }
  .chat-messages-surface-v2 {
    min-height: 220px !important;
  }
}

/* Chat header compact */
body.page-chat .site-header-v3 {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

body.page-chat .header-v3-shell {
    padding: 6px 0;
}

body.page-chat .brand-logo-v3 {
    width: 130px;
}

body.page-chat .brand-logo-tablet-v3 {
    width: 126px;
}

body.page-chat .brand-logo-mobile-v3 {
    width: 92px;
}

body.page-chat .header-desktop-v3 {
    grid-template-columns: 128px minmax(380px, 1fr) auto;
    gap: 10px;
}

body.page-chat .header-search-desktop-v3,
body.page-chat .header-search-single-v3,
body.page-chat .header-tablet-search-v3 {
    grid-template-columns: minmax(0, 1fr) 54px;
}

body.page-chat .header-search-field-v3,
body.page-chat .header-state-field-v3 {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    gap: 8px;
}

body.page-chat .header-search-field-v3 input,
body.page-chat .header-state-field-v3 select {
    font-size: 0.87rem;
}

body.page-chat .header-search-button-v3 {
    width: 54px;
    min-height: 38px;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: 0 8px 16px rgba(255, 107, 0, 0.16);
}

body.page-chat .header-actions-desktop-v3,
body.page-chat .header-tablet-top-actions-v3,
body.page-chat .header-tablet-links-v3 {
    gap: 6px;
}

body.page-chat .header-text-link-v3,
body.page-chat .header-icon-pill-v3,
body.page-chat .header-profile-v3,
body.page-chat .header-profile-compact-v3,
body.page-chat .header-chip-link-v3,
body.page-chat .header-square-action-v3 {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.79rem;
    gap: 6px;
    border-radius: 999px;
}

body.page-chat .header-profile-avatar-v3 {
    width: 24px;
    height: 24px;
    font-size: 0.76rem;
}

body.page-chat .header-badge-v3 {
    min-width: 18px;
    height: 18px;
    font-size: 0.62rem;
}

body.page-chat .header-icon-v3 {
    font-size: 0.9rem;
}

body.page-chat .header-announce-v3 {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.8rem;
}

body.page-chat .site-main {
    height: calc(100vh - 82px);
}

@media (min-width: 768px) and (max-width: 1180px) {
    body.page-chat .header-v3-shell {
        padding: 6px 0 7px;
    }

    body.page-chat .header-tablet-v3 {
        gap: 8px;
    }

    body.page-chat .header-tablet-top-v3 {
        gap: 10px;
    }

    body.page-chat .header-chip-link-v3,
    body.page-chat .header-square-action-v3,
    body.page-chat .header-profile-compact-v3 {
        min-height: 32px;
        font-size: 0.76rem;
    }

    body.page-chat .header-announce-v3 {
        min-height: 34px;
    }
}

@media (max-width: 767px) {
    body.page-chat .header-v3-shell {
        padding: 5px 0 6px;
    }

    body.page-chat .header-mobile-v3 {
        gap: 6px;
    }

    body.page-chat .header-mobile-top-v3 {
        gap: 8px;
    }

    body.page-chat .header-mobile-plans-v3 {
        min-height: 34px;
        padding-inline: 10px;
        font-size: 0.72rem;
    }

    body.page-chat .header-mobile-search-v3 {
        grid-template-columns: minmax(0, 1fr) 46px;
    }

    body.page-chat .header-mobile-search-v3 .header-search-field-v3 {
        min-height: 38px;
        border-radius: 12px;
        padding-inline: 12px;
    }

    body.page-chat .header-mobile-search-v3 .header-search-button-v3 {
        width: 46px;
        min-height: 38px;
        border-radius: 12px;
    }

    body.page-chat .site-main {
        height: calc(100vh - 74px);
    }
}

/* Chat mobile redesign inspired by OLX reference - mobile only */
@media (max-width: 860px) {
  body.page-chat .site-header-v3 {
    border-bottom: 1px solid rgba(15,23,42,0.08) !important;
    box-shadow: none !important;
  }
  body.page-chat .header-tablet-v3,
  body.page-chat .header-desktop-v3 {
    display: none !important;
  }
  body.page-chat .header-mobile-v3 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    min-height: 64px !important;
  }
  body.page-chat .header-mobile-top-v3 {
    width: auto !important;
    margin: 0 !important;
  }
  body.page-chat .header-mobile-search-v3,
  body.page-chat .header-mobile-plans-v3 {
    display: none !important;
  }
  body.page-chat .brand-logo-mobile-v3 {
    width: 72px !important;
    height: auto !important;
  }

  body.page-chat .site-main,
  body.page-chat .chat-page-section.chat-ui-v2 {
    padding-top: 0 !important;
  }
  body.page-chat .chat-page-section.chat-ui-v2 > .container,
  body.page-chat .chat-ui-v2 .container,
  body.page-chat .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.page-chat .chat-ads-banner,
  body.page-chat .chat-banner-v2 {
    display: none !important;
  }

  body.page-chat .chat-page-section.chat-ui-v2 {
    margin: 0 !important;
  }

  body.page-chat .chat-workspace-v2 {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 126px) !important;
    background: #fff !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.page-chat .chat-sidebar-v2,
  body.page-chat .chat-room-v2 {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.page-chat .chat-workspace-v2.is-mobile-list .chat-sidebar-v2 {
    display: block !important;
    min-height: calc(100vh - 126px) !important;
  }
  body.page-chat .chat-workspace-v2.is-mobile-list .chat-room-v2 {
    display: none !important;
  }
  body.page-chat .chat-workspace-v2.is-mobile-detail .chat-sidebar-v2 {
    display: none !important;
  }
  body.page-chat .chat-workspace-v2.is-mobile-detail .chat-room-v2 {
    display: flex !important;
    min-height: calc(100vh - 126px) !important;
  }

  body.page-chat .chat-sidebar-shell,
  body.page-chat .chat-room-shell {
    height: 100% !important;
    min-height: calc(100vh - 126px) !important;
  }

  body.page-chat .chat-sidebar-v2 {
    padding: 0 !important;
  }
  body.page-chat .chat-sidebar-header-v2 {
    padding: 18px 16px 12px !important;
    border-bottom: 1px solid rgba(15,23,42,0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }
  body.page-chat .chat-sidebar-title-wrap {
    gap: 12px !important;
  }
  body.page-chat .chat-sidebar-title-wrap h1 {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    font-weight: 700 !important;
  }
  body.page-chat .chat-back-home-link {
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15,23,42,0.12) !important;
    font-size: 1.15rem !important;
  }
  body.page-chat .chat-sidebar-icon-link {
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
  }
  body.page-chat .chat-sidebar-search-wrap {
    margin: 14px 16px 12px !important;
    height: 44px !important;
    border-radius: 16px !important;
  }
  body.page-chat .chat-role-filters {
    padding: 0 16px 14px !important;
    gap: 10px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  body.page-chat .chat-role-filters::-webkit-scrollbar { display: none !important; }
  body.page-chat .chat-role-filter {
    white-space: nowrap !important;
    border-radius: 999px !important;
    font-size: .92rem !important;
    padding: 12px 18px !important;
  }
  body.page-chat .chat-thread-scroll {
    height: calc(100vh - 248px) !important;
    overflow-y: auto !important;
    padding-bottom: 88px !important;
  }
  body.page-chat .chat-thread-card {
    padding: 14px 16px !important;
    gap: 12px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(15,23,42,0.06) !important;
  }
  body.page-chat .chat-thread-thumb {
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
  }
  body.page-chat .chat-thread-copy {
    min-width: 0 !important;
  }
  body.page-chat .chat-thread-ad-title {
    font-size: .82rem !important;
    color: #667085 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 4px !important;
  }
  body.page-chat .chat-thread-user-row strong {
    font-size: .98rem !important;
    line-height: 1.2 !important;
  }
  body.page-chat .chat-thread-preview {
    font-size: .82rem !important;
    margin-top: 4px !important;
  }
  body.page-chat .chat-thread-meta {
    font-size: .8rem !important;
    gap: 8px !important;
    padding-left: 8px !important;
  }
  body.page-chat .chat-inactive-toggle-wrap {
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    border-top: 1px solid rgba(15,23,42,0.08) !important;
  }
  body.page-chat .chat-inactive-toggle {
    min-height: 72px !important;
    padding: 0 18px !important;
  }

  body.page-chat .chat-room-v2 {
    position: relative !important;
    height: calc(100vh - 126px) !important;
  }
  body.page-chat .chat-room-shell {
    display: grid !important;
    grid-template-rows: auto auto minmax(0,1fr) auto auto !important;
    height: calc(100vh - 126px) !important;
  }
  body.page-chat .chat-mobile-room-topbar {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(15,23,42,0.06) !important;
  }
  body.page-chat .chat-mobile-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0 !important;
    color: transparent !important;
  }
  body.page-chat .chat-mobile-back::before {
    content: '←';
    font-size: 1.35rem;
    line-height: 1;
    color: #0f172a;
  }

  body.page-chat .chat-room-header-v2 {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
    padding: 12px 16px 10px !important;
    align-items: start !important;
  }
  body.page-chat .chat-room-contact-block {
    order: 1 !important;
  }
  body.page-chat .chat-room-contact-name {
    font-size: 1.02rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.page-chat .chat-room-profile-link {
    font-size: .84rem !important;
  }
  body.page-chat .chat-room-ad-summary {
    order: 2 !important;
    display: grid !important;
    grid-template-columns: 64px minmax(0,1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  body.page-chat .chat-room-ad-summary-thumb {
    order: 1 !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    flex-basis: 64px !important;
  }
  body.page-chat .chat-room-ad-summary-copy {
    order: 2 !important;
    text-align: left !important;
  }
  body.page-chat .chat-room-ad-summary-title {
    font-size: .95rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.page-chat .chat-room-ad-summary-price {
    font-size: .92rem !important;
    margin-top: 4px !important;
  }

  body.page-chat .chat-safety-banner {
    padding: 12px 16px !important;
    gap: 10px !important;
    border-radius: 0 !important;
  }
  body.page-chat .chat-safety-banner p {
    font-size: .9rem !important;
    line-height: 1.4 !important;
  }
  body.page-chat .chat-safety-close {
    width: 34px !important;
    height: 34px !important;
  }

  body.page-chat .chat-messages-surface-v2 {
    background: #fff !important;
  }
  body.page-chat .chat-messages-scroll {
    padding: 18px 16px 14px !important;
    scroll-padding-bottom: 120px !important;
  }
  body.page-chat .chat-message-row {
    margin-bottom: 12px !important;
  }
  body.page-chat .message-bubble {
    max-width: 84% !important;
    border-radius: 18px !important;
    padding: 12px 14px !important;
    font-size: .96rem !important;
  }
  body.page-chat .chat-quick-replies {
    padding: 10px 12px !important;
    gap: 10px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }
  body.page-chat .chat-quick-replies::-webkit-scrollbar { display:none !important; }
  body.page-chat .chat-quick-chip {
    white-space: nowrap !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    font-size: .92rem !important;
  }

  body.page-chat .chat-compose-panel-v2 {
    position: sticky !important;
    bottom: 0 !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    background: #fff !important;
    box-shadow: 0 -10px 28px rgba(15,23,42,0.08) !important;
  }
  body.page-chat .chat-compose-input-wrap {
    min-height: 56px !important;
    grid-template-columns: 36px minmax(0,1fr) 36px 40px !important;
    border-radius: 20px !important;
  }
  body.page-chat .chat-compose-input-wrap textarea {
    min-height: 22px !important;
    height: 22px !important;
    font-size: .98rem !important;
  }
  body.page-chat .chat-record-button,
  body.page-chat .chat-send-button,
  body.page-chat .chat-attach-icon {
    width: 36px !important;
    height: 36px !important;
  }
}


/* Chat mobile polish: home button, scrollable list, full-width room, recorder stop on right */
@media (max-width: 860px) {
  body.page-chat {
    height: 100dvh !important;
    overflow: hidden !important;
  }
  body.page-chat .site-main {
    height: calc(100dvh - 64px) !important;
    overflow: hidden !important;
  }
  body.page-chat .chat-page-section.chat-ui-v2 {
    height: calc(100dvh - 64px) !important;
    overflow: hidden !important;
  }
  body.page-chat .chat-page-section.chat-ui-v2 > .container,
  body.page-chat .chat-ui-v2 .container,
  body.page-chat .container {
    height: 100% !important;
  }
  body.page-chat .chat-workspace-v2 {
    height: 100% !important;
    min-height: 100% !important;
  }
  body.page-chat .chat-workspace-v2.is-mobile-list .chat-sidebar-v2,
  body.page-chat .chat-workspace-v2.is-mobile-detail .chat-room-v2 {
    min-height: 100% !important;
    height: 100% !important;
  }
  body.page-chat .chat-sidebar-shell,
  body.page-chat .chat-room-shell {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 100% !important;
  }
  body.page-chat .chat-back-home-link {
    font-size: 0 !important;
    color: transparent !important;
  }
  body.page-chat .chat-back-home-link::before {
    content: '⌂' !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    color: #0f172a !important;
  }
  body.page-chat .chat-thread-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  }
  body.page-chat .chat-thread-list,
  body.page-chat .chat-thread-list-inactive {
    width: 100% !important;
  }
  body.page-chat .chat-workspace-v2.is-mobile-detail,
  body.page-chat .chat-workspace-v2.is-mobile-detail .chat-room-v2,
  body.page-chat .chat-workspace-v2.is-mobile-detail .chat-room-shell {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.page-chat .chat-room-v2,
  body.page-chat .chat-room-shell {
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.page-chat .chat-room-header-v2,
  body.page-chat .chat-safety-banner,
  body.page-chat .chat-messages-surface-v2,
  body.page-chat .chat-quick-replies,
  body.page-chat .chat-compose-panel-v2 {
    width: 100% !important;
  }
  body.page-chat .chat-mobile-room-topbar,
  body.page-chat .chat-room-header-v2,
  body.page-chat .chat-safety-banner,
  body.page-chat .chat-messages-scroll,
  body.page-chat .chat-quick-replies,
  body.page-chat .chat-compose-panel-v2 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  body.page-chat .chat-messages-surface-v2 {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
  body.page-chat .chat-messages-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 18px !important;
  }
  body.page-chat .chat-compose-panel-v2 {
    margin-top: auto !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }
  body.page-chat .chat-compose-input-wrap.is-recording {
    grid-template-columns: minmax(0,1fr) 38px !important;
  }
  body.page-chat .chat-compose-input-wrap.is-recording .chat-compose-recording {
    grid-column: 1 !important;
    order: 1 !important;
  }
  body.page-chat .chat-compose-input-wrap.is-recording .chat-record-button {
    grid-column: 2 !important;
    order: 2 !important;
    justify-self: end !important;
    margin-left: auto !important;
  }
}

/* Chat mobile list/detail split refinements */
@media (max-width: 860px) {
  body.page-chat-list .site-header-v3 {
    display: block !important;
    border-bottom: 1px solid rgba(15,23,42,0.08) !important;
    box-shadow: none !important;
  }
  body.page-chat-detail .site-header-v3 {
    display: none !important;
  }

  body.page-chat-list .header-mobile-v3 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 62px !important;
    padding: 10px 16px !important;
  }
  body.page-chat-list .header-mobile-top-v3 {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 !important;
  }
  body.page-chat-list .header-mobile-search-v3,
  body.page-chat-list .header-mobile-plans-v3 {
    display: none !important;
  }
  body.page-chat-list .header-mobile-home-v3 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15,23,42,0.12) !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 1.25rem !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
  }
  body.page-chat-list .brand-logo-mobile-v3 {
    width: 72px !important;
    height: auto !important;
  }

  body.page-chat-list .site-main {
    height: calc(100dvh - 62px - 72px) !important;
    overflow: hidden !important;
  }
  body.page-chat-list .chat-page-section.chat-ui-v2,
  body.page-chat-list .chat-page-section.chat-ui-v2 > .container,
  body.page-chat-list .chat-ui-v2 .container {
    height: 100% !important;
    overflow: hidden !important;
  }

  body.page-chat-detail .site-main {
    height: 100dvh !important;
    overflow: hidden !important;
  }
  body.page-chat-detail .chat-page-section.chat-ui-v2,
  body.page-chat-detail .chat-page-section.chat-ui-v2 > .container,
  body.page-chat-detail .chat-ui-v2 .container {
    height: 100% !important;
    overflow: hidden !important;
  }

  body.page-chat-list .chat-ads-banner,
  body.page-chat-detail .chat-ads-banner {
    display: none !important;
  }

  body.page-chat-list .chat-workspace-v2 {
    min-height: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body.page-chat-list .chat-sidebar-v2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
  }
  body.page-chat-list .chat-room-v2 {
    display: none !important;
  }
  body.page-chat-list .chat-sidebar-shell {
    height: 100% !important;
    min-height: 100% !important;
  }
  body.page-chat-list .chat-sidebar-header-v2 {
    padding: 16px !important;
  }
  body.page-chat-list .chat-back-home-link {
    display: none !important;
  }
  body.page-chat-list .chat-sidebar-title-wrap h1 {
    font-size: 1.85rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
  }
  body.page-chat-list .chat-sidebar-search-wrap {
    margin-top: 0 !important;
  }
  body.page-chat-list .chat-thread-scroll {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.page-chat-list .chat-inactive-toggle-wrap {
    margin-bottom: 0 !important;
  }

  body.page-chat-detail .chat-workspace-v2,
  body.page-chat-detail .chat-workspace-v2.is-mobile-detail,
  body.page-chat-detail .chat-room-v2,
  body.page-chat-detail .chat-room-shell {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.page-chat-detail .chat-sidebar-v2 {
    display: none !important;
  }
  body.page-chat-detail .chat-room-v2 {
    display: flex !important;
  }
  body.page-chat-detail .chat-room-shell {
    display: grid !important;
    grid-template-rows: auto auto minmax(0,1fr) auto auto !important;
  }
  body.page-chat-detail .chat-mobile-room-topbar {
    display: flex !important;
    align-items: center !important;
    padding: 14px 14px 10px !important;
    border-bottom: none !important;
  }
  body.page-chat-detail .chat-mobile-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0 !important;
    color: transparent !important;
  }
  body.page-chat-detail .chat-mobile-back::before {
    content: '←' !important;
    color: #0f172a !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
  }
  body.page-chat-detail .chat-room-header-v2 {
    padding: 0 14px 10px !important;
  }
  body.page-chat-detail .chat-room-ad-summary {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.page-chat-detail .chat-safety-banner,
  body.page-chat-detail .chat-messages-scroll,
  body.page-chat-detail .chat-quick-replies,
  body.page-chat-detail .chat-compose-panel-v2 {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Chat mobile final polish: full quick replies + full composer */
@media (max-width: 860px) {
  body.page-chat-detail .chat-page-section.chat-ui-v2,
  body.page-chat-detail .chat-page-section.chat-ui-v2 > .container,
  body.page-chat-detail .chat-ui-v2 .container,
  body.page-chat-detail .chat-workspace-v2,
  body.page-chat-detail .chat-room-v2,
  body.page-chat-detail .chat-room-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  body.page-chat-detail .chat-room-shell {
    grid-template-rows: auto auto minmax(0,1fr) auto auto !important;
  }

  body.page-chat-detail .chat-mobile-room-topbar,
  body.page-chat-detail .chat-room-header-v2,
  body.page-chat-detail .chat-safety-banner,
  body.page-chat-detail .chat-messages-scroll,
  body.page-chat-detail .chat-quick-replies,
  body.page-chat-detail .chat-compose-panel-v2 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.page-chat-detail .chat-quick-replies {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.page-chat-detail .chat-quick-replies::-webkit-scrollbar {
    display: none !important;
  }
  body.page-chat-detail .chat-quick-chip {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    padding: 0 18px !important;
    height: 42px !important;
    line-height: 42px !important;
    font-size: 0.95rem !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.page-chat-detail .chat-compose-panel-v2 {
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding-top: 10px !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    background: #fff !important;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08) !important;
    z-index: 8 !important;
  }

  body.page-chat-detail .chat-compose-input-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 6px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  body.page-chat-detail .chat-attach-icon,
  body.page-chat-detail .chat-record-button,
  body.page-chat-detail .chat-send-button {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
  }

  body.page-chat-detail .chat-compose-input-wrap textarea {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 22px !important;
    height: 22px !important;
    max-height: 88px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
    resize: none !important;
    overflow-y: auto !important;
  }
  body.page-chat-detail .chat-compose-input-wrap textarea::placeholder {
    color: #98a2b3 !important;
    white-space: nowrap !important;
  }

  body.page-chat-detail .chat-compose-footerline {
    display: none !important;
  }

  body.page-chat-detail .chat-compose-recording {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body.page-chat-detail .chat-compose-input-wrap.is-recording {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  body.page-chat-detail .chat-compose-input-wrap.is-recording .chat-compose-recording {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  body.page-chat-detail .chat-compose-input-wrap.is-recording .chat-record-button {
    margin-left: auto !important;
    order: 3 !important;
  }
  body.page-chat-detail .chat-compose-input-wrap.is-recording .chat-attach-icon,
  body.page-chat-detail .chat-compose-input-wrap.is-recording .chat-send-button,
  body.page-chat-detail .chat-compose-input-wrap.is-recording textarea {
    display: none !important;
  }
}

/* Chat mobile fix: anchor quick replies/composer on new empty conversations */
@media (max-width: 860px) {
  body.page-chat-detail,
  body.page-chat-detail .site-main,
  body.page-chat-detail .chat-page-section.chat-ui-v2,
  body.page-chat-detail .chat-page-section.chat-ui-v2 > .container,
  body.page-chat-detail .chat-ui-v2 .container,
  body.page-chat-detail .chat-workspace-v2,
  body.page-chat-detail .chat-room-v2 {
    min-height: 100dvh !important;
  }

  body.page-chat-detail .chat-room-shell {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  body.page-chat-detail .chat-messages-surface-v2 {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    overflow: hidden !important;
  }

  body.page-chat-detail .chat-messages-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.page-chat-detail .chat-quick-replies {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
  }

  body.page-chat-detail .chat-compose-panel-v2 {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
  }

  body.page-chat-detail .chat-empty-conversation {
    margin: 0 !important;
    padding: 16px 12px 6px !important;
  }
}

/* ===== Painel do usuário mobile polish ===== */
.panel-metric-link {
    display: grid;
    color: inherit;
    transition: 0.18s ease;
}

.panel-metric-link:hover {
    transform: translateY(-2px);
    border-color: rgba(254,108,0,0.18);
    box-shadow: 0 22px 34px rgba(15, 23, 42, 0.09);
}

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

.panel-mobile-back-link {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 1.12rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    flex: 0 0 auto;
}

.panel-mobile-pagebar-copy {
    min-width: 0;
    display: grid;
}

.panel-mobile-pagebar-copy strong {
    font-size: 1rem;
    line-height: 1.2;
    color: #0f172a;
}

.panel-mobile-pagebar-copy small {
    color: #667085;
    line-height: 1.3;
}

.favorite-mobile-pagebar {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .panel-shell-subpage {
        display: block;
        gap: 0;
    }

    .panel-shell-subpage .panel-sidebar {
        display: none;
    }

    .panel-shell-subpage .panel-content {
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .panel-section {
        padding-top: 20px;
    }

    .panel-dashboard-top {
        gap: 14px;
    }

    .panel-welcome-card,
    .panel-account-card {
        border-radius: 22px;
    }

    .panel-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .panel-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .panel-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .panel-metric-card {
        min-height: 164px;
        padding: 16px;
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(255,122,0,0.05), rgba(255,255,255,0.98));
        box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    }

    .panel-metric-card::before {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        inset: auto -12px -12px auto;
    }

    .panel-metric-card strong {
        font-size: 1.65rem;
    }

    .panel-metric-card small {
        margin-top: 8px;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .panel-metric-card .eyebrow {
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    .panel-metric-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .panel-section-subpage {
        padding-top: 0;
        padding-bottom: 0;
    }

    .panel-section-subpage .container,
    .favorite-panel-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .panel-shell-subpage,
    .favorite-panel-container {
        display: block;
    }

    .panel-mobile-pagebar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px 14px;
        background: linear-gradient(180deg, rgba(255,122,0,0.08) 0%, rgba(255,255,255,0.98) 100%);
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .panel-shell-subpage .panel-content,
    .favorite-panel-container {
        gap: 0;
    }

    .panel-subpage-content .section-head,
    .favorite-panel-head {
        display: grid;
        align-items: stretch;
        gap: 14px;
        padding: 14px 16px 16px;
        margin-bottom: 0;
    }

    .panel-subpage-content .section-head .eyebrow,
    .panel-subpage-content .section-head h1,
    .favorite-panel-head .eyebrow,
    .favorite-panel-head h1 {
        display: none;
    }

    .panel-subpage-content .section-head p,
    .favorite-panel-head p {
        margin: 0;
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .panel-subpage-content .section-head .btn,
    .favorite-panel-head .btn {
        width: 100%;
        justify-content: center;
    }

    .panel-shell-subpage .card,
    .panel-shell-subpage .notice-card,
    .favorite-panel-container .listing-card,
    .favorite-panel-container .empty-state,
    .favorite-panel-container .notice-card {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .panel-shell-subpage .panel-card-grid,
    .panel-shell-subpage .panel-help-grid,
    .panel-shell-subpage .panel-bottom-grid,
    .panel-shell-subpage .panel-ad-list,
    .favorite-panel-container .listing-grid {
        gap: 12px;
    }

    .panel-shell-subpage .table-wrap {
        margin: 0;
        border-radius: 0;
    }

    .panel-shell-subpage .panel-ad-card {
        padding: 16px;
    }

    .panel-shell-subpage .panel-ad-image {
        height: 210px;
        border-radius: 18px;
    }

    .panel-shell-subpage .panel-ad-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .panel-shell-subpage .panel-ad-actions .btn,
    .panel-shell-subpage .panel-ad-actions form,
    .panel-shell-subpage .panel-ad-actions form .btn {
        width: 100%;
    }

    .panel-shell-subpage .panel-ad-actions form .btn {
        justify-content: center;
    }

    .favorite-panel-section {
        padding-top: 0;
    }

    .favorite-panel-container .listing-grid {
        margin-top: 0;
    }

    .favorite-panel-container .listing-card {
        margin: 0;
    }

    .favorite-panel-container .listing-media {
        border-radius: 0;
    }

    .favorite-panel-container .listing-body {
        padding: 18px 16px 20px;
    }
}


/* ===== Painel do usuário mobile enxuto ===== */
@media (max-width: 768px) {
    body.page-panel-subpage .site-header-v3 {
        display: none;
    }

    body.page-panel-subpage .site-main {
        padding-top: 0;
    }

    body.page-panel-dashboard .panel-section {
        padding-top: 16px;
        padding-bottom: 10px;
    }

    body.page-panel-dashboard .panel-shell {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    body.page-panel-dashboard .panel-sidebar {
        gap: 12px;
    }

    body.page-panel-dashboard .panel-mobile-hide {
        display: none !important;
    }

    body.page-panel-dashboard .panel-mobile-top-summary {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    body.page-panel-dashboard .panel-welcome-card,
    body.page-panel-dashboard .panel-account-card {
        padding: 14px;
        border-radius: 20px;
        min-height: 100%;
    }

    body.page-panel-dashboard .panel-welcome-top {
        gap: 10px;
    }

    body.page-panel-dashboard .panel-welcome-card h1 {
        margin: 4px 0 6px;
        font-size: 1.15rem;
        line-height: 1.2;
    }

    body.page-panel-dashboard .panel-welcome-card .muted-text,
    body.page-panel-dashboard .panel-account-card .muted-text {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    body.page-panel-dashboard .panel-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.page-panel-dashboard .panel-hero-actions .btn {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.8rem;
        justify-content: center;
    }

    body.page-panel-dashboard .panel-hero-actions .btn-ghost {
        display: none;
    }

    body.page-panel-dashboard .panel-hero-highlight-row {
        gap: 6px;
        margin-top: 12px;
    }

    body.page-panel-dashboard .panel-highlight-pill,
    body.page-panel-dashboard .panel-verify-chip,
    body.page-panel-dashboard .panel-mini-chip {
        font-size: 0.68rem;
        min-height: 30px;
        padding: 0 10px;
    }

    body.page-panel-dashboard .panel-account-top {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
    }

    body.page-panel-dashboard .panel-account-avatar {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    body.page-panel-dashboard .panel-account-card h2 {
        font-size: 0.96rem;
        line-height: 1.25;
    }

    body.page-panel-dashboard .panel-progress-block {
        margin-top: 12px;
        padding: 12px;
        border-radius: 16px;
    }

    body.page-panel-dashboard .panel-inline-link-solid {
        min-height: 40px;
        justify-content: center;
        font-size: 0.8rem;
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-nav-section {
        display: contents;
        border: 0;
        padding: 0;
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-nav-title {
        display: none;
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-nav-link,
    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-nav-button {
        min-height: 84px;
        padding: 10px 6px;
        border-radius: 18px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,248,250,0.98));
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        font-size: 0.68rem;
        line-height: 1.25;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-nav-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        font-size: 0.95rem;
        margin: 0;
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-logout-form {
        margin: 0;
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-nav-button {
        width: 100%;
    }

    body.page-panel-dashboard .panel-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.page-panel-dashboard .panel-metric-card {
        min-height: 128px;
        padding: 14px;
        border-radius: 20px;
    }

    body.page-panel-dashboard .panel-metric-card strong {
        font-size: 1.35rem;
    }

    body.page-panel-dashboard .panel-metric-card small {
        margin-top: 6px;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    body.page-panel-dashboard .panel-metric-card .eyebrow {
        font-size: 0.66rem;
    }

    body.page-panel-subpage .panel-section-subpage,
    body.page-panel-subpage .favorite-panel-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    body.page-panel-subpage .panel-section-subpage .container,
    body.page-panel-subpage .favorite-panel-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    body.page-panel-subpage .panel-mobile-pagebar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px 14px;
        background: linear-gradient(180deg, rgba(255,122,0,0.08) 0%, rgba(255,255,255,0.98) 100%);
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    body.page-panel-subpage .panel-shell-subpage .card,
    body.page-panel-subpage .panel-shell-subpage .notice-card,
    body.page-panel-subpage .favorite-panel-container .listing-card,
    body.page-panel-subpage .favorite-panel-container .empty-state,
    body.page-panel-subpage .favorite-panel-container .notice-card {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.page-panel-subpage .panel-subpage-content .section-head,
    body.page-panel-subpage .favorite-panel-head {
        display: grid;
        gap: 12px;
        padding: 14px 16px 16px;
        margin-bottom: 0;
    }

    body.page-panel-subpage .panel-subpage-content .section-head .eyebrow,
    body.page-panel-subpage .panel-subpage-content .section-head h1,
    body.page-panel-subpage .favorite-panel-head .eyebrow,
    body.page-panel-subpage .favorite-panel-head h1 {
        display: none;
    }

    body.page-panel-subpage .panel-subpage-content .section-head p,
    body.page-panel-subpage .favorite-panel-head p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    body.page-panel-subpage .panel-subpage-content .section-head .btn,
    body.page-panel-subpage .favorite-panel-head .btn {
        width: 100%;
        justify-content: center;
    }

    body.page-panel-account .panel-card-grid,
    body.page-panel-security .panel-card-grid {
        gap: 10px;
    }

    body.page-panel-account .panel-shell-subpage .card,
    body.page-panel-security .panel-shell-subpage .card {
        padding: 14px 16px;
    }

    body.page-panel-account .panel-subpage-content .section-head p,
    body.page-panel-security .panel-subpage-content .section-head p {
        display: none;
    }

    body.page-panel-account .form-grid,
    body.page-panel-security .form-grid {
        gap: 10px;
    }

    body.page-panel-account .form-group small,
    body.page-panel-security .panel-verify-head small,
    body.page-panel-security .muted-text {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    body.page-panel-security .table-wrap {
        margin: 0 -16px -14px;
        border-radius: 0;
    }
}

@media (max-width: 420px) {
    body.page-panel-dashboard .panel-mobile-top-summary {
        grid-template-columns: 1fr;
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-nav-link,
    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-nav-button {
        min-height: 78px;
        padding: 8px 4px;
        font-size: 0.63rem;
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid .panel-nav-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 0.86rem;
    }
}


/* ===== Painel do usuário mobile polish final ===== */
.panel-mobile-merged-card,
.panel-nav-link-mobile-only,
.security-login-toggle {
    display: none;
}

@media (max-width: 768px) {
    body.page-panel-dashboard .panel-mobile-top-summary {
        display: none !important;
    }

    body.page-panel-dashboard .panel-mobile-merged-card {
        display: grid;
        gap: 12px;
        padding: 14px;
        border-radius: 22px;
    }

    body.page-panel-dashboard .panel-mobile-merged-top {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
    }

    body.page-panel-dashboard .panel-mobile-merged-card h2 {
        margin: 4px 0 4px;
        font-size: 1rem;
        line-height: 1.2;
    }

    body.page-panel-dashboard .panel-mobile-merged-card .muted-text {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    body.page-panel-dashboard .panel-mobile-merged-progress {
        margin-top: 0;
    }

    body.page-panel-dashboard .panel-mobile-merged-actions .btn {
        min-height: 40px;
        justify-content: center;
    }

    body.page-panel-dashboard .panel-nav-link-mobile-only {
        display: flex;
    }

    body.page-panel-dashboard .panel-mobile-submenu-grid {
        margin-top: 0;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-list,
    body.page-panel-subpage .favorite-panel-container .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-card,
    body.page-panel-subpage .favorite-panel-container .listing-card {
        border-radius: 18px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-card {
        padding: 8px;
        gap: 8px;
        grid-template-columns: 1fr;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-image,
    body.page-panel-subpage .favorite-panel-container .listing-media {
        height: 76px;
        min-height: 76px;
        border-radius: 12px;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-body,
    body.page-panel-subpage .favorite-panel-container .listing-body {
        gap: 6px;
        padding: 8px;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-top {
        display: grid;
        gap: 4px;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-top h2,
    body.page-panel-subpage .favorite-panel-container .listing-body h3 {
        margin: 0;
        min-height: auto;
        font-size: 0.72rem;
        line-height: 1.32;
    }

    body.page-panel-subpage .panel-subpage-content .listing-top-meta,
    body.page-panel-subpage .favorite-panel-container .listing-top-meta {
        font-size: 0.58rem;
        line-height: 1.2;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-meta-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-meta-grid span {
        min-height: 28px;
        padding: 4px 6px;
        font-size: 0.56rem;
        line-height: 1.2;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-meta-grid span:nth-child(n + 3),
    body.page-panel-subpage .favorite-panel-container .listing-spec-row,
    body.page-panel-subpage .favorite-panel-container .listing-body p,
    body.page-panel-subpage .favorite-panel-container .listing-body .muted-text {
        display: none;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-footer {
        display: grid;
        gap: 6px;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    body.page-panel-subpage .panel-subpage-content .price,
    body.page-panel-subpage .favorite-panel-container .price {
        margin: 0;
        font-size: 0.76rem;
        line-height: 1.2;
    }

    body.page-panel-subpage .panel-subpage-content .status-chip,
    body.page-panel-subpage .panel-subpage-content .panel-ad-actions .btn,
    body.page-panel-subpage .panel-subpage-content .panel-ad-actions form .btn,
    body.page-panel-subpage .favorite-panel-container .favorite-btn,
    body.page-panel-subpage .favorite-panel-container .btn {
        min-height: 28px;
        padding: 6px 8px;
        font-size: 0.58rem;
        line-height: 1.15;
        border-radius: 10px;
    }

    body.page-panel-subpage .favorite-panel-container .listing-top-line {
        gap: 4px;
        align-items: center;
    }

    body.page-panel-subpage .favorite-panel-container .btn-full {
        width: 100%;
        justify-content: center;
    }

    body.page-panel-account .panel-card-grid,
    body.page-panel-security .panel-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.page-panel-account .js-account-address-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.page-panel-account .js-account-address-form .form-group,
    body.page-panel-account .js-account-address-form .span-2 {
        min-width: 0;
    }

    body.page-panel-account .js-account-address-form .field-span-2,
    body.page-panel-account .js-account-address-form .span-2 {
        grid-column: 1 / -1;
    }

    body.page-panel-account .js-account-address-form label,
    body.page-panel-security .form-grid label {
        font-size: 0.78rem;
    }

    body.page-panel-account .js-account-address-form input,
    body.page-panel-security .form-grid input {
        padding: 11px 12px;
        min-width: 0;
    }

    body.page-panel-account .panel-link-stack-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.page-panel-account .panel-inline-link,
    body.page-panel-account .panel-inline-link-solid {
        min-height: 40px;
        justify-content: center;
        text-align: center;
        font-size: 0.76rem;
    }

    body.page-panel-account .status-line,
    body.page-panel-security .status-line {
        gap: 8px;
        align-items: flex-start;
    }

    body.page-panel-account .status-line small,
    body.page-panel-security .status-line small,
    body.page-panel-security .data-table th,
    body.page-panel-security .data-table td {
        white-space: normal;
        word-break: break-word;
    }

    body.page-panel-security .panel-verify-head,
    body.page-panel-security .verify-inline,
    body.page-panel-security .form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.page-panel-security .table-wrap {
        margin: 0;
        overflow-x: hidden;
        border-radius: 16px;
    }

    body.page-panel-security .data-table {
        width: 100%;
        table-layout: fixed;
    }

    body.page-panel-security .data-table th,
    body.page-panel-security .data-table td {
        padding: 10px 8px;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    body.page-panel-security .security-login-toggle {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }

    body.page-panel-security .security-login-history.is-collapsed .security-login-row-extra {
        display: none;
    }
}

@media (max-width: 420px) {
    body.page-panel-subpage .panel-subpage-content .panel-ad-list,
    body.page-panel-subpage .favorite-panel-container .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-image,
    body.page-panel-subpage .favorite-panel-container .listing-media {
        height: 68px;
        min-height: 68px;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-body,
    body.page-panel-subpage .favorite-panel-container .listing-body {
        padding: 7px;
    }

    body.page-panel-subpage .panel-subpage-content .panel-ad-top h2,
    body.page-panel-subpage .favorite-panel-container .listing-body h3 {
        font-size: 0.67rem;
    }

    body.page-panel-account .js-account-address-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ===== Painel de pagamentos mobile enxuto ===== */
@media (max-width: 768px) {
    body.page-panel-subpage .payments-head {
        gap: 8px;
        padding: 12px 16px 14px;
    }

    body.page-panel-subpage .payments-head p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    body.page-panel-subpage .payments-head .btn {
        width: auto;
        min-height: 38px;
        padding: 10px 14px;
        justify-self: start;
        font-size: 0.76rem;
        border-radius: 12px;
    }

    body.page-panel-subpage .payments-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.page-panel-subpage .payments-summary-card {
        padding: 12px;
        border-radius: 18px;
    }

    body.page-panel-subpage .payments-summary-card h2 {
        margin: 4px 0;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    body.page-panel-subpage .payments-summary-card .muted-text {
        font-size: 0.74rem;
        line-height: 1.42;
    }

    body.page-panel-subpage .payments-summary-card .status-stack {
        gap: 6px;
        margin-top: 10px;
    }

    body.page-panel-subpage .payments-summary-card .status-line {
        gap: 8px;
        align-items: flex-start;
        font-size: 0.72rem;
    }

    body.page-panel-subpage .payments-summary-card .status-line span,
    body.page-panel-subpage .payments-summary-card .status-line strong {
        white-space: normal;
        word-break: break-word;
    }

    body.page-panel-subpage .payments-summary-card .btn {
        min-height: 36px;
        padding: 9px 12px;
        font-size: 0.74rem;
        border-radius: 12px;
    }

    body.page-panel-subpage .payments-history-card {
        padding: 12px;
        border-radius: 18px;
    }

    body.page-panel-subpage .payments-history-card .eyebrow {
        margin-bottom: 2px;
        font-size: 0.72rem;
    }

    body.page-panel-subpage .payments-history-card h2 {
        margin-bottom: 10px;
        font-size: 1rem;
    }

    body.page-panel-subpage .payments-history-wrap {
        margin: 0;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    body.page-panel-subpage .payments-history-table,
    body.page-panel-subpage .payments-history-table thead,
    body.page-panel-subpage .payments-history-table tbody,
    body.page-panel-subpage .payments-history-table tr,
    body.page-panel-subpage .payments-history-table th,
    body.page-panel-subpage .payments-history-table td {
        display: block;
        width: 100%;
    }

    body.page-panel-subpage .payments-history-table thead {
        display: none;
    }

    body.page-panel-subpage .payments-history-table tbody {
        display: grid;
        gap: 8px;
    }

    body.page-panel-subpage .payments-history-table tr {
        padding: 10px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }

    body.page-panel-subpage .payments-history-table td {
        display: grid;
        grid-template-columns: minmax(68px, 82px) minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 6px 0;
        border: 0;
        font-size: 0.74rem;
        line-height: 1.35;
        word-break: break-word;
    }

    body.page-panel-subpage .payments-history-table td::before {
        content: attr(data-label);
        color: var(--muted, #64748b);
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    body.page-panel-subpage .payments-history-table td[data-label="Status"] .status-chip {
        justify-self: start;
        min-height: 28px;
        padding: 6px 10px;
        font-size: 0.62rem;
        border-radius: 999px;
    }

    body.page-panel-subpage .payments-history-table td[data-label="Checkout"] .link-arrow {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.72rem;
    }
}

@media (max-width: 420px) {
    body.page-panel-subpage .payments-head .btn {
        width: 100%;
        justify-content: center;
    }

    body.page-panel-subpage .payments-summary-grid {
        grid-template-columns: 1fr;
    }

    body.page-panel-subpage .payments-history-table td {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 6px;
        font-size: 0.71rem;
    }
}

/* ===== Conta: validação por modal ===== */
body.contact-verify-modal-open {
    overflow: hidden;
}

.contact-verify-feedback {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.75);
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.contact-verify-feedback.is-success {
    border-color: rgba(37, 204, 108, 0.26);
    background: rgba(37, 204, 108, 0.11);
    color: #0f6b35;
}

.contact-verify-feedback.is-error {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.contact-verify-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 24px;
}

.contact-verify-modal[hidden] {
    display: none;
}

.contact-verify-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
}

.contact-verify-modal__dialog {
    position: relative;
    width: min(100%, 460px);
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(255,255,255,0.7);
}

.contact-verify-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 1.4rem;
    cursor: pointer;
}

.contact-verify-modal__body {
    display: grid;
    gap: 14px;
}

.contact-verify-modal [hidden],
.contact-verify-modal__body[hidden],
.contact-verify-form__feedback[hidden],
.contact-verify-form__timer[hidden],
.contact-verify-form__timer-row .btn[hidden] {
    display: none !important;
}

.contact-verify-modal__body h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

.contact-verify-form {
    display: grid;
    gap: 14px;
}

.contact-verify-form__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
}

.contact-verify-form__input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255,255,255,0.96);
    font-size: 1.08rem;
    letter-spacing: 0.14em;
    text-align: center;
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.contact-verify-form__input:focus {
    outline: none;
    border-color: rgba(37, 204, 108, 0.46);
    box-shadow: 0 0 0 4px rgba(37, 204, 108, 0.12);
}

.contact-verify-form__input--email {
    letter-spacing: normal;
    text-align: left;
}

.contact-verify-form__timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contact-verify-form__timer {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.contact-verify-form__feedback {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.45;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.8);
}

.contact-verify-form__feedback.is-success {
    border-color: rgba(37, 204, 108, 0.24);
    background: rgba(37, 204, 108, 0.11);
    color: #0f6b35;
}

.contact-verify-form__feedback.is-error {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(239, 68, 68, 0.11);
    color: #991b1b;
}

.contact-verify-form__submit {
    min-height: 52px;
    justify-content: center;
}

.contact-verify-form__support {
    margin: -4px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    color: #64748b;
}

.contact-verify-form__ghost-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-verify-modal__success-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(37, 204, 108, 0.12);
    color: #0f6b35;
    font-size: 2rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .contact-verify-modal {
        padding: 16px;
    }

    .contact-verify-modal__dialog {
        width: min(100%, 100%);
        padding: 24px 18px 18px;
        border-radius: 24px;
    }

    .contact-verify-modal__body h2 {
        font-size: 1.3rem;
    }

    .contact-verify-form__input {
        min-height: 52px;
        font-size: 1rem;
    }

    .contact-verify-form__timer-row {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-verify-form__timer,
    .contact-verify-form__timer-row .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* === Ad create wizard =================================================== */
.page-ad-create {
    background:
        radial-gradient(circle at top left, rgba(255, 107, 0, 0.08), transparent 28%),
        linear-gradient(180deg, #fffaf6 0%, #f6f7fb 100%);
}

.ad-create-wizard-section {
    padding-top: 28px;
}

.ad-create-shell {
    width: min(1320px, calc(100vw - 32px));
    margin: 0 auto;
}

.ad-create-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.ad-create-topbar-copy h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.04;
}

.ad-create-topbar-copy p {
    max-width: 760px;
    color: #5a6272;
    margin: 0;
}

.ad-create-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ad-create-back-link:hover {
    transform: translateY(-1px);
}

.ad-create-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ad-create-step-pill {
    appearance: none;
    border: 0;
    background: #ffffff;
    border-radius: 22px;
    padding: 16px 18px;
    text-align: left;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 6px;
    cursor: pointer;
}

.ad-create-step-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 0.84rem;
    font-weight: 800;
}

.ad-create-step-pill strong {
    color: #0f172a;
    font-size: 1rem;
}

.ad-create-step-pill.is-active {
    border-color: rgba(255, 107, 0, 0.26);
    box-shadow: 0 26px 40px rgba(255, 107, 0, 0.12);
}

.ad-create-step-pill.is-active span,
.ad-create-step-pill.is-complete span {
    background: #ff6b00;
    color: #fff;
}

.ad-wizard-card {
    border-radius: 32px;
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 26px 40px rgba(15, 23, 42, 0.08);
}

.ad-wizard-head {
    margin-bottom: 26px;
}

.ad-wizard-head h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.08;
}

.ad-wizard-head p {
    margin: 0;
    color: #5a6272;
    max-width: 760px;
}

.ad-wizard-head-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ad-selected-category-chip {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 107, 0, 0.08);
    color: #ff6b00;
    font-weight: 800;
    white-space: nowrap;
}

.ad-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ad-category-card {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border-radius: 28px;
    padding: 22px;
    text-align: left;
    display: grid;
    gap: 12px;
    min-height: 210px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
}

.ad-category-card:hover,
.ad-category-card.is-selected {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.28);
    box-shadow: 0 28px 44px rgba(255, 107, 0, 0.12);
}

.ad-category-card strong {
    font-size: 1.1rem;
    color: #0f172a;
}

.ad-category-card small {
    color: #5a6272;
    line-height: 1.5;
    font-size: 0.95rem;
}

.ad-category-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 1.8rem;
    background: rgba(255, 107, 0, 0.08);
}

.ad-create-hidden-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.ad-create-technical-box {
    margin-top: 24px;
}

.ad-step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
}

.ad-step-actions-end {
    justify-content: flex-end;
}

.ad-step-actions .btn {
    min-width: 180px;
}

.ad-highlight-screen {
    display: grid;
    gap: 18px;
}

.ad-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ad-highlight-option {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    border-radius: 28px;
    padding: 22px;
    min-height: 210px;
    display: grid;
    align-content: flex-start;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
}

.ad-highlight-option.is-selected {
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 28px 44px rgba(255, 107, 0, 0.14);
    transform: translateY(-3px);
}

.ad-highlight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 107, 0, 0.1);
    color: #ff6b00;
    font-weight: 800;
    font-size: 0.8rem;
}

.ad-highlight-option strong {
    font-size: 1.16rem;
    color: #0f172a;
}

.ad-highlight-option p {
    margin: 0;
    color: #5a6272;
    line-height: 1.55;
}

.ad-highlight-skip {
    appearance: none;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-weight: 700;
    justify-self: flex-start;
    padding: 0;
    cursor: pointer;
}

.ad-highlight-skip.is-selected {
    color: #ff6b00;
}

.ad-create-review-card {
    background: linear-gradient(180deg, #101828 0%, #182131 100%);
    color: #fff;
    border-radius: 28px;
    padding: 24px;
    display: grid;
    gap: 14px;
}

.ad-create-review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-create-review-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ad-create-review-row span {
    color: rgba(255, 255, 255, 0.7);
}

.ad-create-review-row strong {
    font-size: 1rem;
    text-align: right;
}

@media (max-width: 1024px) {
    .ad-create-topbar,
    .ad-wizard-head-split {
        flex-direction: column;
    }

    .ad-category-grid,
    .ad-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ad-create-shell {
        width: min(100%, calc(100vw - 20px));
    }

    .ad-create-progress {
        grid-template-columns: 1fr;
    }

    .ad-wizard-card {
        padding: 20px;
        border-radius: 24px;
    }

    .ad-category-grid,
    .ad-highlight-grid {
        grid-template-columns: 1fr;
    }

    .ad-category-card,
    .ad-highlight-option {
        min-height: auto;
    }

    .ad-step-actions,
    .ad-create-review-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ad-step-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .ad-create-review-row strong {
        text-align: left;
    }
}

/* ===== Ad create wizard v2 ===== */
.page-ad-create .site-main {
    padding-top: 28px;
    padding-bottom: 48px;
}

.ad-create-topbar-minimal {
    padding: 0;
    margin-bottom: 20px;
}

.ad-create-lock-card {
    margin-bottom: 18px;
}

.ad-verification-state {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ad-highlight-grid-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad-highlight-option-plain {
    border-style: solid;
}

.ad-highlight-option {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.ad-highlight-option:hover {
    transform: translateY(-4px);
    border-color: rgba(243, 124, 47, 0.85);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.ad-highlight-option.is-selected {
    box-shadow: 0 20px 42px rgba(243, 124, 47, 0.18);
}

.ad-highlight-price {
    display: inline-flex;
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.ad-upload-shell {
    display: grid;
    gap: 14px;
}

.ad-upload-dropzone {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 170px;
    border: 1.5px dashed rgba(15, 23, 42, 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    text-align: center;
    padding: 24px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ad-upload-dropzone.is-dragover,
.ad-upload-dropzone:hover {
    border-color: rgba(243, 124, 47, 0.75);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    transform: translateY(-2px);
}

.ad-upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 124, 47, 0.12);
    color: #f37c2f;
    font-size: 1.6rem;
    font-weight: 800;
}

.ad-upload-shell input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ad-upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ad-upload-preview-item {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 8px;
    cursor: grab;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ad-upload-preview-item.is-dragging {
    opacity: 0.65;
}

.ad-upload-preview-item.is-drop-target {
    border-color: rgba(243, 124, 47, 0.7);
    box-shadow: 0 16px 30px rgba(243, 124, 47, 0.14);
}

.ad-upload-preview-order {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.ad-upload-preview-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    background: #f1f5f9;
}

.ad-upload-preview-meta {
    display: grid;
    gap: 2px;
}

.ad-upload-preview-meta strong,
.ad-upload-preview-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-upload-preview-remove {
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.payment-method-section .section-head {
    margin-bottom: 22px;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 18px;
}

.payment-method-form {
    display: grid;
    gap: 14px;
}

.payment-method-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: rgba(255,255,255,0.95);
}

.payment-method-option input {
    margin-top: 4px;
}

.payment-method-option span {
    display: grid;
    gap: 4px;
}

.payment-method-note {
    margin-top: 6px;
}

@media (max-width: 991px) {
    .ad-highlight-grid-rich {
        grid-template-columns: 1fr;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .page-ad-create .site-main {
        padding-top: 18px;
        padding-bottom: 32px;
    }

    .ad-create-progress {
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .ad-upload-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ad-step-actions {
        flex-direction: column;
    }

    .ad-step-actions .btn {
        width: 100%;
    }
}


.page-ad-payment .site-main {
    padding-top: 28px;
    padding-bottom: 48px;
}

.ad-create-topbar-only-back {
    justify-content: flex-start;
}

.ad-create-step-pill {
    cursor: default;
}

.form-help {
    display: block;
    color: #64748b;
    margin-top: 8px;
    font-size: 0.88rem;
}

.payment-method-clean-shell,
.payment-method-clean-section .ad-create-shell {
    width: min(1180px, calc(100vw - 32px));
}

.payment-method-grid-clean,
.payment-checkout-grid-clean {
    margin-top: 10px;
}

.payment-checkout-clean-head {
    margin-bottom: 22px;
}

@media (max-width: 767px) {
    .page-ad-payment .site-main {
        padding-top: 18px;
        padding-bottom: 32px;
    }

    .payment-method-clean-shell,
    .payment-method-clean-section .ad-create-shell {
        width: min(100%, calc(100vw - 20px));
    }
}


/* ===== Ad create wizard mobile refinement ===== */
.ad-step-actions-category-auto {
    display: none;
}

@media (max-width: 767px) {
    .page-ad-create .site-main {
        padding-top: 12px;
        padding-bottom: 24px;
    }

    .ad-create-topbar-minimal {
        margin-bottom: 12px;
    }

    .ad-create-back-link {
        padding: 10px 14px;
        font-size: 0.92rem;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    .ad-create-progress {
        display: grid;
        grid-template-columns: repeat(4, minmax(64px, 1fr));
        gap: 8px;
        overflow-x: visible;
        margin-bottom: 12px;
    }

    .ad-create-step-pill {
        padding: 10px 8px;
        border-radius: 16px;
        gap: 4px;
        min-width: 0;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    }

    .ad-create-step-pill span {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .ad-create-step-pill strong {
        font-size: 0.72rem;
        line-height: 1.15;
        word-break: break-word;
    }

    .ad-wizard-card {
        padding: 14px;
        border-radius: 18px;
        box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
    }

    .ad-wizard-head {
        margin-bottom: 14px;
    }

    .ad-wizard-head h2 {
        margin: 4px 0 6px;
        font-size: 1.15rem;
        line-height: 1.14;
    }

    .ad-wizard-head p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .ad-selected-category-chip {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .ad-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .ad-category-card {
        min-height: 0;
        padding: 12px 8px;
        gap: 6px;
        border-radius: 18px;
        text-align: center;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .ad-category-card strong {
        font-size: 0.76rem;
        line-height: 1.15;
    }

    .ad-category-card small {
        display: none;
    }

    .ad-category-card-icon {
        width: 42px;
        height: 42px;
        margin: 0 auto;
        border-radius: 14px;
        font-size: 1.2rem;
    }

    .ad-create-form-grid.form-grid.form-grid-2,
    .technical-grid,
    .ad-highlight-grid-rich {
        gap: 12px;
    }

    .ad-upload-dropzone {
        min-height: 120px;
        padding: 16px;
        border-radius: 18px;
    }

    .ad-upload-dropzone strong {
        font-size: 0.92rem;
    }

    .ad-upload-dropzone small {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .ad-upload-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.2rem;
    }

    .ad-upload-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ad-upload-preview-item {
        padding: 8px;
        border-radius: 14px;
        gap: 6px;
    }

    .ad-upload-preview-order {
        top: 6px;
        left: 6px;
        min-width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }

    .ad-upload-preview-remove {
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .ad-highlight-grid,
    .ad-highlight-grid-rich {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ad-highlight-option {
        min-height: 0;
        padding: 14px;
        border-radius: 18px;
        gap: 8px;
    }

    .ad-highlight-option strong {
        font-size: 1rem;
    }

    .ad-highlight-price {
        margin: 2px 0 4px;
        font-size: 1rem;
    }

    .ad-create-review-card {
        padding: 16px;
        border-radius: 18px;
        gap: 10px;
    }

    .ad-create-review-row {
        gap: 8px;
        padding-bottom: 10px;
    }

    .ad-create-review-row span,
    .ad-create-review-row strong {
        font-size: 0.88rem;
    }

    .ad-step-actions {
        margin-top: 14px;
        gap: 10px;
    }

    .ad-step-actions .btn {
        min-height: 46px;
    }

    .form-help {
        margin-top: 6px;
        font-size: 0.8rem;
    }
}


@media (max-width: 767px) {
    .page-ad-create .ad-create-form-grid.form-grid.form-grid-2,
    .page-ad-create .technical-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .page-ad-create .ad-create-form-grid .span-2,
    .page-ad-create .technical-grid .span-2 {
        grid-column: span 2;
    }

    .page-ad-create .form-group {
        gap: 6px;
        min-width: 0;
    }

    .page-ad-create .form-group label {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .page-ad-create input,
    .page-ad-create select,
    .page-ad-create textarea {
        padding: 11px 12px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .page-ad-create textarea {
        min-height: 110px;
    }

    .page-ad-create .ad-create-review-row {
        flex-direction: row;
        align-items: center;
    }

    .page-ad-create .ad-highlight-grid-rich {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .page-ad-create .ad-highlight-option {
        padding: 12px;
        border-radius: 16px;
        gap: 6px;
    }

    .page-ad-create .ad-highlight-option p {
        font-size: 0.77rem;
        line-height: 1.3;
    }

    .page-ad-create .ad-highlight-badge {
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    .page-ad-create .ad-create-review-card {
        padding: 14px;
    }

    .page-ad-create .technical-box {
        padding: 14px;
        border-radius: 16px;
    }

    .page-ad-create .ad-step-actions .btn {
        min-height: 44px;
    }
}


.panel-ad-actions-wrap { flex-wrap: wrap; gap: 10px; }
.btn-danger-outline {
    background: #fff;
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, 0.25);
}
.btn-danger-outline:hover {
    background: rgba(180, 35, 24, 0.08);
    color: #8f1d14;
}
.highlight-modal[hidden] { display: none !important; }
.highlight-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.highlight-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.6);
    backdrop-filter: blur(3px);
}
.highlight-modal-dialog {
    position: relative;
    width: min(760px, 100%);
    border-radius: 24px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    z-index: 1;
}
.highlight-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.highlight-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.highlight-modal-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.highlight-modal-card-button {
    width: 100%;
    border: 0;
    text-align: left;
    background: #fff;
    cursor: pointer;
}

.highlight-modal-card-button .btn {
    pointer-events: none;
}

.highlight-modal-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.38);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.14);
}

.highlight-modal-card.is-selected {
    border-color: rgba(249, 115, 22, 0.52);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.18);
    transform: translateY(-2px);
}
.highlight-payment-step {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.highlight-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.highlight-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.highlight-payment-option {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.highlight-payment-option:hover,
.highlight-payment-option.is-selected {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.14);
    transform: translateY(-2px);
}
.highlight-payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
    font-size: 12px;
    font-weight: 800;
}
.highlight-payment-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}
.highlight-payment-actions .btn {
    min-width: 160px;
}
.highlight-modal-badge {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
    font-size: 12px;
    font-weight: 700;
}
.btn-block { width: 100%; justify-content: center; }
body.modal-open { overflow: hidden; }
.ad-edit-shell { padding: 24px; }
.ad-edit-meta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.ad-edit-meta-head > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-edit-image-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.ad-edit-image-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    background: #f5f7fb;
}
.ad-edit-form .actions-inline { margin-top: 18px; }
@media (max-width: 900px) {
    .highlight-modal-grid { grid-template-columns: 1fr; }
    .highlight-payment-grid { grid-template-columns: 1fr; }
    .highlight-payment-actions { flex-direction: column-reverse; }
    .highlight-payment-actions .btn { width: 100%; }
    .ad-edit-image-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.highlight-modal.is-open { display: flex; }

/* ===== Mobile compact polish: highlight modal + payment checkout ===== */
@media (max-width: 767px) {
    .highlight-modal {
        padding: 12px;
        align-items: center;
    }

    .highlight-modal-dialog {
        width: min(100%, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        border-radius: 20px;
        padding: 16px 14px;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    }

    .highlight-modal-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .highlight-modal-dialog .eyebrow {
        font-size: 0.72rem;
    }

    .highlight-modal-dialog h2 {
        margin: 4px 0 6px;
        font-size: 1.1rem;
        line-height: 1.15;
        padding-right: 36px;
    }

    .highlight-modal-dialog .muted-text {
        font-size: 0.88rem;
        line-height: 1.35;
    }

    .highlight-modal-grid {
        gap: 10px;
        margin-top: 14px;
    }

    .highlight-modal-card {
        border-radius: 16px;
        padding: 12px;
        gap: 8px;
    }

    .highlight-modal-card strong {
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .highlight-modal-card p {
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .highlight-modal-badge {
        padding: 5px 9px;
        font-size: 0.72rem;
    }

    .highlight-modal-card-button .btn {
        min-height: 42px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .highlight-payment-step {
        margin-top: 14px;
        padding-top: 14px;
    }

    .highlight-step-head {
        margin-bottom: 10px;
        gap: 6px;
    }

    .highlight-step-head strong {
        font-size: 0.92rem;
    }

    .highlight-payment-grid {
        gap: 10px;
    }

    .highlight-payment-option {
        border-radius: 16px;
        padding: 12px;
        gap: 6px;
    }

    .highlight-payment-option strong {
        font-size: 0.92rem;
    }

    .highlight-payment-option p {
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .highlight-payment-icon {
        min-width: 44px;
        height: 26px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .highlight-payment-actions {
        gap: 8px;
        margin-top: 14px;
    }

    .highlight-payment-actions .btn {
        min-width: 0;
        min-height: 44px;
        border-radius: 12px;
        font-size: 0.92rem;
    }

    .page-ad-payment .site-main {
        padding-top: 10px;
        padding-bottom: 22px;
    }

    .payment-method-clean-shell,
    .payment-method-clean-section .ad-create-shell {
        width: min(100%, calc(100vw - 16px));
        gap: 12px;
    }

    .page-ad-payment .ad-create-topbar-minimal {
        margin-bottom: 8px;
    }

    .page-ad-payment .ad-create-back-link {
        padding: 9px 12px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .payment-checkout-clean-head,
    .payment-method-clean-section .section-head {
        margin-bottom: 12px;
    }

    .payment-checkout-clean-head h1,
    .payment-method-clean-section .section-head h1,
    .payment-method-clean-section .section-head h2,
    .page-ad-payment .sidebar-card h2,
    .page-ad-payment .compact-card h2 {
        font-size: 1.08rem;
        line-height: 1.15;
        margin: 4px 0 6px;
    }

    .payment-checkout-clean-head p,
    .payment-method-clean-section .section-head p,
    .page-ad-payment .sidebar-card p,
    .page-ad-payment .compact-card p,
    .page-ad-payment .muted-text {
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .payment-checkout-grid-clean,
    .payment-method-grid-clean {
        margin-top: 6px;
        gap: 10px;
    }

    .page-ad-payment .sidebar-card,
    .page-ad-payment .compact-card,
    .page-ad-payment .payment-method-card-clean {
        border-radius: 18px;
        padding: 14px;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    }

    .page-ad-payment .status-line {
        gap: 8px;
        padding: 8px 0;
        font-size: 0.86rem;
    }

    .page-ad-payment .status-line code,
    .page-ad-payment .notice-inline code,
    .page-ad-payment .sidebar-card code {
        font-size: 0.74rem;
        word-break: break-all;
    }

    .page-ad-payment .notice-inline,
    .page-ad-payment .notice-card {
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .page-ad-payment .btn,
    .page-ad-payment .actions-inline .btn,
    .page-ad-payment .form-actions-inline .btn {
        min-height: 44px;
        border-radius: 12px;
        font-size: 0.92rem;
    }

    .page-ad-payment .actions-inline,
    .page-ad-payment .form-actions-inline {
        gap: 8px;
    }

    .page-ad-payment .actions-inline .btn,
    .page-ad-payment .form-actions-inline .btn,
    .page-ad-payment .payment-method-form .btn {
        width: 100%;
        justify-content: center;
    }

    .page-ad-payment .payment-method-form {
        gap: 10px;
    }

    .page-ad-payment .payment-method-option {
        border-radius: 14px;
        padding: 12px;
    }

    .page-ad-payment .payment-method-option span {
        gap: 2px;
    }

    .page-ad-payment .payment-method-option strong {
        font-size: 0.92rem;
    }

    .page-ad-payment .payment-method-option small {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .page-ad-payment .pix-grid {
        gap: 10px;
    }

    .page-ad-payment .pix-qr-box,
    .page-ad-payment .pix-copy-box {
        border-radius: 16px;
        padding: 12px;
    }

    .page-ad-payment .pix-qr-image {
        max-width: 180px;
        width: 100%;
        margin-inline: auto;
    }

    .page-ad-payment .pix-code {
        min-height: 108px;
        padding: 10px 12px;
        font-size: 0.76rem;
        line-height: 1.35;
        border-radius: 14px;
    }

    .page-ad-payment .card-form-grid {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .page-ad-payment .card-form-grid .form-group,
    .page-ad-payment .card-form-grid .form-col-2,
    .page-ad-payment .card-form-grid .form-actions-inline {
        grid-column: auto;
    }

    .page-ad-payment .form-group label {
        font-size: 0.84rem;
        margin-bottom: 6px;
    }

    .page-ad-payment .form-group input,
    .page-ad-payment .form-group select,
    .page-ad-payment textarea.pix-code {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 0.92rem;
    }

    .page-ad-payment .form-actions-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .page-ad-payment #card-payment-feedback {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* ===== Plans landing page refresh ===== */
.plans-landing {
    padding-top: 18px;
}

.plans-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    padding: 28px;
    margin-bottom: 22px;
    overflow: hidden;
}

.plans-hero-copy h1 {
    margin: 10px 0 14px;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.05;
}

.plans-hero-copy p {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.02rem;
}

.plans-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.plans-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.plans-hero-pills span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.035);
    color: var(--muted);
    font-size: 0.9rem;
}

.plans-hero-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: stretch;
}

.plans-hero-shot {
    position: relative;
    min-height: 360px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.plans-hero-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plans-hero-shot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(4,6,12,0.78));
}

.plans-hero-shot-copy {
    position: absolute;
    inset: auto 14px 14px 14px;
    z-index: 2;
    display: grid;
    gap: 4px;
}

.plans-hero-shot-copy strong {
    font-size: 1rem;
}

.plans-hero-shot-copy span {
    color: rgba(255,255,255,0.72);
    font-size: 0.88rem;
}

.plans-story-grid,
.plans-benefits-grid,
.plans-highlight-strip,
.plans-flow-grid {
    display: grid;
    gap: 18px;
}

.plans-story-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 22px;
}

.plan-story-card {
    padding: 26px;
}

.plan-story-card h2 {
    margin: 10px 0 10px;
}

.plan-story-card p {
    color: var(--muted);
}

.plan-story-card-featured {
    border-color: rgba(244,176,0,0.35);
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.plans-benefits,
.plans-explainer,
.plans-current {
    margin-bottom: 22px;
}

.plans-benefits-grid,
.plans-flow-grid {
    grid-template-columns: repeat(3, 1fr);
}

.plans-benefit-item,
.plans-flow-step {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    background: rgba(255,255,255,0.025);
}

.plans-benefit-item strong,
.plans-flow-step strong {
    display: block;
    margin-bottom: 8px;
}

.plans-benefit-item p,
.plans-flow-step p {
    margin: 0;
    color: var(--muted);
}

.plans-benefit-icon,
.plans-flow-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    margin-bottom: 14px;
    background: rgba(244,176,0,0.12);
    color: var(--primary-2);
    font-weight: 800;
}

.plans-highlight-strip {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 22px;
}

.plans-highlight-card {
    padding: 24px;
}

.plans-highlight-card h3 {
    margin: 12px 0 8px;
}

.plans-highlight-card p {
    margin: 0;
    color: var(--muted);
}

.plans-highlight-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(244,176,0,0.12);
    color: var(--primary-2);
    font-weight: 700;
    font-size: 0.82rem;
}

.plans-highlight-price {
    display: block;
    margin-top: 16px;
    font-size: 1.8rem;
}

.plans-pricing-wrap {
    margin-top: 8px;
}

.plans-login-box {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.plans-login-actions {
    display: grid;
    gap: 10px;
}

@media (max-width: 1100px) {
    .plans-hero,
    .plans-story-grid,
    .plans-benefits-grid,
    .plans-highlight-strip,
    .plans-flow-grid {
        grid-template-columns: 1fr;
    }

    .plans-hero-media {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .plans-hero-shot {
        min-height: 240px;
    }
}

@media (max-width: 760px) {
    .plans-landing {
        padding-top: 6px;
    }

    .plans-hero {
        padding: 18px;
        gap: 18px;
        border-radius: 22px;
    }

    .plans-hero-copy h1 {
        font-size: 1.9rem;
        line-height: 1.08;
    }

    .plans-hero-copy p {
        font-size: 0.96rem;
    }

    .plans-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .plans-hero-actions .btn {
        width: 100%;
    }

    .plans-hero-pills {
        gap: 8px;
    }

    .plans-hero-pills span {
        font-size: 0.82rem;
        padding: 9px 12px;
    }

    .plans-hero-media {
        grid-template-columns: 1fr;
    }

    .plans-hero-shot {
        min-height: 180px;
    }

    .plan-story-card,
    .plans-benefit-item,
    .plans-highlight-card,
    .plans-flow-step {
        padding: 18px;
    }

    .plans-highlight-price {
        font-size: 1.5rem;
    }
}


/* ===== Plans page scoped stability fix ===== */
.plans-shell-card {
    position: relative;
    overflow: hidden;
}

.plans-current-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.plans-shell-pricing {
    position: relative;
}

.plans-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.plans-pricing-card {
    display: grid;
    align-content: start;
    gap: 0;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: 0 16px 38px rgba(0,0,0,0.14);
}

.plans-pricing-card-featured {
    border-color: rgba(244,176,0,0.35);
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.20);
}

.plans-pricing-name {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--primary-2);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.plans-pricing-price {
    display: block;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    line-height: 1;
    margin: 14px 0 12px;
}

.plans-pricing-card > p {
    margin: 0 0 10px;
    color: var(--muted);
}

.plans-action-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.plans-action-form textarea {
    min-height: 96px;
    resize: vertical;
}

.plans-login-box {
    padding-top: 12px;
}

@media (max-width: 980px) {
    .plans-current-grid,
    .plans-pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .plans-current-grid,
    .plans-pricing-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .plans-pricing-card,
    .plans-shell-card {
        padding: 18px;
        border-radius: 20px;
    }

    .plans-pricing-price {
        font-size: 1.75rem;
    }
}

/* ===== Compact header inspired by chat ===== */
.site-header-v3.header-v3-compact {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    backdrop-filter: none;
}

.site-header-v3.header-v3-compact .header-v3-shell {
    padding: 8px 0;
}

.site-header-v3.header-v3-compact .header-desktop-v3 {
    grid-template-columns: 136px minmax(320px, 1fr) auto;
    gap: 12px;
}

.site-header-v3.header-v3-compact .brand-logo-v3 {
    width: 134px;
}

.site-header-v3.header-v3-compact .brand-logo-tablet-v3 {
    width: 132px;
}

.site-header-v3.header-v3-compact .brand-logo-mobile-v3 {
    width: 102px;
}

.site-header-v3.header-v3-compact .header-search-desktop-v3,
.site-header-v3.header-v3-compact .header-tablet-search-v3 {
    grid-template-columns: minmax(0, 1fr) 52px;
}

.site-header-v3.header-v3-compact .header-search-field-v3,
.site-header-v3.header-v3-compact .header-state-field-v3 {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
}

.site-header-v3.header-v3-compact .header-search-field-v3 input,
.site-header-v3.header-v3-compact .header-state-field-v3 select {
    font-size: 0.92rem;
}

.site-header-v3.header-v3-compact .header-search-button-v3 {
    width: 52px;
    min-height: 42px;
    border-radius: 14px;
    box-shadow: none;
}

.site-header-v3.header-v3-compact .header-actions-desktop-v3,
.site-header-v3.header-v3-compact .header-tablet-top-actions-v3,
.site-header-v3.header-v3-compact .header-tablet-links-v3,
.site-header-v3.header-v3-compact .header-mobile-actions-v3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header-v3.header-v3-compact .header-mobile-actions-v3 {
    margin-left: auto;
}

.site-header-v3.header-v3-compact .header-text-link-v3,
.site-header-v3.header-v3-compact .header-icon-pill-v3,
.site-header-v3.header-v3-compact .header-profile-v3,
.site-header-v3.header-v3-compact .header-profile-compact-v3,
.site-header-v3.header-v3-compact .header-chip-link-v3,
.site-header-v3.header-v3-compact .header-square-action-v3 {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    box-shadow: none;
}

.site-header-v3.header-v3-compact .header-text-link-v3 {
    border-color: transparent;
    padding-inline: 8px;
}

.site-header-v3.header-v3-compact .header-square-action-v3,
.site-header-v3.header-v3-compact .header-mobile-action-v3,
.site-header-v3.header-v3-compact .header-profile-mobile-v3 {
    width: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
}

.site-header-v3.header-v3-compact .header-profile-mobile-v3 {
    gap: 0;
}

.site-header-v3.header-v3-compact .header-profile-mobile-v3 span:not(.header-profile-avatar-v3) {
    display: none;
}

.site-header-v3.header-v3-compact .header-profile-avatar-v3 {
    width: 28px;
    height: 28px;
    font-size: 0.84rem;
}

.site-header-v3.header-v3-compact .header-announce-v3 {
    min-height: 40px;
    padding-inline: 14px;
    border-radius: 14px;
    font-size: 0.88rem;
}

.site-header-v3.header-v3-compact .header-badge-v3 {
    top: -4px;
    right: -3px;
}

.site-header-v3.header-v3-compact .header-tablet-v3 {
    gap: 10px;
}

.site-header-v3.header-v3-compact .header-tablet-top-v3,
.site-header-v3.header-v3-compact .header-mobile-top-v3 {
    gap: 10px;
}

.site-header-v3.header-v3-compact .header-mobile-v3 {
    gap: 10px;
}

.site-header-v3.header-v3-compact .header-mobile-search-v3 {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.site-header-v3.header-v3-compact .header-mobile-search-v3 .header-search-field-v3 {
    min-height: 40px;
    border-radius: 14px;
}

.site-header-v3.header-v3-compact .header-mobile-search-v3 .header-search-button-v3 {
    width: 48px;
    min-height: 40px;
    border-radius: 14px;
}

@media (min-width: 1181px) {
    .site-header-v3.header-v3-compact .header-search-desktop-v3 {
        width: min(100%, 640px);
    }

    .site-header-v3.header-v3-compact .header-actions-desktop-v3 {
        gap: 6px;
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    .site-header-v3.header-v3-compact .header-tablet-top-actions-v3 {
        gap: 6px;
    }

    .site-header-v3.header-v3-compact .header-chip-link-v3 {
        padding-inline: 10px;
        font-size: 0.86rem;
    }
}

@media (max-width: 767px) {
    .site-header-v3.header-v3-compact .header-v3-shell {
        padding: 8px 0 10px;
    }

    .site-header-v3.header-v3-compact .header-mobile-top-v3 {
        align-items: center;
    }

    .site-header-v3.header-v3-compact .header-mobile-top-minimal-v3 {
        justify-content: center;
        text-align: center;
    }

    .site-header-v3.header-v3-compact .header-mobile-top-minimal-v3 .brand-v3 {
        margin-inline: auto;
    }

    .site-header-v3.header-v3-compact .header-mobile-search-v3 {
        margin-top: 2px;
    }
}


/* Footer institucional */
.site-footer {
    margin-top: 38px;
    border-top: 1px solid var(--line);
    padding: 22px 0 34px;
    background: #fff;
}

.footer-top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--line);
}

.footer-top-links a {
    color: #20262f;
    font-weight: 600;
    font-size: 0.98rem;
}

.footer-top-links a:hover {
    color: var(--primary);
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
}

.footer-legal {
    margin: 0;
    color: #5c6470;
    font-size: 0.98rem;
    font-style: italic;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dde5;
    background: #fff;
    color: #20262f;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.footer-social-link:hover {
    color: var(--primary);
    border-color: rgba(255, 123, 0, 0.26);
    transform: translateY(-1px);
}

.footer-social-link span {
    line-height: 1;
}

/* Páginas estáticas do footer */
.static-page-shell {
    padding: 28px 0 8px;
}

.static-page-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    padding: 28px;
}

.static-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.static-page-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 123, 0, 0.08);
    color: var(--primary);
    font-weight: 800;
}

.static-page-card h1 {
    margin: 14px 0 10px;
}

.static-page-intro {
    margin: 0;
    max-width: 760px;
    color: #5c6470;
}

.static-page-highlight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.static-page-highlight-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f6f8fb;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #1f2937;
    font-weight: 700;
    font-size: 0.95rem;
}

.static-page-note {
    border: 1px solid rgba(255, 123, 0, 0.14);
    background: linear-gradient(180deg, rgba(255, 123, 0, 0.08) 0%, rgba(255, 123, 0, 0.03) 100%);
    border-radius: 20px;
    padding: 18px;
}

.static-page-note strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #111827;
}

.static-page-note p {
    margin: 0;
    color: #5c6470;
}

.static-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.static-page-grid-tight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.static-page-block {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.static-page-block h2 {
    margin: 0 0 10px;
    font-size: 1.06rem;
}

.static-page-block p {
    margin: 0;
    color: #5c6470;
}

.static-page-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.static-page-list li {
    position: relative;
    padding-left: 18px;
    color: #374151;
    line-height: 1.55;
}

.static-page-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateY(-50%);
}

.static-page-actions {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }

    .static-page-hero {
        grid-template-columns: 1fr;
    }

    .static-page-grid,
    .static-page-grid-tight {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .site-footer {
        padding: 18px 0 94px;
    }

    .footer-top-links {
        justify-content: flex-start;
        gap: 12px 18px;
        font-size: 0.94rem;
    }

    .footer-top-links a {
        font-size: 0.94rem;
    }

    .footer-bottom-bar {
        align-items: flex-start;
        text-align: left;
    }

    .footer-socials {
        gap: 10px;
    }

    .footer-social-link {
        width: 36px;
        height: 36px;
    }

    .static-page-card {
        padding: 20px;
        border-radius: 20px;
    }

    .static-page-card {
        padding: 20px;
        border-radius: 20px;
    }

    .static-page-hero {
        gap: 14px;
    }

    .static-page-highlight-list {
        gap: 8px;
    }

    .static-page-highlight-chip {
        min-height: 34px;
        font-size: 0.9rem;
        padding: 0 12px;
    }

    .static-page-grid,
    .static-page-grid-tight {
        grid-template-columns: 1fr;
    }

    .static-page-block {
        padding: 16px;
        border-radius: 16px;
    }

    .static-page-list {
        gap: 8px;
    }
}

/* ===== Auth: recovery modal ===== */
.auth-card-login-v2 {
    width: min(100%, 560px);
}

.auth-inline-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-recovery-link {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.auth-recovery-modal__dialog {
    width: min(100%, 520px);
}

.auth-recovery-choice-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-recovery-choice-card {
    display: grid;
    gap: 8px;
    text-align: left;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    background: rgba(255,255,255,0.98);
    color: #0f172a;
    padding: 18px;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.auth-recovery-choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 127, 32, 0.28);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.auth-recovery-choice-card.is-selected {
    border-color: rgba(244, 127, 32, 0.42);
    box-shadow: 0 18px 30px rgba(244, 127, 32, 0.12);
}

.auth-recovery-choice-card strong {
    font-size: 1rem;
}

.auth-recovery-choice-card span {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #64748b;
}

.auth-recovery-form {
    margin-top: 4px;
}

@media (max-width: 768px) {
    .auth-section--login {
        padding: 36px 0 56px;
    }

    .auth-inline-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .auth-recovery-choice-grid {
        grid-template-columns: 1fr;
    }

    .auth-recovery-choice-card {
        padding: 16px;
    }
}


.home-banner-showcase {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 28px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: #ffffff;
}

.home-banner-slider {
    position: relative;
}

.home-banner-slide {
    display: none;
    padding: 0;
}

.home-banner-slide.is-active {
    display: block;
}

.home-banner-card {
    display: block;
    min-height: 320px;
    color: inherit;
    text-decoration: none;
}

.home-banner-media {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 28px;
    background: #edf1f6;
}

.home-banner-media picture,
.home-banner-media img {
    width: 100%;
    height: 100%;
    display: block;
}

.home-banner-media img {
    object-fit: cover;
}

.home-banner-pill {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.home-banner-pill.is-sponsored {
    background: rgba(17, 18, 22, 0.88);
    color: #ffffff;
}

.home-banner-content {
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 0, 0.12), transparent 30%),
        linear-gradient(145deg, #ffffff, #f6f8fb);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.home-banner-copy {
    display: grid;
    gap: 12px;
}

.home-banner-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 107, 0, 0.12);
    color: var(--primary);
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-banner-copy h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3.1vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.home-banner-copy p {
    margin: 0;
    color: #475467;
    font-size: 1rem;
    line-height: 1.65;
}

.home-banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 800;
    width: fit-content;
}

.home-banner-card:hover .home-banner-cta {
    transform: translateY(-1px);
    box-shadow: 0 16px 24px rgba(255, 107, 0, 0.18);
}

.home-banner-dots {
    margin-top: 0;
    padding: 14px 0 18px;
}

@media (max-width: 960px) {
    .home-banner-showcase {
        border-radius: 22px;
    }

    .home-banner-slide {
        padding: 0;
    }

    .home-banner-card {
        min-height: 0;
    }

    .home-banner-media {
        min-height: 230px;
        border-radius: 22px;
    }

    .home-banner-content {
        padding: 18px;
        border-radius: 20px;
    }

    .home-banner-copy h1 {
        font-size: 1.5rem;
    }

    .home-banner-copy p {
        font-size: 0.94rem;
        line-height: 1.55;
    }

    .home-banner-cta {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        border-radius: 14px;
    }
}

/* ===== Payment wizard refresh ===== */
.payment-wizard-page {
    padding-top: 8px;
}

.payment-wizard-shell {
    display: grid;
    gap: 18px;
}

.payment-wizard-head {
    display: grid;
    gap: 16px;
}

.payment-wizard-head h1 {
    margin: 8px 0 10px;
}

.payment-wizard-head p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
}

.payment-wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-wizard-step {
    min-width: 164px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(241, 178, 76, 0.3);
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    gap: 4px;
}

.payment-wizard-step span {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.payment-wizard-step strong {
    font-size: 0.92rem;
    color: var(--text);
}

.payment-wizard-step.is-active {
    border-color: rgba(241, 178, 76, 0.68);
    background: rgba(255, 248, 236, 0.98);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.payment-wizard-step.is-complete {
    border-color: rgba(16, 185, 129, 0.32);
    background: rgba(240, 253, 250, 0.95);
}

.payment-choice-grid,
.payment-wizard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.payment-wizard-grid-pix {
    align-items: stretch;
}

.payment-stage-card,
.payment-order-sidecard,
.payment-choice-product,
.payment-choice-method {
    border-radius: 28px;
    padding: 24px;
}

.payment-stage-card-emphasis {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 250, 241, 0.98) 100%);
}

.payment-stage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.payment-stage-head h2,
.payment-choice-product h2,
.payment-choice-method h2,
.payment-order-sidecard h2,
.payment-stage-card h2 {
    margin: 8px 0 10px;
}

.payment-stage-amount {
    white-space: nowrap;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
}

.payment-summary-list {
    display: grid;
    gap: 12px;
}

.payment-method-wizard-options,
.payment-card-subchoice-grid {
    display: grid;
    gap: 12px;
}

.payment-card-subchoice-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-method-tile,
.payment-subtile {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.payment-subtile {
    grid-template-columns: auto 1fr;
}

.payment-method-tile input,
.payment-subtile input {
    margin-top: 3px;
}

.payment-method-tile-copy,
.payment-subtile span {
    display: grid;
    gap: 4px;
}

.payment-method-tile-badge,
.payment-inline-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(241, 178, 76, 0.12);
    color: #b56700;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.payment-inline-chip {
    min-height: 28px;
    padding: 0 10px;
}

.payment-method-tile:hover,
.payment-subtile:hover {
    transform: translateY(-1px);
    border-color: rgba(241, 178, 76, 0.42);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.payment-method-tile.is-selected,
.payment-subtile.is-selected {
    border-color: rgba(241, 178, 76, 0.62);
    background: rgba(255, 248, 236, 0.98);
}

.payment-subtile.is-disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.payment-card-subchoice {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.payment-card-subchoice-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.payment-method-choice-note {
    margin-top: 8px;
}

.payment-choice-actions {
    margin-top: 8px;
}

.payment-pix-live-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.payment-pix-qr-card,
.payment-pix-copy-card {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.84);
    padding: 18px;
}

.payment-pix-qr-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.payment-pix-qr-image {
    width: 100%;
    max-width: 220px;
    display: block;
    height: auto;
}

.payment-pix-copy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-pix-code {
    min-height: 168px;
    resize: vertical;
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.payment-empty-state,
.payment-success-panel {
    border-radius: 24px;
    padding: 22px;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    gap: 8px;
}

.payment-empty-state.compact {
    text-align: center;
}

.payment-success-panel {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(240, 253, 250, 0.96);
}

.payment-success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.14);
    color: #0f9f74;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
}

.payment-side-note {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 8px;
}

.payment-order-sidecard-sticky {
    position: sticky;
    top: 96px;
}

.payment-card-form-shell {
    display: grid;
    gap: 18px;
}

.payment-card-step {
    display: block;
}

.payment-checkout-form-grid {
    gap: 14px;
}

.payment-stage-actions {
    margin-top: 18px;
}

.payment-dev-card {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .payment-choice-grid,
    .payment-wizard-grid,
    .payment-pix-live-grid,
    .payment-card-subchoice-grid-large {
        grid-template-columns: 1fr;
    }

    .payment-stage-head,
    .payment-pix-copy-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-order-sidecard-sticky {
        position: static;
    }

    .payment-method-tile,
    .payment-subtile {
        grid-template-columns: auto 1fr;
    }

    .payment-method-tile-badge {
        grid-column: 2;
        justify-self: flex-start;
    }
}

@media (max-width: 640px) {
    .payment-wizard-step {
        min-width: 0;
        width: 100%;
    }

    .payment-stage-card,
    .payment-order-sidecard,
    .payment-choice-product,
    .payment-choice-method {
        padding: 18px;
        border-radius: 22px;
    }

    .payment-pix-qr-card {
        min-height: 220px;
    }

    .payment-stage-actions .btn,
    .payment-choice-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   PAYMENT WIZARD V2
========================================================= */
.payment-v2-page {
    position: relative;
}

.payment-v2-shell {
    gap: 28px;
}

.payment-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.payment-v2-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
}

.payment-v2-hero p {
    margin: 0;
    max-width: 760px;
}

.payment-v2-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.payment-v2-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
}

.payment-v2-card {
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.payment-v2-card-dark {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.12), rgba(255,255,255,0.03) 38%), linear-gradient(145deg, #10141a 0%, #171d26 55%, #111821 100%);
    color: #fff;
}

.payment-v2-card-dark .muted-text,
.payment-v2-card-dark .status-line span,
.payment-v2-card-dark .payment-v2-inline-panel p,
.payment-v2-card-dark .payment-v2-info-strip span {
    color: rgba(255,255,255,0.74);
}

.payment-v2-choice-grid,
.payment-v2-grid-pix {
    align-items: stretch;
}

.payment-v2-product-top,
.payment-v2-stage-head,
.payment-v2-side-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.payment-v2-product-top h2,
.payment-v2-side-top h2,
.payment-v2-stage-head h2 {
    margin-bottom: 8px;
}

.payment-v2-price-badge {
    min-width: 132px;
    padding: 14px 16px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(249,115,22,0.06));
    border: 1px solid rgba(249,115,22,0.28);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.payment-v2-price-stack {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(15,23,42,0.04);
    border: 1px solid rgba(15,23,42,0.08);
}

.payment-v2-price-stack strong {
    font-size: 1.5rem;
    line-height: 1;
}

.payment-v2-price-stack span {
    color: var(--text-muted, #6b7280);
    font-size: 0.92rem;
}

.payment-v2-summary-list {
    margin-top: 22px;
}

.payment-v2-summary-list .status-line {
    gap: 16px;
    align-items: flex-start;
}

.payment-v2-summary-list .status-line strong {
    max-width: 58%;
    text-align: right;
}

.payment-v2-info-strip,
.payment-v2-inline-panel {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.payment-v2-card:not(.payment-v2-card-dark) .payment-v2-inline-panel,
.payment-v2-card:not(.payment-v2-card-dark) .payment-v2-info-strip {
    background: rgba(15,23,42,0.03);
    border-color: rgba(15,23,42,0.08);
}

.payment-v2-inline-panel strong,
.payment-v2-info-strip strong {
    display: block;
    margin-bottom: 6px;
}

.payment-v2-checklist {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.payment-v2-checklist div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(15,23,42,0.03);
    border: 1px solid rgba(15,23,42,0.08);
}

.payment-v2-card-dark .payment-v2-checklist div {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

.payment-v2-checklist strong {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(249,115,22,0.16);
    color: #f97316;
    flex-shrink: 0;
}

.payment-v2-checklist span {
    line-height: 1.4;
}

.payment-v2-checklist-tight {
    margin-top: 16px;
}

.payment-v2-method-options {
    gap: 14px;
}

.payment-v2-method-tile {
    padding: 18px 18px;
    border-radius: 22px;
}

.payment-v2-note {
    margin-top: 16px;
}

.payment-v2-selector-grid {
    margin-top: 18px;
}

.payment-v2-subtile {
    border-radius: 22px;
    min-height: 108px;
}

.payment-v2-pix-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.payment-v2-pix-box {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.payment-v2-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.payment-v2-block-head span,
.payment-pix-copy-head span {
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
}

.payment-v2-empty-state {
    border-radius: 24px;
    min-height: 260px;
}

.payment-v2-sidecard {
    display: grid;
    gap: 0;
}

.payment-v2-card-preview {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 28px;
    min-height: 220px;
    padding: 24px;
    margin: 6px 0 22px;
    border-radius: 26px;
    background: linear-gradient(145deg, #111827 0%, #1f2937 48%, #0f172a 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.payment-v2-card-preview::after {
    content: '';
    position: absolute;
    inset: auto -40px -40px auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(249,115,22,0.32), rgba(249,115,22,0));
}

.payment-v2-card-preview-chip {
    width: 56px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.32));
}

.payment-v2-card-preview-number {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    letter-spacing: 0.16em;
    font-weight: 700;
}

.payment-v2-card-preview-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.payment-v2-card-preview-bottom span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.payment-v2-card-preview-bottom strong {
    display: block;
    line-height: 1.2;
}

.payment-v2-success-panel {
    border-radius: 24px;
}

.payment-v2-card-wizard .payment-card-step {
    animation: fadeInUp .28s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .payment-v2-hero,
    .payment-v2-pix-grid {
        grid-template-columns: 1fr;
    }

    .payment-v2-sidecard,
    .payment-order-sidecard-sticky {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .payment-v2-shell {
        gap: 22px;
    }

    .payment-v2-card,
    .payment-v2-card-preview,
    .payment-v2-pix-box,
    .payment-v2-info-strip,
    .payment-v2-inline-panel {
        border-radius: 22px;
    }

    .payment-v2-product-top,
    .payment-v2-stage-head,
    .payment-v2-side-top,
    .payment-v2-card-preview-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .payment-v2-price-badge {
        width: 100%;
        min-width: 0;
    }

    .payment-v2-summary-list .status-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-v2-summary-list .status-line strong {
        max-width: 100%;
        text-align: left;
    }

    .payment-v2-checklist div {
        padding: 12px;
    }
}


/* ===== Checkout Wizard V3 Ultra Premium ===== */
.payment-v3-page .payment-v2-hero { position: relative; overflow: hidden; border-radius: 32px; padding: 30px; background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(31,41,55,.94)); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 80px rgba(2,6,23,.30); }
.payment-v3-page .payment-v2-hero::before { content:''; position:absolute; inset:-20% auto auto -10%; width:320px; height:320px; border-radius:50%; background: radial-gradient(circle, rgba(249,115,22,.20), transparent 68%); pointer-events:none; }
.payment-v3-page .payment-v2-badges span { backdrop-filter: blur(12px); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.09); }
.payment-v3-page .payment-v2-card, .payment-v3-page .payment-v2-pix-box, .payment-v3-page .payment-v2-inline-panel, .payment-v3-page .payment-v2-info-strip, .payment-v3-page .payment-v2-sidecard { border-radius: 28px; }
.payment-v3-page .payment-v2-card { box-shadow: 0 24px 60px rgba(15,23,42,.10); }
.payment-v3-page .payment-v2-card:not(.payment-v2-card-dark) { background: linear-gradient(180deg, #fff, #fbfdff); }
.payment-v3-pix-grid { align-items: stretch; }
.payment-v3-pix-hero-box { background: linear-gradient(180deg, #0f172a, #172033); }
.payment-v3-pix-side-box { background: linear-gradient(180deg, #fff, #f9fbff); }
.payment-v3-pix-amount-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border-radius:18px; margin:14px 0 18px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.payment-v3-pix-amount-row small, .payment-v3-countdown-badge small { display:block; font-size:12px; color:rgba(255,255,255,.7); }
.payment-v3-pix-amount-row strong, .payment-v3-countdown-badge strong { font-size:22px; line-height:1.1; color:#fff; }
.payment-v3-countdown-badge { text-align:right; }
.payment-v3-qr-stage { display:grid; place-items:center; min-height:320px; border-radius:28px; padding:20px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92)); }
.payment-v3-qr-stage img { max-width:260px; width:100%; filter: drop-shadow(0 18px 30px rgba(15,23,42,.12)); }
.payment-v3-pix-trustrow, .payment-v3-method-minirow { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.payment-v3-pix-trustrow span, .payment-v3-method-minirow span { display:inline-flex; align-items:center; padding:10px 12px; border-radius:999px; font-size:12px; font-weight:700; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); color:#fff; }
.payment-v3-action-row .btn { min-height:46px; }
.payment-v3-inline-status { margin-top:14px; padding:12px 14px; border-radius:16px; font-size:13px; font-weight:700; background: rgba(15,23,42,.05); color:#334155; }
.payment-v3-inline-status.is-loading { background: rgba(249,115,22,.10); color:#9a3412; }
.payment-v3-inline-status.is-success { background: rgba(34,197,94,.12); color:#166534; }
.payment-v3-inline-status.is-error { background: rgba(239,68,68,.10); color:#991b1b; }
.payment-v3-empty-state { background: linear-gradient(180deg, #fff, #f8fbff); border:1px dashed rgba(148,163,184,.45); }
.payment-v3-trust-card { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:18px; }
.payment-v3-trust-card > div { padding:14px; border-radius:18px; background:rgba(15,23,42,.04); border:1px solid rgba(148,163,184,.18); }
.payment-v3-trust-card strong, .payment-v3-trust-card span { display:block; }
.payment-v3-trust-card strong { font-size:12px; color:#475569; margin-bottom:4px; }
.payment-v3-trust-card span { font-size:14px; font-weight:700; color:#0f172a; }
.payment-v3-page .payment-card-step { animation: paymentV3Fade .28s ease; }
@keyframes paymentV3Fade { from { opacity:0; transform:translateY(8px);} to { opacity:1; transform:translateY(0);} }
.payment-v3-card-preview { background: linear-gradient(135deg, #0f172a, #1d4ed8 55%, #38bdf8); box-shadow: 0 24px 50px rgba(15,23,42,.20); }
.payment-v3-card-preview-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.payment-v3-card-brand, .payment-v3-card-lock { display:inline-flex; align-items:center; min-height:30px; padding:8px 12px; border-radius:999px; background: rgba(255,255,255,.16); color:#fff; font-size:12px; font-weight:700; }
.payment-v3-field-tip { display:block; margin-top:6px; color:#64748b; font-size:12px; }
.payment-v3-page .payment-checkout-form-grid input, .payment-v3-page .payment-checkout-form-grid select { min-height:52px; border-radius:16px; }
.payment-v3-page .payment-wizard-step { background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.payment-v3-page .payment-wizard-step.is-active { box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; }
@media (max-width: 900px) { .payment-v3-trust-card { grid-template-columns:1fr; } .payment-v3-pix-amount-row { flex-direction:column; align-items:flex-start; } .payment-v3-countdown-badge { text-align:left; } }


/* ===== Payment wizard polish fix ===== */
.payment-card-step[hidden] {
    display: none !important;
}

.payment-v3-page {
    --payment-accent: #ff7a00;
    --payment-accent-soft: #fff4e8;
    --payment-surface: #ffffff;
    --payment-surface-alt: #fffaf4;
    --payment-line: rgba(15, 23, 42, 0.08);
    --payment-text-soft: #5f6b7a;
}

.payment-v3-page .payment-v2-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ef 100%);
    border: 1px solid rgba(255, 122, 0, 0.12);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.payment-v3-page .payment-v2-hero::before {
    width: 220px;
    height: 220px;
    inset: -80px auto auto -40px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.12), transparent 70%);
}

.payment-v3-page .payment-v2-hero h1,
.payment-v3-page .payment-v2-hero p,
.payment-v3-page .payment-v2-hero .eyebrow {
    color: #0f172a;
}

.payment-v3-page .payment-v2-hero p {
    max-width: 860px;
    color: #516072;
}

.payment-v3-page .payment-v2-badges {
    margin-top: 14px;
}

.payment-v3-page .payment-v2-badges span {
    background: #ffffff;
    color: #213042;
    border: 1px solid rgba(255, 122, 0, 0.14);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.payment-v3-page .payment-wizard-step {
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.payment-v3-page .payment-wizard-step span {
    color: #7a8696;
}

.payment-v3-page .payment-wizard-step strong {
    color: #142033;
}

.payment-v3-page .payment-wizard-step.is-active {
    background: linear-gradient(180deg, #fff6eb 0%, #ffffff 100%);
    border-color: rgba(255, 122, 0, 0.32);
    box-shadow: 0 0 0 1px rgba(255, 122, 0, 0.08) inset, 0 10px 26px rgba(15, 23, 42, 0.06);
}

.payment-v3-page .payment-wizard-step.is-complete {
    background: #ffffff;
    border-color: rgba(16, 185, 129, 0.24);
}

.payment-v3-page .payment-v2-card,
.payment-v3-page .payment-v2-pix-box,
.payment-v3-page .payment-v2-inline-panel,
.payment-v3-page .payment-v2-info-strip,
.payment-v3-page .payment-v2-sidecard {
    border-radius: 26px;
}

.payment-v3-page .payment-v2-card,
.payment-v3-page .payment-v2-card:not(.payment-v2-card-dark),
.payment-v3-page .payment-v2-pix-side-box,
.payment-v3-page .payment-v2-sidecard {
    background: linear-gradient(180deg, #ffffff 0%, #fffcf8 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.payment-v3-page .payment-v2-card-dark,
.payment-v3-page .payment-v3-pix-hero-box {
    background: linear-gradient(180deg, #fff7ef 0%, #ffffff 100%);
    color: #0f172a;
    border: 1px solid rgba(255, 122, 0, 0.16);
}

.payment-v3-page .payment-v2-card-dark .muted-text,
.payment-v3-page .payment-v2-card-dark .status-line span,
.payment-v3-page .payment-v2-card-dark .payment-v2-inline-panel p,
.payment-v3-page .payment-v2-card-dark .payment-v2-info-strip span,
.payment-v3-page .payment-v2-card-dark p {
    color: #5f6b7a;
}

.payment-v3-page .payment-v2-price-badge,
.payment-v3-page .payment-stage-amount.payment-v2-price-badge {
    background: linear-gradient(135deg, #ff7a00, #ff9a3d);
    border: none;
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(255, 122, 0, 0.22);
}

.payment-v3-page .payment-v2-price-stack {
    background: linear-gradient(180deg, #fff7ef, #ffffff);
    border: 1px solid rgba(255, 122, 0, 0.14);
}

.payment-v3-page .payment-v2-inline-panel,
.payment-v3-page .payment-v2-info-strip {
    background: #fff8f1;
    border: 1px solid rgba(255, 122, 0, 0.10);
}

.payment-v3-page .payment-v2-checklist div,
.payment-v3-page .payment-v3-trust-card > div {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.payment-v3-page .payment-v2-checklist strong {
    background: rgba(255, 122, 0, 0.12);
    color: #c25c00;
}

.payment-v3-page .payment-subtile,
.payment-v3-page .payment-method-tile {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.payment-v3-page .payment-subtile.is-selected,
.payment-v3-page .payment-method-tile.is-selected {
    background: #fff7ef;
    border-color: rgba(255, 122, 0, 0.34);
    box-shadow: 0 10px 24px rgba(255, 122, 0, 0.10);
}

.payment-v3-page .payment-subtile.is-disabled {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.06);
}

.payment-v3-page .payment-v3-method-minirow span,
.payment-v3-page .payment-v3-pix-trustrow span {
    background: #ffffff;
    color: #2b3648;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.payment-v3-page .payment-v3-pix-amount-row {
    background: #fff3e4;
    border: 1px solid rgba(255, 122, 0, 0.14);
}

.payment-v3-page .payment-v3-pix-amount-row small,
.payment-v3-page .payment-v3-countdown-badge small {
    color: #7b5b35;
}

.payment-v3-page .payment-v3-pix-amount-row strong,
.payment-v3-page .payment-v3-countdown-badge strong {
    color: #0f172a;
}

.payment-v3-page .payment-v3-qr-stage {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.payment-v3-page .payment-pix-copy-card textarea,
.payment-v3-page .payment-sdk-field,
.payment-v3-page .payment-checkout-form-grid input,
.payment-v3-page .payment-checkout-form-grid select {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: none;
}

.payment-v3-page .payment-checkout-form-grid input:focus,
.payment-v3-page .payment-checkout-form-grid select:focus {
    border-color: rgba(255, 122, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.08);
}

.payment-v3-page .payment-v3-card-preview {
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #2f3f57 100%);
}

.payment-v3-page .status-chip {
    box-shadow: none;
}

.payment-v3-page .btn-primary {
    box-shadow: 0 14px 24px rgba(255, 122, 0, 0.18);
}

.payment-v3-page .payment-stage-actions,
.payment-v3-page .actions-inline {
    gap: 12px;
}

@media (max-width: 980px) {
    .payment-v3-page .payment-v2-hero {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .payment-v3-page .payment-v2-hero {
        padding: 18px;
    }

    .payment-v3-page .payment-v2-badges span {
        width: 100%;
        justify-content: center;
    }
}
