/* Explain: Styles for various UI components including buttons, cards, and input fields. */
.btn-primary {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--urgent-color);
    color: var(--navy-color);
    padding: 0.9rem 1.5rem;
    border-radius: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid var(--urgent-color);
    box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--urgent-color) 70%, transparent);
}

.btn-primary:hover {
    background: var(--urgent-hover);
    border-color: var(--urgent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--white-color);
    color: var(--navy-color);
    padding: 0.85rem 1.4rem;
    border-radius: 0.7rem;
    border: 2px solid var(--navy-color);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--navy-color);
    color: var(--white-color);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--urgent-color);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--urgent-color);
}

.utility-card {
    background: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--urgent-color) 30%, var(--border-color));
    border-radius: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 18px 40px -34px color-mix(in srgb, var(--navy-color) 40%, transparent);
}

.utility-card:hover {
    transform: translateY(-4px);
    border-color: var(--urgent-color);
    box-shadow: 0 22px 44px -28px color-mix(in srgb, var(--navy-color) 60%, transparent);
}

.alert-strip {
    border-left: 5px solid var(--urgent-color);
    background: color-mix(in srgb, var(--urgent-color) 9%, var(--white-color));
}

.field-input {
    width: 100%;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 0.7rem;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    color: var(--text-color);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder {
    color: color-mix(in srgb, var(--text-muted) 70%, transparent);
}

.field-input:focus {
    outline: none;
    border-color: var(--navy-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy-color) 16%, transparent);
}

.carousel-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--navy-color) 35%, var(--white-color));
    transition: all 0.25s ease;
    cursor: pointer;
}

.carousel-dot.is-active {
    width: 2.25rem;
    background: var(--urgent-color);
}

.map-pin {
    position: absolute;
    display: flex;
    min-width: 92px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: var(--white-color);
    color: var(--navy-color);
    padding: 0.45rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 14px 30px -20px color-mix(in srgb, var(--navy-color) 75%, transparent);
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: inline-flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

.brand-wordmark {
    font-family: 'Bahnschrift Light SemiCondensed', 'Bahnschrift', 'Segoe UI', 'Inter', sans-serif;
    font-weight: 700;
    font-stretch: semi-condensed;
    font-size: 33px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.brand-wordmark .brand-red {
    color: var(--brand-red);
}

.brand-wordmark .brand-teal {
    color: var(--brand-teal);
}

@media (max-width: 1439px) {
    .brand-wordmark {
        font-size: 20px;
    }
}

@media (max-width: 639px) {
    .brand-wordmark {
        font-size: 14px;
        letter-spacing: 0;
    }
}

@media (max-width: 359px) {
    .brand-wordmark {
        font-size: 12px;
    }
}

@keyframes helpTimerBar {
    from { width: 100%; }
    to { width: 0%; }
}

.help-timer-bar {
    animation: helpTimerBar 5s linear forwards;
}

/* ------------------------------------------------------------------
   Create Account card — Vibrant Purple
   A bold gradient card used only inside the registration modal: a
   violet gradient surface, white text, soft rounded type and strong
   weights so the first sign-up step reads clearly.
------------------------------------------------------------------ */
.reg-card {
    position: relative;
    background: linear-gradient(135deg, var(--reg-violet-deep) 0%, var(--reg-violet) 52%, var(--reg-violet-bright) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.5rem;
    box-shadow: 0 30px 58px -28px rgba(76, 29, 149, 0.75);
    color: var(--white-color);
    font-family: 'Nunito', 'Inter', sans-serif;
}

.reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, #F0ABFC 35%, #FFFFFF 60%, rgba(255, 255, 255, 0.12) 100%);
}

.reg-card__head {
    border-bottom: 1px solid var(--reg-line-soft);
}

.reg-card__title {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: -0.015em;
    color: var(--white-color);
}

.reg-card__sub {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 800;
}

.reg-label {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white-color);
}

.reg-label--muted {
    color: rgba(255, 255, 255, 0.82);
}

.reg-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.7rem;
    padding: 0.5rem 0.7rem;
    font-family: 'Nunito', 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--white-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.reg-input::placeholder {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
}

.reg-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white-color);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.reg-check {
    display: flex;
    height: 1.2rem;
    width: 1.2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.12);
    color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reg-check:hover {
    border-color: var(--white-color);
    background: rgba(255, 255, 255, 0.24);
}

.reg-btn {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Nunito', 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.reg-btn:disabled {
    cursor: not-allowed;
}

.reg-btn.is-ready {
    background: #FFFFFF;
    color: var(--reg-violet-deep);
    box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.55);
}

.reg-btn.is-ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px -14px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------
   Poster-style profile card (search results)
   Mirrors the printed profile poster: cream card with a framed
   portrait, maroon and gold ribbons, a navy serif name, colour-coded
   detail rows and four solid action buttons.
------------------------------------------------------------------ */
.poster-results {
    display: grid;
    gap: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem;
}

.poster-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 3px solid var(--poster-frame);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, var(--poster-cream-light) 0%, var(--poster-cream) 100%);
    box-shadow: 0 26px 50px -36px rgba(110, 18, 38, 0.5);
}

.poster-body {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 0.95rem;
}

/* Brand band heading every poster card, over the Nilgiri tea-country view. */
.poster-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem 0.95rem;
    background-color: #cfe4ef;
    background-image: linear-gradient(rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.62) 100%), url('https://files.cdn-files-a.com/admin/system_photos_stock/normal_6af8d25b3cbd1.jpg?ratio=16:9&format=avif');
    background-size: cover;
    background-position: center 42%;
    text-align: center;
}

.poster-brand__emblem {
    flex-shrink: 0;
    height: clamp(2.6rem, 9vw, 3.4rem);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.poster-brand__text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poster-brand__name {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Playfair Display', 'Fraunces', serif;
    font-weight: 700;
    line-height: 1.02;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.7);
}

.poster-brand__red {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    color: var(--poster-brand-red);
}

.poster-brand__green {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    color: var(--poster-brand-green);
}

.poster-brand__tag {
    margin-top: 0.2rem;
    font-family: 'Playfair Display', 'Fraunces', serif;
    font-size: clamp(0.72rem, 3vw, 0.9rem);
    font-weight: 700;
    font-style: italic;
    color: var(--poster-navy);
}

.poster-about {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poster-grid {
    display: grid;
    gap: 0.9rem;
}

.poster-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 5px solid var(--white-color);
    border-radius: 1.25rem;
    background: var(--steel-color);
    box-shadow: 0 16px 32px -24px rgba(0, 0, 0, 0.6);
}

.poster-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-verified {
    position: absolute;
    left: 0;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 92%;
    padding: 0.4rem 0.8rem 0.4rem 0.5rem;
    border-top: 2px solid var(--poster-gold);
    border-right: 2px solid var(--poster-gold);
    border-bottom: 2px solid var(--poster-gold);
    border-radius: 0 0.9rem 0.9rem 0;
    background: linear-gradient(90deg, var(--poster-maroon) 0%, var(--poster-maroon-deep) 100%);
    color: var(--white-color);
    box-shadow: 0 14px 24px -18px rgba(0, 0, 0, 0.85);
}

.poster-verified-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.1rem;
    width: 2.1rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--white-color);
    color: var(--poster-maroon);
    font-size: 0.9rem;
}

.poster-verified-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
}

.poster-verified-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.55rem;
    width: 1.55rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--poster-gold);
    color: var(--poster-maroon-deep);
    font-size: 0.72rem;
}

.poster-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding-top: 0.2rem;
}

.poster-ribbon {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.7rem;
}

.poster-ribbon-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(223, 175, 51, 0) 0%, var(--poster-gold) 100%);
}

.poster-ribbon-line:last-child {
    background: linear-gradient(90deg, var(--poster-gold) 0%, rgba(223, 175, 51, 0) 100%);
}

.poster-ribbon-label {
    display: inline-block;
    padding: 3px;
    background: var(--poster-gold);
    clip-path: polygon(0 50%, 1rem 0, calc(100% - 1rem) 0, 100% 50%, calc(100% - 1rem) 100%, 1rem 100%);
}

.poster-ribbon-label__inner {
    display: block;
    padding: 0.45rem 2rem;
    background: linear-gradient(180deg, var(--poster-maroon) 0%, var(--poster-maroon-deep) 100%);
    clip-path: polygon(0 50%, 0.95rem 0, calc(100% - 0.95rem) 0, 100% 50%, calc(100% - 0.95rem) 100%, 0.95rem 100%);
    color: var(--white-color);
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.95rem, 2.6vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.poster-heart {
    display: flex;
    width: 62%;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
    color: var(--poster-maroon);
    font-size: 0.8rem;
}

.poster-heart span {
    flex: 1;
    height: 1px;
    background: var(--poster-gold);
}

.poster-name {
    margin-top: 0.4rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 5.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--poster-navy);
    text-align: center;
    overflow-wrap: anywhere;
}

.poster-id-pill {
    margin-top: 0.65rem;
    padding: 0.4rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--poster-pink-light) 0%, var(--poster-pink) 100%);
    color: var(--poster-navy);
    font-size: clamp(0.85rem, 2.4vw, 1.05rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
}

.poster-rows {
    display: grid;
    width: 100%;
    gap: 0.6rem;
    margin-top: 0.95rem;
}

.poster-row {
    display: grid;
    grid-template-columns: 1.75rem auto 0.6rem minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
    min-height: 2rem;
    color: var(--poster-navy);
    font-size: clamp(0.85rem, 2.3vw, 1.1rem);
    font-weight: 700;
}

/* Every poster card prints the same detail lines, so all cards keep one
   identical height and the values always sit in the same column. */
.poster-rows {
    grid-auto-rows: minmax(2rem, auto);
}

.poster-row i {
    font-size: clamp(0.95rem, 2.6vw, 1.2rem);
    text-align: center;
}

.poster-row-label {
    white-space: nowrap;
    font-size: 2.9mm;
    font-weight: 600;
    letter-spacing: 0.015em;
    color: rgba(22, 48, 107, 0.75);
}

.poster-row-colon {
    font-weight: 800;
    text-align: center;
}

.poster-row-value {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.poster-ico-maroon { color: var(--poster-icon-maroon); }
.poster-ico-blue { color: var(--poster-icon-blue); }
.poster-ico-green { color: var(--poster-icon-green); }
.poster-ico-red { color: var(--poster-icon-red); }

.poster-about-pill {
    margin-top: 1rem;
    padding: 0.3rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--poster-gold-light) 0%, var(--poster-gold) 100%);
    color: var(--poster-navy);
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 2.4vw, 1.05rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 20px -16px rgba(0, 0, 0, 0.7);
}

.poster-about-text {
    margin-top: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.9rem, 2.4vw, 1.1rem);
    font-style: italic;
    font-weight: 600;
    color: var(--poster-navy);
    text-align: center;
}

.poster-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding-top: 0.95rem;
    border-top: 2px solid var(--poster-frame);
}

.poster-btn {
    display: flex;
    min-height: 3.4rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.85rem;
    color: var(--white-color);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 22px -16px rgba(0, 0, 0, 0.8);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.poster-btn i {
    flex-shrink: 0;
    font-size: 1.15rem;
}

.poster-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.poster-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.poster-btn-view { background: linear-gradient(180deg, var(--poster-green) 0%, var(--poster-green-dark) 100%); }
.poster-btn-interest { background: linear-gradient(180deg, var(--poster-maroon) 0%, var(--poster-maroon-deep) 100%); }
.poster-btn-shortlist { background: linear-gradient(180deg, var(--poster-leaf) 0%, var(--poster-leaf-dark) 100%); }
.poster-btn-shortlisted { background: linear-gradient(180deg, var(--poster-maroon-deep) 0%, #4E0B1A 100%); }
.poster-btn-whatsapp { background: linear-gradient(180deg, var(--poster-blue-light) 0%, var(--poster-blue) 100%); }

/* Request button after the owner declined, and after two declines (locked). */
.poster-btn-declined { background: linear-gradient(180deg, #EF4444 0%, #991B1B 100%); }
.poster-btn-locked { background: linear-gradient(180deg, #94A3B8 0%, #475569 100%); }

.poster-banner {
    padding: 1rem 1.5rem 1.1rem;
    background: linear-gradient(90deg, var(--poster-maroon-deep) 0%, var(--poster-maroon) 50%, var(--poster-maroon-deep) 100%);
    text-align: center;
}

.poster-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 4vw, 1.9rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.15;
    color: var(--poster-cream-light);
}

.poster-banner-url {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    color: var(--white-color);
    font-size: clamp(0.85rem, 3vw, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

@media (min-width: 640px) {
    .poster-grid {
        grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
        gap: 1.15rem;
    }

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

@media (max-width: 420px) {
    .poster-row {
        grid-template-columns: 1.5rem auto 0.5rem minmax(0, 1fr);
        gap: 0.35rem;
        min-height: 1.85rem;
        font-size: 0.9rem;
    }

    .poster-ribbon-label__inner {
        padding: 0.4rem 1.4rem;
    }
}

/* ------------------------------------------------------------------
   Compact poster card — exactly 55 mm wide by 80 mm tall
   (visiting-card size). The same poster design, the same ten detail
   lines and the same four action buttons, redrawn at the small
   physical size: tighter spacing, smaller type, and long values wrap
   to at most two lines so every card keeps the identical size on
   phones, on desktop and in print.
------------------------------------------------------------------ */
.poster-results {
    grid-template-columns: repeat(auto-fill, 70mm);
    justify-content: center;
    gap: 8mm 6mm;
    max-width: 100%;
}

.poster-card {
    width: 70mm;
    height: 80mm;
    min-height: 80mm;
    max-height: 80mm;
    overflow: hidden;
    border-width: 0.6mm;
    border-radius: 2.5mm;
    /* Nilgiris mountain view behind a soft ivory veil, so the detail lines
       stay fully readable while the hills remain visible on every card. */
    background-color: var(--poster-cream);
    background-image:
        linear-gradient(180deg, rgba(255, 253, 246, 0.9) 0%, rgba(255, 250, 240, 0.84) 45%, rgba(251, 241, 222, 0.88) 100%),
        url('https://files.cdn-files-a.com/uploads/12344174/normal_un-6b0812bbd8c74.jpg?ratio=9:16&format=avif');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    box-shadow: 0 3mm 6mm -4mm rgba(110, 18, 38, 0.5);
    font-family: 'Barlow Semi Condensed', 'Inter', 'Noto Sans Tamil', sans-serif;
    font-weight: 500;
    letter-spacing: 0.005em;
}

.poster-brand {
    flex-shrink: 0;
    gap: 0.8mm;
    padding: 1mm 1.8mm 0.9mm;
    background-position: center 40%;
}

.poster-brand__emblem {
    height: 3.6mm;
    filter: drop-shadow(0 0.4mm 0.6mm rgba(0, 0, 0, 0.22));
}

.poster-brand__name {
    flex-direction: row;
    align-items: baseline;
    gap: 0.9mm;
    font-family: 'Barlow Semi Condensed', 'Inter', 'Noto Sans Tamil', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.poster-brand__red,
.poster-brand__green {
    font-size: 3.7mm;
    line-height: 1.03;
}

.poster-brand__tag {
    margin-top: 0.1mm;
    font-family: 'Barlow Semi Condensed', 'Inter', 'Noto Sans Tamil', sans-serif;
    font-size: 2.2mm;
    font-style: normal;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.poster-body {
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.8mm;
    padding: 1.2mm;
}

.poster-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: 20mm minmax(0, 1fr);
    gap: 1.5mm;
    align-items: stretch;
}

.poster-photo-wrap {
    align-self: start;
    border-width: 0.9mm;
    border-radius: 1.6mm;
    box-shadow: 0 1.8mm 3.4mm -2.4mm rgba(0, 0, 0, 0.6);
}

.poster-verified {
    bottom: 1.4mm;
    gap: 0.4mm;
    padding: 0.35mm 0.9mm 0.35mm 0.35mm;
    border-width: 0 0.35mm 0.35mm 0;
    border-radius: 0 1.4mm 1.4mm 0;
    box-shadow: 0 1mm 2mm -1.6mm rgba(0, 0, 0, 0.85);
}

.poster-verified-heart {
    height: 3mm;
    width: 3mm;
    font-size: 1.5mm;
}

.poster-verified-text {
    font-size: 2.15mm;
    font-weight: 800;
}

.poster-verified-seal {
    height: 2.4mm;
    width: 2.4mm;
    font-size: 1.2mm;
}

.poster-details {
    height: 100%;
    min-height: 0;
    padding-top: 0;
}

.poster-ribbon {
    gap: 0.7mm;
}

.poster-ribbon-line {
    height: 0.3mm;
}

.poster-ribbon-label {
    padding: 0.35mm;
    clip-path: polygon(0 50%, 1mm 0, calc(100% - 1mm) 0, 100% 50%, calc(100% - 1mm) 100%, 1mm 100%);
}

.poster-ribbon-label__inner {
    padding: 0.45mm 1.8mm;
    font-family: 'Barlow Semi Condensed', 'Inter', 'Noto Sans Tamil', sans-serif;
    font-size: 3.4mm;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.03em;
    clip-path: polygon(0 50%, 0.9mm 0, calc(100% - 0.9mm) 0, 100% 50%, calc(100% - 0.9mm) 100%, 0.9mm 100%);
}

.poster-heart {
    width: 55%;
    gap: 0.4mm;
    margin-top: 0.2mm;
    font-size: 1.4mm;
}

.poster-name {
    margin-top: 0.3mm;
    font-family: 'Barlow Semi Condensed', 'Inter', 'Noto Sans Tamil', sans-serif;
    font-size: 5.4mm;
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: 0.01em;
}

.poster-id-pill {
    margin-top: 0.4mm;
    padding: 0.3mm 1.5mm;
    font-family: 'Barlow Semi Condensed', 'Inter', 'Noto Sans Tamil', sans-serif;
    font-size: 3.2mm;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    border-radius: 2.2mm;
}

.poster-rows {
    flex: 1 1 auto;
    min-height: 0;
    align-content: stretch;
    gap: 0.4mm;
    margin-top: 0.5mm;
    overflow: hidden;
    grid-auto-rows: minmax(4.1mm, 1fr);
    grid-template-rows: repeat(8, minmax(4.1mm, 1fr));
}

.poster-row {
    grid-template-columns: 3.2mm 13mm 0.6mm minmax(0, 1fr);
    gap: 0.4mm;
    min-height: 4.1mm;
    font-size: 3.4mm;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.005em;
    align-items: center;
    overflow: hidden;
}

.poster-row i {
    font-size: 3.2mm;
}

/* Labels sit on one fixed narrow column, so every colon lines up in a
   straight vertical line and all values start at the same place. */
.poster-row-label {
    font-size: 2.5mm;
    letter-spacing: 0;
    line-height: 1;
    overflow: hidden;
}

.poster-row-value {
    display: block;
    min-width: 0;
    padding-left: 2mm;
    font-size: 3.4mm;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.005em;
    color: var(--poster-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-about {
    flex-shrink: 0;
    margin-top: 0.4mm;
}

.poster-about-pill {
    margin-top: 0.4mm;
    padding: 0.2mm 1.2mm;
    font-size: 1.95mm;
    box-shadow: 0 1mm 2mm -1.6mm rgba(0, 0, 0, 0.7);
}

.poster-about-text {
    margin-top: 0.3mm;
    font-size: 1.9mm;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster-actions {
    flex-shrink: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7mm;
    margin-top: auto;
    padding-top: 0.8mm;
    border-top-width: 0.5mm;
}

.poster-btn {
    min-height: 7.2mm;
    gap: 0.6mm;
    padding: 0.6mm 0.6mm;
    border-width: 0.3mm;
    border-radius: 1.3mm;
    font-family: 'Barlow Semi Condensed', 'Inter', 'Noto Sans Tamil', sans-serif;
    font-size: 3.1mm;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.015em;
    text-align: center;
    box-shadow: 0 1.2mm 2.4mm -1.4mm rgba(0, 0, 0, 0.75);
}

.poster-btn i {
    font-size: 3.1mm;
}

.poster-banner {
    padding: 0.8mm 1.5mm 1mm;
}

.poster-banner-title {
    font-size: 2mm;
    line-height: 1.1;
}

.poster-banner-url {
    gap: 0.5mm;
    margin-top: 0.2mm;
    font-size: 1.65mm;
}

/* ------------------------------------------------------------------
   Large poster cards — 80 mm × 100 mm
   The same poster design used on the search page, scaled up for the
   "My Matches" grid. Every element keeps the identical proportions of
   the smaller card, only the physical size grows.
------------------------------------------------------------------ */
.poster-results--lg {
    grid-template-columns: repeat(auto-fill, 80mm);
    justify-content: center;
    gap: 9mm 7mm;
    max-width: 100%;
}

.poster-results--lg .poster-card {
    position: relative;
    width: 80mm;
    height: 100mm;
    min-height: 100mm;
    max-height: 100mm;
    border-width: 0.7mm;
    border-radius: 2.9mm;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-results--lg .poster-card:hover {
    transform: translateY(-1.5mm);
}

.poster-results--lg .poster-card--perfect {
    border-color: var(--poster-gold);
    border-width: 1mm;
    box-shadow: 0 3mm 8mm -4mm rgba(223, 175, 51, 0.75);
}

.poster-results--lg .poster-card--perfect .poster-ribbon-label__inner {
    background: linear-gradient(180deg, var(--poster-gold) 0%, #B8860B 100%);
    color: var(--poster-navy);
}

.poster-results--lg .poster-body {
    gap: 0.9mm;
    padding: 1.4mm;
}

.poster-results--lg .poster-grid {
    grid-template-columns: 23mm minmax(0, 1fr);
    gap: 1.7mm;
}

.poster-results--lg .poster-photo-wrap {
    border-width: 1mm;
    border-radius: 1.8mm;
}

.poster-results--lg .poster-photo-col {
    display: flex;
    flex-direction: column;
    gap: 0.8mm;
    min-width: 0;
}

.poster-results--lg .poster-verified {
    position: static;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: 0.45mm;
    padding: 0.45mm 0.7mm;
    border: 0.3mm solid var(--poster-gold);
    border-radius: 1.4mm;
    background: linear-gradient(90deg, var(--poster-maroon) 0%, var(--poster-maroon-deep) 100%);
    box-shadow: 0 0.6mm 1.4mm -0.8mm rgba(0, 0, 0, 0.85);
}

.poster-results--lg .poster-verified-heart {
    height: 3.4mm;
    width: 3.4mm;
    font-size: 1.7mm;
}

.poster-results--lg .poster-verified-text {
    font-size: 2.45mm;
}

.poster-results--lg .poster-verified-seal {
    height: 2.7mm;
    width: 2.7mm;
    font-size: 1.35mm;
}

.poster-results--lg .poster-ribbon {
    gap: 0.8mm;
}

.poster-results--lg .poster-ribbon-line {
    height: 0.35mm;
}

.poster-results--lg .poster-ribbon-label {
    padding: 0.4mm;
}

.poster-results--lg .poster-ribbon-label__inner {
    padding: 0.5mm 2.05mm;
    font-size: 3.9mm;
}

.poster-results--lg .poster-heart {
    gap: 0.45mm;
    margin-top: 0.25mm;
    font-size: 1.6mm;
}

.poster-results--lg .poster-name {
    margin-top: 0.35mm;
    font-size: 6.15mm;
}

.poster-results--lg .poster-id-pill {
    margin-top: 0.45mm;
    padding: 0.35mm 1.7mm;
    font-size: 3.65mm;
    border-radius: 2.5mm;
}

.poster-results--lg .poster-rows {
    gap: 0.45mm;
    margin-top: 0.55mm;
    grid-auto-rows: minmax(4.7mm, 1fr);
    grid-template-rows: repeat(8, minmax(4.7mm, 1fr));
}

.poster-results--lg .poster-row {
    grid-template-columns: 3.65mm 14.85mm 0.7mm minmax(0, 1fr);
    gap: 0.45mm;
    min-height: 4.7mm;
    font-size: 3.9mm;
}

.poster-results--lg .poster-row i {
    font-size: 3.65mm;
}

.poster-results--lg .poster-row-label {
    font-size: 2.85mm;
}

.poster-results--lg .poster-row-value {
    padding-left: 2.3mm;
    font-size: 3.9mm;
}

.poster-results--lg .poster-about-pill {
    padding: 0.25mm 1.35mm;
    font-size: 2.2mm;
}

.poster-results--lg .poster-about-text {
    font-size: 2.2mm;
}

.poster-results--lg .poster-actions {
    gap: 0.8mm;
    padding-top: 0.9mm;
    border-top-width: 0.6mm;
}

.poster-results--lg .poster-btn {
    min-height: 8.2mm;
    gap: 0.7mm;
    padding: 0.7mm;
    border-width: 0.35mm;
    border-radius: 1.5mm;
    font-size: 3.5mm;
}

.poster-results--lg .poster-btn i {
    font-size: 3.5mm;
}

/* Marital-status pill and premium crown shown on the large poster cards. */
.poster-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6mm;
    margin-top: 0.5mm;
    padding: 0.3mm 1.8mm;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--poster-status-bg-top) 0%, var(--poster-status-bg-bottom) 100%);
    color: var(--poster-green-dark);
    border: 0.25mm solid var(--poster-status-line);
    font-family: var(--font-heading);
    font-size: 2.7mm;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.poster-premium-badge {
    position: absolute;
    top: 1.4mm;
    right: 1.4mm;
    left: auto;
    bottom: auto;
    z-index: 4;
    display: flex;
    height: 4.8mm;
    width: 4.8mm;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--poster-gold-light) 0%, var(--poster-gold) 100%);
    color: var(--poster-maroon-deep);
    font-size: 2.5mm;
    border: 0.3mm solid var(--poster-premium-line);
    box-shadow: 0 0.6mm 1.4mm rgba(0, 0, 0, 0.45);
}

/* Smaller "Verified Profile" wording on the large poster cards. */
.poster-results--lg .poster-verified-text {
    font-size: 1.95mm;
}

.poster-results--lg .poster-verified-heart {
    height: 3.1mm;
    width: 3.1mm;
    font-size: 1.5mm;
}

.poster-results--lg .poster-verified-seal {
    height: 2.4mm;
    width: 2.4mm;
    font-size: 1.2mm;
}

/* ------------------------------------------------------------------
   Profile card picture built for the request share messages.
   The cards are drawn inside a temporary stage, photographed into one
   JPG picture and sent to the profile owner on WhatsApp or by email.
------------------------------------------------------------------ */
.requests-share-stage .poster-photo-wrap {
    position: relative;
}

/* Guarded photo on the shared profile card: the picture is blurred and a lock
   is drawn over it, so a member is recognised without their face being clear.
   Used both on the card page a member opens from their link and in the card
   picture made for the WhatsApp / email messages. */
.poster-card--photo-guarded .poster-photo {
    filter: blur(5px);
}

.poster-photo-lock {
    display: flex;
    position: absolute;
    top: 1.2mm;
    left: 1.2mm;
    z-index: 3;
    height: 4.6mm;
    width: 4.6mm;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--navy-color);
    border: 0.3mm solid var(--poster-gold);
    color: var(--white-color);
    font-size: 2.3mm;
    box-shadow: 0 0.6mm 1.4mm rgba(0, 0, 0, 0.45);
}

.poster-card--photo-guarded .poster-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1.5px, rgba(10, 20, 40, 0.14) 1.5px 3px);
    pointer-events: none;
}