/* =========================================================
   TAGBACK — RESTYLING HOMEPAGE
   Mantiene le classi della pagina esistente dove necessario,
   ma introduce un sistema visivo più moderno e orientato
   alla conversione.
   ========================================================= */

:root {
    --tb-yellow: #f4c543;
    --tb-yellow-dark: #d8a900;
    --tb-blue: #1456c0;
    --tb-blue-dark: #0b3475;
    --tb-ink: #111318;
    --tb-muted: #667085;
    --tb-light: #f7f8fa;
    --tb-white: #ffffff;
    --tb-border: #e7e9ee;
    --tb-green: #16845b;
    --tb-danger: #dc3545;
    --tb-radius: 18px;
    --tb-shadow: 0 18px 50px rgba(16, 24, 40, .10);
    --tb-max: 1180px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: var(--tb-ink);
    background: var(--tb-white);
    -webkit-font-smoothing: antialiased;
}

body,
a,
button {
    font-family: "Inter", sans-serif;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

p {
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
p {
    margin-top: 0;
}

.section-container {
    width: min(var(--tb-max), calc(100% - 48px));
    margin: 0 auto;
}

.section-kicker {
    color: var(--tb-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 52px;
}

.section-heading h2,
.value-content h2,
.privacy-content h2,
.final-cta h2 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.04;
    letter-spacing: -.045em;
    font-weight: 900;
    color: var(--tb-ink);
    margin-bottom: 22px;
}

.section-heading p,
.value-content > p,
.privacy-content > p {
    color: var(--tb-muted);
    font-size: 18px;
    line-height: 1.75;
}

.section-heading.light h2,
.section-heading.light p {
    color: var(--tb-white);
}

.section-heading.light .section-kicker {
    color: var(--tb-yellow);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    border: 0;
}

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

.btn-primary-tag {
    background: var(--tb-yellow);
    color: #111;
    box-shadow: 0 10px 25px rgba(244, 197, 67, .28);
}

.btn-primary-tag:hover {
    background: #ffd65e;
    color: #111;
    box-shadow: 0 14px 30px rgba(244, 197, 67, .36);
}

.btn-secondary-tag {
    background: rgba(255, 255, 255, .10);
    color: var(--tb-white);
    border: 1px solid rgba(255, 255, 255, .40);
    backdrop-filter: blur(8px);
}

.btn-secondary-tag:hover {
    color: var(--tb-white);
    background: rgba(255, 255, 255, .18);
}

.btn-large {
    min-height: 58px;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 16px;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    min-height: 76px;
    padding: 10px max(24px, calc((100vw - 1240px) / 2));

    display: flex;
    align-items: center;
    gap: 32px;

    background: rgba(10, 12, 16, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.logo {
    display: block;
    flex: 0 0 auto;
}

.logo img {
    width: 190px;
    height: auto;
}

.menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, .90);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: color .2s ease, background-color .2s ease;
}

.menu a:hover {
    color: var(--tb-white);
    background: rgba(255, 255, 255, .08);
}

.menu .nav-cta {
    margin-left: 8px;
    background: var(--tb-yellow);
    color: #111;
    padding-left: 18px;
    padding-right: 18px;
    font-weight: 800;
}

.menu .nav-cta:hover {
    background: #ffd65e;
}

.hamburger {
    display: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    padding: 9px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background: var(--tb-white);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: min(860px, 100vh);
    height: 860px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0b0d10;
}

#video-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 7, 12, .88) 0%, rgba(4, 7, 12, .68) 45%, rgba(4, 7, 12, .30) 100%),
        linear-gradient(0deg, rgba(4, 7, 12, .55), rgba(4, 7, 12, .12));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--tb-max), calc(100% - 48px));
    margin: 0 auto;
    padding-top: 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    margin-bottom: 22px;
    border: 1px solid rgba(244, 197, 67, .45);
    border-radius: 999px;
    background: rgba(244, 197, 67, .08);
    color: var(--tb-yellow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 24px;
    color: var(--tb-white);
    font-size: clamp(48px, 7vw, 82px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 900;
}

.hero h1 span {
    color: var(--tb-yellow);
}

.hero-lead {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
}

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

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 600;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-proof span::first-letter {
    color: var(--tb-yellow);
}

.scroll-hint {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 600;
}

.scroll-arrow {
    color: var(--tb-yellow);
    font-size: 20px;
    line-height: 1;
}

/* =========================================================
   VALUE / PRIVACY INTRO
   ========================================================= */

.value-section {
    padding: 110px 0;
    background: var(--tb-white);
}

.value-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
}

.value-image {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--tb-shadow);
    background: #ddd;
}

.value-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.value-content h2 {
    font-size: clamp(38px, 4.5vw, 58px);
}

.value-content > p {
    margin-bottom: 18px;
}

.value-content > p strong {
    color: var(--tb-ink);
}

.feature-list {
    margin: 34px 0 28px;
    display: grid;
    gap: 20px;
}

.feature-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff7d9;
    color: #8a6700;
    font-size: 11px;
    font-weight: 900;
}

.feature-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.feature-item p {
    margin: 0;
    color: var(--tb-muted);
    font-size: 14px;
    line-height: 1.55;
}

.text-link {
    color: var(--tb-blue);
    font-size: 15px;
    font-weight: 800;
}

.text-link:hover {
    color: var(--tb-blue-dark);
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */

.how-section {
    padding: 110px 0;
    background:
        linear-gradient(135deg, rgba(7, 20, 44, .94), rgba(10, 18, 31, .91)),
        url('./img/howto.jpg') center / cover no-repeat;
}

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

.step-card {
    position: relative;
    min-height: 330px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--tb-radius);
    background: rgba(255, 255, 255, .075);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    color: rgba(255, 255, 255, .30);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.step-icon {
    font-size: 34px;
    margin: 34px 0 28px;
}

.step-card h3 {
    margin-bottom: 12px;
    color: var(--tb-white);
    font-size: 20px;
    font-weight: 800;
}

.step-card p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.7;
}

.section-cta {
    margin-top: 44px;
    text-align: center;
}

/* =========================================================
   PRIVACY
   ========================================================= */

.privacy-section {
    padding: 110px 0;
    background: var(--tb-light);
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: clamp(50px, 9vw, 120px);
    align-items: center;
}

.privacy-content h2 {
    font-size: clamp(38px, 4.5vw, 58px);
}

.privacy-points {
    margin-top: 30px;
    display: grid;
    gap: 14px;
}

.privacy-points div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tb-ink);
    font-size: 14px;
}

.privacy-points span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e6f5ef;
    color: var(--tb-green);
    font-weight: 900;
}

.privacy-card {
    padding: 14px;
    border-radius: 24px;
    background: #e9ebef;
    box-shadow: var(--tb-shadow);
}

.mockup-label {
    padding: 12px 12px 16px;
    color: #777f8d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.message-window {
    overflow: hidden;
    border-radius: 18px;
    background: var(--tb-white);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--tb-border);
    font-size: 13px;
    font-weight: 800;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20a36b;
}

.message-body {
    min-height: 340px;
    padding: 26px 20px;
    background: #f8f9fb;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.5;
}

.message-bubble.finder {
    margin-right: auto;
    background: var(--tb-white);
    border: 1px solid var(--tb-border);
}

.message-bubble.owner {
    margin-left: auto;
    background: #e6f0ff;
    color: #173b72;
}

.message-meta {
    margin: 2px 0 20px;
    color: #8a92a0;
    font-size: 10px;
    text-align: left;
}

/* =========================================================
   OBJECTS
   ========================================================= */

.objects-section {
    padding: 110px 0;
}

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

.object-card {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--tb-border);
    border-radius: 15px;
    background: var(--tb-white);
    box-shadow: 0 6px 22px rgba(16, 24, 40, .04);
    color: var(--tb-ink);
    font-size: 25px;
}

.object-card span {
    font-size: 15px;
    font-weight: 800;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background:
        linear-gradient(135deg, rgba(5, 11, 22, .93), rgba(11, 43, 93, .88)),
        url('./img/howto.jpg') center / cover no-repeat;
}

.final-cta-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 35%, rgba(244, 197, 67, .20), transparent 35%);
}

.final-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.final-cta .section-kicker {
    color: var(--tb-yellow);
}

.final-cta h2 {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    color: var(--tb-white);
}

.final-cta p {
    margin: 0 auto 28px;
    max-width: 600px;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.cta-note {
    display: block;
    margin-top: 14px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

/* =========================================================
   COMPATIBILITÀ CON FOOTER E CLASSI ESISTENTI
   ========================================================= */

.footer {
    background-color: #08090b;
    padding: 50px 0;
}

.grid {
    display: flex;
    max-width: 1350px;
    padding: 0 30px;
    margin: 0 auto;
}

.grid .col {
    flex-basis: 0;
    flex-grow: 1;
    width: 25%;
}

/* Classi legacy: non vengono eliminate per non rompere
   eventuali pagine che condividono questo CSS. */
.big70-text {
    font-size: 70px;
    font-weight: 900;
}

.big50-text {
    font-size: 50px;
    font-weight: 900;
}

.med-bold-text {
    font-size: 25px;
    line-height: 1.5;
    font-weight: 900;
}

.med-text {
    font-size: 25px;
    line-height: 1.6;
}

.normal-bold-text {
    font-size: 20px;
    font-weight: 900;
}

.normal-text {
    font-size: 20px;
}

.white-text {
    color: white;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .menu {
        gap: 0;
    }

    .menu a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }

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

    .value-grid,
    .privacy-grid {
        gap: 45px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .section-container,
    .hero-content {
        width: min(100% - 32px, var(--tb-max));
    }

    .header {
        min-height: 68px;
        padding: 8px 16px;
    }

    .logo img {
        width: 155px;
    }

    .hamburger {
        display: block;
    }

    /* Menu mobile: pannello a tutta larghezza sotto l'header */
    .menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: auto;
        width: 100%;
        height: calc(100dvh - 68px);
        padding: 24px 18px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        background: rgba(10, 12, 16, .98);
        border-left: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform .25s ease;
    }

    .menu.menu--open {
        transform: translateX(0);
    }

    .menu a {
        min-height: 50px;
        padding: 12px 14px;
        font-size: 15px;
    }

    .menu .nav-cta {
        margin: 10px 0 0;
        justify-content: center;
    }

    .hero {
        height: auto;
        min-height: 760px;
    }

    .hero-content {
        padding-top: 110px;
        padding-bottom: 110px;
    }

    .hero h1 {
        font-size: clamp(43px, 13vw, 66px);
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 360px;
    }

    .hero-proof {
        display: grid;
        gap: 10px;
    }

    .scroll-hint {
        display: none;
    }

    .value-section,
    .how-section,
    .privacy-section,
    .objects-section {
        padding: 75px 0;
    }

    .value-grid,
    .privacy-grid {
        grid-template-columns: 1fr;
    }

    .value-image {
        order: 2;
    }

    .value-content {
        order: 1;
    }

    .value-content h2,
    .privacy-content h2,
    .section-heading h2,
    .final-cta h2 {
        font-size: 40px;
    }

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

    .step-card {
        min-height: 0;
    }

    .objects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .object-card {
        min-height: 80px;
        padding: 17px;
        font-size: 22px;
    }

    .object-card span {
        font-size: 13px;
    }

    .final-cta {
        padding: 85px 0;
    }

    .grid {
        flex-wrap: wrap;
        padding: 50px 20px;
    }

    .grid .col {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .eyebrow {
        font-size: 9px;
        letter-spacing: .10em;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-content {
        padding-top: 105px;
    }

    .value-content h2,
    .privacy-content h2,
    .section-heading h2,
    .final-cta h2 {
        font-size: 35px;
    }

    .objects-grid {
        grid-template-columns: 1fr;
    }

    .object-card {
        min-height: 70px;
    }

    .message-body {
        min-height: 300px;
    }
}

/* =========================================================
   TAGBACK — MODERN FOOTER
   ========================================================= */

.tb-footer {
    position: relative;
    overflow: hidden;
    padding: 72px 0 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(20, 86, 192, .24), transparent 30%),
        #0b0d11;
    color: rgba(255, 255, 255, .72);
}

.tb-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tb-yellow), var(--tb-blue));
}

.tb-footer__inner {
    width: min(var(--tb-max), calc(100% - 48px));
    margin: 0 auto;
    padding-bottom: 58px;
    display: grid;
    grid-template-columns: 1.65fr .8fr 1fr 1.15fr;
    gap: 55px;
}

.tb-footer__brand {
    max-width: 390px;
}

.tb-footer__logo {
    display: inline-block;
    margin-bottom: 22px;
}

.tb-footer__logo img {
    width: 175px;
    height: auto;
}

.tb-footer__brand p,
.tb-footer__column p {
    margin: 0;
    color: rgba(255, 255, 255, .56);
    font-size: 14px;
    line-height: 1.75;
}

.tb-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tb-footer__column h3 {
    margin: 4px 0 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
}

.tb-footer__column a {
    display: inline-block;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
    line-height: 1.5;
    transition: color .2s ease, transform .2s ease;
}

.tb-footer__column a:hover {
    color: var(--tb-yellow);
    transform: translateX(2px);
}

.tb-footer__support {
    display: inline-flex !important;
    align-items: center;
    margin-top: 18px;
    padding: 10px 14px;
    border: 1px solid rgba(244, 197, 67, .55);
    border-radius: 8px;
    color: var(--tb-yellow) !important;
    font-weight: 800;
}

.tb-footer__support:hover {
    background: rgba(244, 197, 67, .10);
}

.tb-footer__social {
    display: flex;
    gap: 9px;
    margin-top: 24px;
}

.tb-footer__social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    color: rgba(255, 255, 255, .75);
    font-size: 18px;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.tb-footer__social a:hover {
    transform: none;
    background: var(--tb-yellow);
    border-color: var(--tb-yellow);
    color: #111;
}

.tb-footer__bottom {
    width: min(var(--tb-max), calc(100% - 48px));
    margin: 0 auto;
    min-height: 68px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, .40);
    font-size: 12px;
}

.tb-footer__bottom-links a {
    color: rgba(255, 255, 255, .48);
}

.tb-footer__bottom-links a:hover {
    color: var(--tb-yellow);
}

@media (max-width: 900px) {
    .tb-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 42px 35px;
    }

    .tb-footer__brand {
        max-width: 100%;
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .tb-footer {
        padding-top: 58px;
    }

    .tb-footer__inner {
        width: min(100% - 32px, var(--tb-max));
        grid-template-columns: 1fr 1fr;
        gap: 38px 24px;
        padding-bottom: 45px;
    }

    .tb-footer__brand {
        grid-column: 1 / -1;
    }

    .tb-footer__logo img {
        width: 155px;
    }

    .tb-footer__column h3 {
        margin-bottom: 16px;
    }

    .tb-footer__column a,
    .tb-footer__column p {
        font-size: 13px;
    }

    .tb-footer__bottom {
        width: min(100% - 32px, var(--tb-max));
        min-height: auto;
        padding: 18px 0 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

/* =========================================================
   AUTH / REGISTRATION SECTION
   ========================================================= */

.auth-section {
    position: relative;
    padding: 130px 0 100px;
    background:
        radial-gradient(circle at 85% 20%, rgba(20, 86, 192, .22), transparent 45%),
        radial-gradient(circle at 15% 75%, rgba(244, 197, 67, .12), transparent 40%),
        #0b0d11;
    color: var(--tb-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.auth-intro h1 {
    font-size: clamp(36px, 4.2vw, 54px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 900;
    color: var(--tb-white);
    margin-bottom: 20px;
}

.auth-intro h1 span {
    color: var(--tb-yellow);
}

.auth-lead {
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.auth-benefits {
    display: grid;
    gap: 18px;
    margin-bottom: 32px;
}

.benefit-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.benefit-item strong {
    display: block;
    color: var(--tb-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.benefit-item p {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 13.5px;
    line-height: 1.5;
}

.auth-switch-note {
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
}

.auth-switch-note a {
    color: var(--tb-yellow);
    font-weight: 700;
    margin-left: 4px;
    transition: color .2s ease;
}

.auth-switch-note a:hover {
    color: #ffd65e;
    text-decoration: underline;
}

/* AUTH CARD */
.auth-card-wrapper {
    width: 100%;
}

.auth-card {
    background: rgba(18, 22, 29, .82);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--tb-radius);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auth-card-header {
    margin-bottom: 24px;
}

.auth-card-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--tb-white);
    margin-bottom: 6px;
    letter-spacing: -.02em;
}

.auth-card-header p {
    color: rgba(255, 255, 255, .60);
    font-size: 14px;
    margin: 0;
}

/* SOCIAL BUTTONS */
.social-auth-group {
    margin-bottom: 20px;
}

.social-auth-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .50);
    margin-bottom: 10px;
}

.social-auth-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: var(--tb-white);
    text-decoration: none;
}

.btn-social i {
    font-size: 17px;
    line-height: 1;
}

.btn-social:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .30);
    color: #fff;
}

.btn-social.btn-google:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: #fff;
}

.btn-social.btn-apple:hover {
    background: #000;
    border-color: #444;
    color: #fff;
}

.btn-social.btn-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

/* DIVIDER */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, .40);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .12);
}

.auth-divider span {
    padding: 0 12px;
}

/* CUSTOM FORM INPUTS */
.form-group {
    margin-bottom: 16px;
}

.form-label-tag {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .90);
    letter-spacing: .01em;
}

.form-label-tag .optional-tag {
    font-weight: 400;
    color: rgba(255, 255, 255, .50);
    font-size: 12px;
}

.auth-forgot-link {
    color: var(--tb-yellow);
    font-size: 12.5px;
    font-weight: 600;
    transition: color .2s ease;
    text-decoration: none;
}

.auth-forgot-link:hover {
    color: #ffd65e;
    text-decoration: underline;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, .45);
    font-size: 17px;
    pointer-events: none;
}

.form-control-tag {
    width: 100%;
    height: 50px;
    padding: 12px 16px 12px 42px;
    background: rgba(10, 13, 18, .60);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    outline: none;
}

.form-control-tag:focus {
    border-color: var(--tb-yellow);
    box-shadow: 0 0 0 3px rgba(244, 197, 67, .25);
    background: rgba(10, 13, 18, .85);
    color: #fff;
}

.form-control-tag::placeholder {
    color: rgba(255, 255, 255, .32);
}

.form-control-tag.is-readonly {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .10);
    color: var(--tb-yellow);
    font-weight: 700;
    cursor: default;
}

.password-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.4;
}

.password-hint i {
    color: var(--tb-yellow);
    margin-top: 1px;
    flex: 0 0 auto;
}

.form-checkboxes {
    margin-top: 18px;
    margin-bottom: 20px;
    display: grid;
    gap: 10px;
}

.form-check-custom {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-custom input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .30);
    background: rgba(255, 255, 255, .10);
    accent-color: var(--tb-yellow);
    cursor: pointer;
    flex: 0 0 17px;
}

.form-check-custom label {
    color: rgba(255, 255, 255, .72);
    font-size: 12.5px;
    line-height: 1.45;
    cursor: pointer;
}

.form-check-custom label a {
    color: var(--tb-yellow);
    text-decoration: underline;
}

.form-check-custom label a:hover {
    color: #ffd65e;
}

.captcha-wrapper {
    margin: 18px 0;
    min-height: 78px;
    display: flex;
    justify-content: flex-start;
}

/* PRICING SECTION */
.pricing-section {
    padding: 110px 0;
    background: var(--tb-light);
}

.pricing-grid {
    display: grid;
    /* Griglia a 2 elementi */
    grid-template-columns: repeat(2, minmax(0, 480px));
    /* Griglia a 3 elementi */
    /*grid-template-columns: repeat(3, minmax(0, 480px));*/
    gap: 28px;
    justify-content: center;
    margin-top: 50px;
}

.pricing-card {
    position: relative;
    border-radius: var(--tb-radius);
    padding: 38px 32px;
    background: var(--tb-white);
    border: 1px solid var(--tb-border);
    box-shadow: var(--tb-shadow);
    display: flex;
    flex-direction: column;
}

.pricing-card.pricing-featured {
    border: 2px solid var(--tb-yellow);
    box-shadow: 0 20px 50px rgba(244, 197, 67, .16);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 32px;
    background: var(--tb-yellow);
    color: #111;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.pricing-badge.alt {
    background: var(--tb-blue);
    color: #fff;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--tb-ink);
    margin-bottom: 6px;
}

.pricing-desc {
    color: var(--tb-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pricing-cost {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tb-border);
}

.price-val {
    font-size: 42px;
    font-weight: 900;
    color: var(--tb-ink);
    line-height: 1;
    letter-spacing: -.03em;
}

.price-period {
    color: var(--tb-muted);
    font-size: 14px;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 13px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tb-ink);
    font-size: 14px;
    line-height: 1.5;
}

.pricing-features .check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e6f5ef;
    color: var(--tb-green);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 22px;
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta .btn-secondary-tag {
    background: var(--tb-ink);
    color: #fff;
    border-color: var(--tb-ink);
}

.pricing-cta .btn-secondary-tag:hover {
    background: #2a313d;
    color: #fff;
}

/* RESPONSIVE AUTH & PRICING */
@media (max-width: 991px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .auth-intro {
        text-align: center;
    }

    .auth-benefits {
        text-align: left;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .auth-section {
        padding: 100px 0 60px;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .social-auth-buttons {
        grid-template-columns: 1fr;
    }

    .pricing-section {
        padding: 70px 0;
    }
}

/* =========================================================
   DASHBOARD & INTERNAL PAGES
   ========================================================= */

.dashboard-page {
    background: #0b0d11;
    min-height: 100vh;
    padding-top: 96px;
    padding-bottom: 80px;
    color: var(--tb-white);
}

.dash-container {
    width: min(var(--tb-max), calc(100% - 40px));
    margin: 0 auto;
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px 24px;
    background: rgba(18, 22, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--tb-radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dash-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tb-yellow);
    color: #111;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.dash-user-meta h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 2px;
    color: var(--tb-white);
}

.dash-user-meta span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.60);
}

.dash-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-card {
    background: rgba(18, 22, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--tb-radius);
    padding: clamp(20px, 3vw, 28px);
    margin-bottom: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--tb-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-card-title i {
    color: var(--tb-yellow);
    font-size: 20px;
}

.dash-table {
    width: 100%;
    color: rgba(255, 255, 255, 0.88);
    border-collapse: separate;
    border-spacing: 0;
}

.dash-table th {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.dash-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.dash-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.qr-thumb-box {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    padding: 4px;
    background: #fff;
    display: grid;
    place-items: center;
}

.qr-thumb-box img {
    max-width: 100%;
    height: auto;
}

/* MESSAGE INBOX & CHAT SYSTEM */
.inbox-list {
    display: grid;
    gap: 12px;
}

.inbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.inbox-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--tb-yellow);
    transform: translateY(-2px);
}

.inbox-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.inbox-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(244, 197, 67, 0.15);
    color: var(--tb-yellow);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.inbox-item-text {
    min-width: 0;
}

.inbox-item-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--tb-white);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inbox-item-preview {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.inbox-item-meta {
    text-align: right;
    flex-shrink: 0;
}

.inbox-item-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.50);
    display: block;
    margin-bottom: 6px;
}

/* CHAT MODAL / SECTION */
.chat-window-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.chat-window-modal.is-open {
    display: flex;
}

.chat-box-card {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #12161d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.60);
    overflow: hidden;
}

.chat-box-header {
    padding: 18px 22px;
    background: #171c25;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-box-info h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 3px;
    color: #fff;
}

.chat-box-info span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.60);
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.chat-body-stream {
    padding: 22px;
    overflow-y: auto;
    flex-grow: 1;
    background: #0d1016;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble-finder {
    align-self: flex-start;
    max-width: 85%;
    padding: 14px 18px;
    background: #1f2633;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px 16px 16px 4px;
    color: #fff;
    font-size: 14px;
    line-height: 1.55;
}

.chat-bubble-owner {
    align-self: flex-end;
    max-width: 85%;
    padding: 14px 18px;
    background: #1456c0;
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    font-size: 14px;
    line-height: 1.55;
}

.chat-bubble-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.50);
    margin-top: 6px;
    display: block;
}

.chat-quick-actions {
    padding: 14px 22px;
    background: #161a22;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chat-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.chat-quick-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateY(-1px);
}

.chat-quick-btn.btn-whatsapp {
    background: #25d366;
    color: #111;
    border-color: #25d366;
}

.chat-quick-btn.btn-call {
    background: var(--tb-blue);
    color: #fff;
    border-color: var(--tb-blue);
}

.chat-box-footer {
    padding: 16px 22px;
    background: #12161d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* =========================================================
   TAGBACK — CONVERSATIONS / PRIVATE CHAT V2
   ========================================================= */

.conversations-header {
    align-items: flex-start;
    gap: 20px;
}

.conversation-intro {
    margin: 8px 0 0;
    /* max-width: 720px; */
    color: rgba(255, 255, 255, .58);
    font-size: 13.5px;
    line-height: 1.65;
}

.conversation-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
}

.conversation-total-badge.has-unread {
    border-color: rgba(244,197,67,.45);
    background: rgba(244,197,67,.12);
    color: var(--tb-yellow);
}

.conversation-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tb-yellow);
}

.conversation-list {
    display: grid;
    gap: 10px;
}

.conversation-loading {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,.48);
    font-size: 13px;
}

.conversation-item {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}

.conversation-item:hover {
    transform: translateY(-1px);
    border-color: rgba(244,197,67,.35);
    background: rgba(255,255,255,.055);
}

.conversation-item.is-unread {
    border-color: rgba(244,197,67,.38);
    background:
        linear-gradient(90deg, rgba(244,197,67,.08), transparent 40%),
        rgba(255,255,255,.045);
}

.conversation-open-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    text-align: left;
    cursor: pointer;
}

.conversation-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(244,197,67,.12);
    color: var(--tb-yellow);
    font-size: 18px;
}

.conversation-main {
    min-width: 0;
    display: block;
}

.conversation-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 3px;
}

.conversation-title-row strong {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.conversation-finder-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.45);
    font-size: 11.5px;
}

.conversation-preview {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,.65);
    font-size: 13px;
}

.conversation-unread-badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--tb-yellow);
    color: #111;
    font-size: 10px;
    font-weight: 900;
}

.conversation-legacy-badge {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.45);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: rgba(255,255,255,.42);
    font-size: 11.5px;
}

.conversation-open-label {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
}

.conversation-empty-state {
    min-height: 180px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255,255,255,.45);
}

.conversation-empty-state > i {
    margin-bottom: 12px;
    font-size: 34px;
    color: rgba(244,197,67,.55);
}

.conversation-empty-state strong {
    margin-bottom: 5px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
}

.conversation-empty-state span {
    max-width: 460px;
    font-size: 12.5px;
    line-height: 1.6;
}

.conversation-error-state > i {
    color: #ff6b7a;
}

/* OWNER CHAT MODAL */
.chat-box-card-v2 {
    max-width: 760px;
    max-height: min(820px, calc(100vh - 40px));
    display: grid;
    grid-template-rows: auto minmax(260px, 1fr) auto auto;
}

.chat-private-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--tb-yellow);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.chat-owner-stream,
.finder-stream {
    min-height: 320px;
    max-height: 480px;
    overflow-y: auto;
    padding: 22px;
    background: rgba(0,0,0,.20);
    scroll-behavior: smooth;
}

.chat-message-row {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

.chat-message-owner {
    justify-content: flex-end;
}

.chat-message-finder {
    justify-content: flex-start;
}

.chat-message-bubble {
    max-width: min(78%, 560px);
    padding: 11px 13px 9px;
    border-radius: 16px;
    color: #fff;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.chat-message-owner .chat-message-bubble {
    border-bottom-right-radius: 5px;
    background: #174b97;
}

.chat-message-finder .chat-message-bubble {
    border: 1px solid rgba(255,255,255,.09);
    border-bottom-left-radius: 5px;
    background: #222833;
}

.chat-message-author {
    display: block;
    margin-bottom: 4px;
    color: var(--tb-yellow);
    font-size: 10px;
    font-weight: 800;
}

.chat-message-bubble time {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.48);
    font-size: 9.5px;
    text-align: right;
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(14,17,23,.96);
}

.chat-composer textarea {
    width: 100%;
    min-height: 48px;
    max-height: 130px;
    resize: vertical;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    outline: none;
    background: rgba(255,255,255,.055);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    line-height: 1.5;
}

.chat-composer textarea:focus {
    border-color: rgba(244,197,67,.7);
    box-shadow: 0 0 0 3px rgba(244,197,67,.08);
}

.chat-composer textarea::placeholder {
    color: rgba(255,255,255,.35);
}

.chat-send-button {
    min-width: 92px;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    background: var(--tb-yellow);
    color: #111;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
}

.chat-send-button:hover {
    background: #ffd65e;
}

.chat-send-button:disabled {
    opacity: .55;
    cursor: wait;
}

.chat-footer-v2 {
    gap: 18px;
}

.chat-privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: rgba(255,255,255,.45);
    font-size: 11.5px;
    line-height: 1.45;
}

.chat-delete-conversation {
    flex: 0 0 auto;
    background: rgba(220,53,69,.12);
    color: #ff7785;
    border: 1px solid rgba(220,53,69,.28);
}

.chat-delete-conversation:hover {
    background: rgba(220,53,69,.20);
    color: #ff8d98;
}

/* FINDER CHAT */
.finder-chat-page {
    padding-bottom: 0;
}

.finder-chat-container {
    padding-bottom: 90px;
}

.finder-chat-shell {
    width: min(780px, 100%);
    margin: 0 auto;
}

.finder-chat-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
}

.finder-chat-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(244,197,67,.12);
    border: 1px solid rgba(244,197,67,.22);
    color: var(--tb-yellow);
    font-size: 25px;
}

.finder-chat-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--tb-yellow);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.finder-chat-heading h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: -.035em;
}

.finder-chat-heading p {
    margin: 0;
    color: rgba(255,255,255,.60);
    font-size: 14px;
    line-height: 1.65;
}

.finder-chat-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 20px;
    background: rgba(18,22,29,.92);
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

.finder-chat-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(244,197,67,.06);
    color: rgba(255,255,255,.58);
    font-size: 11.5px;
    line-height: 1.55;
}

.finder-chat-privacy i {
    color: var(--tb-yellow);
    margin-top: 1px;
}

.finder-chat-note {
    margin: 14px 4px 0;
    color: rgba(255,255,255,.38);
    font-size: 11.5px;
    line-height: 1.55;
}

.finder-chat-note i {
    margin-right: 4px;
}

@media (max-width: 700px) {
    .conversations-header {
        flex-direction: column;
    }

    .conversation-open-button {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
    }

    .conversation-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 16px;
    }

    .conversation-meta {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .conversation-preview {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .chat-box-card-v2 {
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .chat-owner-stream,
    .finder-stream {
        min-height: 280px;
        max-height: 52vh;
        padding: 14px;
    }

    .chat-message-bubble {
        max-width: 88%;
    }

    .chat-composer {
        grid-template-columns: 1fr;
    }

    .chat-send-button {
        width: 100%;
    }

    .chat-footer-v2 {
        align-items: stretch;
        flex-direction: column;
    }

    .chat-delete-conversation {
        width: 100%;
    }

    .finder-chat-heading {
        grid-template-columns: 1fr;
    }

    .finder-chat-icon {
        width: 48px;
        height: 48px;
    }
}
