:root {
    --pup-maroon: #800000;
    --pup-maroon-dark: #5f0000;
    --pup-gold: #ffdf00;
    --ink: #292524;
    --muted: #716b68;
    --surface: #ffffff;
    --canvas: #f8f6f3;
    --line: #ebe6e1;
    --shadow-sm: 0 8px 24px rgba(48, 34, 28, 0.07);
    --shadow-lg: 0 18px 48px rgba(48, 34, 28, 0.13);
    --radius-card: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.95rem;
    line-height: 1.25;
}

.btn-lg {
    min-height: 48px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
    letter-spacing: -0.035em;
}

.bg-pup {
    background-color: var(--pup-maroon) !important;
}

.text-pup {
    color: var(--pup-maroon) !important;
}

.btn-pup {
    border: 1px solid var(--pup-maroon);
    background: var(--pup-maroon);
    color: #fff;
    font-weight: 650;
}

.btn-pup:hover,
.btn-pup:focus-visible {
    border-color: var(--pup-maroon-dark);
    background: var(--pup-maroon-dark);
    color: #fff;
}

.btn-outline-pup {
    border: 1px solid rgba(128, 0, 0, 0.3);
    color: var(--pup-maroon);
    font-weight: 650;
}

.btn-outline-pup:hover,
.btn-outline-pup:focus-visible {
    border-color: var(--pup-maroon);
    background: var(--pup-maroon);
    color: #fff;
}

.btn-warning {
    border-color: var(--pup-gold);
    background: var(--pup-gold);
}

.navbar,
.pup-navbar {
    min-height: 70px;
    background: linear-gradient(105deg, rgba(95, 0, 0, 0.97) 0%, rgba(128, 0, 0, 0.96) 55%, rgba(145, 16, 16, 0.96) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 223, 0, 0.22);
    box-shadow: 0 8px 24px rgba(45, 10, 10, 0.18);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.pup-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff !important;
    padding: 0.25rem 0;
}

.pup-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pup-gold) 0%, #f5c400 100%);
    color: var(--pup-maroon-dark);
    font-size: 1.05rem;
    box-shadow: 0 3px 10px rgba(255, 223, 0, 0.28);
    transition: transform 0.2s ease;
}

.pup-brand:hover .pup-brand-mark,
.pup-brand:hover .pup-brand-logo {
    transform: translateY(-1px) scale(1.04);
}

.pup-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
    transition: transform 0.2s ease;
}

.footer-brand-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pup-brand-text span {
    color: var(--pup-gold);
}

.pup-toggler {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 0.4rem 0.55rem;
}

.pup-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 223, 0, 0.3);
}

.pup-nav-primary {
    gap: 0.2rem;
}

.pup-nav-actions {
    gap: 0.35rem;
}

.navbar .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.46rem 0.8rem !important;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 550;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}

.navbar .nav-link.active {
    background: rgba(255, 223, 0, 0.15);
    color: var(--pup-gold);
    font-weight: 650;
}

.pup-nav-pill {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    padding: 0.44rem 0.85rem !important;
}

.pup-nav-pill:hover,
.pup-nav-pill:focus-visible {
    border-color: rgba(255, 223, 0, 0.45);
    background: rgba(255, 255, 255, 0.16);
    color: var(--pup-gold) !important;
}

.pup-nav-pill.active {
    border-color: rgba(255, 223, 0, 0.55);
    background: rgba(255, 223, 0, 0.2);
    color: var(--pup-gold) !important;
}

.pup-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 1rem;
    border: 1px solid var(--pup-gold);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pup-gold) 0%, #f3c400 100%);
    color: var(--pup-maroon-dark);
    font-size: 0.9rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.pup-nav-cta:hover,
.pup-nav-cta:focus-visible {
    color: var(--pup-maroon-dark);
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.pup-mobile-chat-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.pup-mobile-chat-btn.active,
.pup-mobile-chat-btn:hover {
    border-color: rgba(255, 223, 0, 0.5);
    color: var(--pup-gold);
}

.pup-nav-chat-link {
    position: relative;
}

.pup-nav-chat-link .nav-chat-badge,
.pup-mobile-chat-btn .nav-chat-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 2;
}

.nav-chat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #e41e3f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    box-shadow: 0 0 0 2px #750000, 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: nav-badge-pulse 2.2s infinite;
}

@keyframes nav-badge-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px #750000, 0 0 0 0 rgba(228, 30, 63, 0.7);
    }
    55% {
        box-shadow: 0 0 0 2px #750000, 0 0 0 7px rgba(228, 30, 63, 0);
    }
}

.pup-chat-toast-container {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: min(340px, calc(100vw - 2rem));
    pointer-events: none;
}

.pup-chat-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(128, 0, 0, 0.16);
    border-left: 4px solid var(--pup-maroon);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 12px 32px rgba(45, 10, 10, 0.18);
    pointer-events: auto;
    animation: pup-toast-in 0.25s ease-out;
}

.pup-chat-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #f4ece8;
    color: var(--pup-maroon);
    font-size: 0.95rem;
}

.pup-chat-toast-body {
    flex: 1 1 auto;
    min-width: 0;
}

.pup-chat-toast-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--pup-maroon);
    margin-bottom: 0.15rem;
}

.pup-chat-toast-text {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pup-chat-toast-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
}

@keyframes pup-toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    background:
        radial-gradient(ellipse at 86% 20%, rgba(255, 223, 0, 0.16), transparent 32%),
        linear-gradient(120deg, #650000 0%, #850707 58%, #9c2020 100%);
    color: #fff;
}

.hero-section::after {
    position: absolute;
    right: -9rem;
    bottom: -19rem;
    width: 38rem;
    height: 38rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    max-width: 700px;
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    line-height: 1.08;
}

.hero-section .lead {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
}

.hero-section .badge {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-weight: 650;
}

.hero-section .btn {
    padding: 0.75rem 1.15rem;
    font-weight: 650;
}

.hero-icon {
    display: inline-flex;
    width: clamp(210px, 28vw, 330px);
    height: clamp(210px, 28vw, 330px);
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--pup-gold);
    font-size: clamp(7rem, 15vw, 12rem);
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.05);
}

.login-welcome-active {
    overflow: hidden;
}

.login-welcome {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    overflow: hidden;
    place-items: center;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(196, 50, 37, 0.7), transparent 42%),
        linear-gradient(145deg, #650000, #8b0808 54%, #4b0000);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms ease, visibility 500ms ease;
}

.login-welcome::before,
.login-welcome::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(86vw, 760px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 223, 0, 0.16);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.72);
}

.login-welcome::after {
    width: min(68vw, 590px);
    border-color: rgba(255, 255, 255, 0.12);
}

.login-welcome.is-visible {
    opacity: 1;
    visibility: visible;
}

.login-welcome.is-visible::before {
    animation: loginWelcomeRing 2.8s ease-out both;
}

.login-welcome.is-visible::after {
    animation: loginWelcomeRing 2.4s 120ms ease-out both;
}

.login-welcome.is-leaving {
    opacity: 0;
}

.login-welcome__content {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 34rem);
    text-align: center;
}

.login-welcome__eyebrow {
    margin-bottom: 0.4rem;
    color: var(--pup-gold);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.2em;
    opacity: 0;
    text-transform: uppercase;
}

.login-welcome__visual {
    position: relative;
    display: grid;
    width: min(76vw, 370px);
    aspect-ratio: 1;
    margin: 0 auto 0.5rem;
    place-items: center;
}

.login-welcome__visual::before,
.login-welcome__visual::after {
    position: absolute;
    inset: 7%;
    border: 1px solid rgba(255, 223, 0, 0.28);
    border-radius: 50%;
    content: "";
    opacity: 0;
}

.login-welcome__visual::after {
    inset: 0;
    border-color: rgba(255, 255, 255, 0.18);
}

.login-welcome__visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(70%, 270px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow: 0 24px 80px rgba(35, 0, 0, 0.35);
    opacity: 0;
}

.login-welcome__item {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    place-items: center;
    border: 1px solid rgba(255, 223, 0, 0.42);
    border-radius: 50%;
    background: rgba(92, 0, 0, 0.82);
    box-shadow: 0 10px 32px rgba(35, 0, 0, 0.25);
    color: var(--pup-gold);
    font-size: 1.35rem;
    opacity: 0;
}

.login-welcome__item--book {
    top: 14%;
    left: 5%;
}

.login-welcome__item--bag {
    top: 19%;
    right: 3%;
}

.login-welcome__item--calculator {
    bottom: 17%;
    left: 2%;
}

.login-welcome__item--journal {
    right: 7%;
    bottom: 12%;
}

.login-welcome__content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    opacity: 0;
}

.login-welcome__content h1 span {
    color: var(--pup-gold);
}

.login-welcome__message {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0;
}

.login-welcome.is-visible .login-welcome__eyebrow {
    animation: loginWelcomeText 500ms 200ms ease-out both;
}

.login-welcome.is-visible .login-welcome__visual img {
    animation: loginWelcomeLogo 900ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-welcome.is-visible .login-welcome__visual::before {
    animation: loginWelcomeHalo 1.2s 250ms ease-out both;
}

.login-welcome.is-visible .login-welcome__visual::after {
    animation: loginWelcomeHalo 1.5s 420ms ease-out both;
}

.login-welcome.is-visible .login-welcome__item {
    animation: loginWelcomeItem 650ms 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-welcome.is-visible .login-welcome__item--bag {
    animation-delay: 560ms;
}

.login-welcome.is-visible .login-welcome__item--calculator {
    animation-delay: 670ms;
}

.login-welcome.is-visible .login-welcome__item--journal {
    animation-delay: 780ms;
}

.login-welcome.is-visible .login-welcome__content h1 {
    animation: loginWelcomeText 650ms 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-welcome.is-visible .login-welcome__message {
    animation: loginWelcomeText 650ms 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-welcome.is-reduced-motion,
.login-welcome.is-reduced-motion * {
    animation: none !important;
    transition-duration: 200ms !important;
}

.login-welcome.is-reduced-motion .login-welcome__eyebrow,
.login-welcome.is-reduced-motion .login-welcome__visual img,
.login-welcome.is-reduced-motion .login-welcome__item,
.login-welcome.is-reduced-motion .login-welcome__content h1,
.login-welcome.is-reduced-motion .login-welcome__message {
    opacity: 1;
    transform: none;
}

.login-welcome.is-reduced-motion .login-welcome__visual::before,
.login-welcome.is-reduced-motion .login-welcome__visual::after {
    opacity: 0.45;
}

@keyframes loginWelcomeRing {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes loginWelcomeHalo {
    40% {
        opacity: 1;
        transform: scale(0.9);
    }
    to {
        opacity: 0.45;
        transform: scale(1.16);
    }
}

@keyframes loginWelcomeLogo {
    from {
        opacity: 0;
        transform: scale(0.55) rotate(-10deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.06) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes loginWelcomeItem {
    from {
        opacity: 0;
        transform: scale(0.35) translateY(14px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes loginWelcomeText {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section.py-5 {
    padding-top: clamp(2.75rem, 5vw, 4.5rem) !important;
    padding-bottom: clamp(2.75rem, 5vw, 4.5rem) !important;
}

section.bg-light {
    background-color: var(--canvas) !important;
}

.category-card {
    height: 100%;
    min-height: 174px;
    padding: 1.5rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(128, 0, 0, 0.2);
    box-shadow: var(--shadow-lg);
}

.category-card i {
    color: var(--pup-maroon);
    font-size: 2.5rem;
}

.category-card h5 {
    margin-top: 0.9rem;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.category-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: 0 3px 14px rgba(48, 34, 28, 0.045);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    display: block;
    width: 100%;
    height: clamp(165px, 18vw, 205px);
    background: var(--canvas);
    object-fit: cover;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem;
}

.product-card .badge {
    border-radius: 999px;
    background: #f4ece8 !important;
    color: var(--pup-maroon) !important;
    font-weight: 650;
}

.product-card .transaction-badge {
    background: #f0f3f8 !important;
    color: #35445c !important;
}

.product-gallery-main {
    overflow: hidden;
    border-radius: 14px;
    background: var(--canvas);
}

.product-modal-image {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.product-gallery-thumbs,
.post-item-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.product-gallery-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #fff;
}

.product-gallery-thumb.is-active {
    border-color: var(--pup-maroon);
}

.product-gallery-thumb img,
.post-item-thumbs img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.seller-rating-pill {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fff8df;
    color: #765900;
    font-weight: 700;
}

.seller-review,
.listing-comment {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.listing-comment__replies {
    margin: 0.5rem 0 0 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--line);
}

.listing-comment__replies .listing-comment:last-child {
    padding-bottom: 0;
}

.seller-review:last-child,
.listing-comment:last-child {
    border-bottom: 0;
}

.listing-comments-list {
    max-height: 320px;
    overflow-y: auto;
}

.product-card .card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3rem;
    margin: 0.45rem 0 0;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card .product-price {
    margin: 0;
    color: var(--pup-maroon);
    font-size: 1.2rem;
    font-weight: 750;
}

.product-card .product-condition {
    margin: 0 0 0.5rem;
}

.product-card .btn {
    margin-top: auto;
}

.page-header {
    padding: clamp(2.75rem, 5vw, 4.25rem) 0;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(255, 223, 0, 0.13), transparent 35%),
        linear-gradient(120deg, #650000, #8b1010);
    color: #fff;
}

.page-header h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-header p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}

.step-icon {
    display: flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 7px solid #f5eaea;
    border-radius: 50%;
    background: var(--pup-maroon);
    color: #fff;
    font-size: 1.7rem;
}

.how-card {
    height: 100%;
    padding: 1.5rem;
}

.about-icon {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 223, 0, 0.23), transparent 34%),
        linear-gradient(145deg, #f8eeee, #f8f6f3);
    color: var(--pup-maroon);
    font-size: 9rem;
}

.info-card {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.info-card i {
    color: var(--pup-maroon);
    font-size: 2.6rem;
}

.info-card h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item > i {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f7eeee;
    color: var(--pup-maroon);
    font-size: 1.25rem;
}

.contact-item h6 {
    margin: 0 0 0.2rem;
    font-weight: 700;
}

.contact-item p {
    margin: 0;
    color: var(--muted);
}

.contact-form-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.auth-card {
    overflow: hidden;
    padding: 0;
}

.auth-page {
    display: flex;
    min-height: calc(100vh - 68px);
    align-items: center;
    background: var(--canvas);
}

.auth-page > .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.auth-switch {
    position: relative;
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem;
    border-bottom: 1px solid var(--line);
    background: #faf8f8;
}

.auth-switch-pill {
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(48, 34, 28, 0.08);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
                width 280ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}

.auth-switch a,
.auth-switch span {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 44px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    color: #756d6c;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 220ms ease;
}

.auth-switch .active {
    background: #fff;
    color: var(--pup-maroon);
    box-shadow: 0 2px 8px rgba(48, 34, 28, 0.08);
}

.auth-switch.has-pill .active {
    background: transparent;
    box-shadow: none;
}

.auth-card > :not(.auth-switch) {
    will-change: transform, opacity;
}

.auth-anim-exit-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.auth-anim-exit-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes authSlideInFromRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authSlideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-anim-enter-right {
    animation: authSlideInFromRight 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-anim-enter-left {
    animation: authSlideInFromLeft 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-heading {
    margin: 1.5rem 2rem 1.25rem;
}

.auth-heading h2 {
    margin-bottom: 0.35rem;
    font-size: 1.65rem;
}

.auth-card > .alert,
.auth-card > form,
.auth-card > p,
.auth-card > .auth-divider,
.auth-card > .btn-microsoft {
    margin-right: 2rem;
    margin-left: 2rem;
}

.auth-card > .btn-microsoft {
    width: calc(100% - 4rem) !important;
}

.auth-card > .alert {
    margin-bottom: 1rem;
}

.auth-card > p {
    margin-bottom: 1.4rem !important;
}

.auth-card .input-group > .form-control {
    min-width: 0;
}

.auth-card .input-group > .form-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.auth-card .input-group > :last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.auth-card .password-toggle {
    border-color: #ded8d2;
    background: #fff;
    color: #8a817e;
}

.auth-card .password-toggle:hover {
    background: var(--canvas);
    color: var(--pup-maroon);
}

.auth-email-hint {
    color: var(--muted);
}

.auth-email-hint strong {
    color: #b4233b;
}

.otp-preview {
    padding: 1rem;
    border: 1px solid #eee5de;
    border-radius: 14px;
    background: #faf8f6;
}

.otp-preview-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f3e7e5;
    color: var(--pup-maroon);
}

.otp-preview h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 750;
}

.otp-preview p {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.45;
}

.otp-preview .input-group > .form-control:disabled {
    background: #fff;
    color: #8a817e;
}

.otp-preview .btn:disabled {
    border-color: #d7ceca;
    background: #eee9e6;
    color: #817875;
    opacity: 1;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5ddd7;
}

.btn-microsoft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid #d5d0cc;
    border-radius: 999px;
    background: #ffffff;
    color: #1f1f1f;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-microsoft:hover,
.btn-microsoft:focus {
    background: #f8f7f6;
    border-color: #beb7b2;
    color: #1f1f1f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.auth-submit {
    min-height: 46px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(48, 34, 28, 0.12);
}

.form-label {
    margin-bottom: 0.4rem;
    color: #45403d;
    font-size: 0.92rem;
    font-weight: 650;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 44px;
    border-color: #ded8d2;
    border-radius: 10px;
}

.form-control,
.form-select {
    padding: 0.55rem 0.8rem;
}

.form-control[type="file"] {
    padding: 0.45rem 0.7rem;
}

.input-group > .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--canvas);
    color: var(--muted);
}

.input-group > .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(128, 0, 0, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.1);
}

.social-icons a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
    border-radius: 13px;
    background: var(--pup-maroon);
    color: #fff;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    background: var(--pup-maroon-dark);
}

.product-modal-image {
    width: 100%;
    height: clamp(200px, 48vw, 280px);
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--canvas);
    object-fit: contain;
}

.product-modal-details p {
    margin-bottom: 0.65rem;
}

.profile-avatar,
.profile-avatar-placeholder {
    width: 112px;
    height: 112px;
}

.profile-avatar-placeholder {
    color: var(--pup-maroon);
    font-size: 2.5rem;
}

.profile-page .contact-form-card.auth-card {
    overflow: visible;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.profile-page .auth-card > form {
    margin-right: 0;
    margin-left: 0;
}

.profile-page .auth-card > p {
    margin: 0 0 0.5rem !important;
}

.listing-management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.listing-management-actions .btn {
    flex: 1 1 5rem;
}

.chat-panel {
    overflow: hidden;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.chat-status {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--canvas);
    color: var(--muted);
    font-size: 0.9rem;
}

.chat-status[data-state="loading"]::before {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border: 2px solid rgba(128, 0, 0, 0.2);
    border-top-color: var(--pup-maroon);
    border-radius: 50%;
    animation: chat-status-spin 800ms linear infinite;
    content: "";
}

.chat-status[data-state="connected"]::before {
    color: #34734a;
    content: "✓";
    font-weight: 800;
}

.chat-status[data-state="empty"] {
    border-color: #f0df89;
    background: #fff9d6;
    color: var(--ink);
}

.chat-status[data-state="empty"]::before {
    color: var(--pup-maroon);
    content: "i";
    font-weight: 800;
}

.chat-status[data-state="error"] {
    border-color: #ead0cc;
    background: #f8ecea;
    color: var(--pup-maroon);
}

.chat-status[data-state="error"]::before {
    color: var(--pup-maroon);
    content: "!";
    font-weight: 800;
}

.chat-unread-summary {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    margin: 0 0 0.8rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.82rem;
}

.chat-unread-summary[data-state="unread"] {
    border-color: rgba(128, 0, 0, 0.2);
    background: #f4ece8;
    color: var(--pup-maroon);
    font-weight: 700;
}

.chat-safety-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.chat-safety-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.chat-safety-banner {
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
}

.blocked-users-list {
    display: grid;
    gap: 0.65rem;
}

.blocked-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--canvas);
}

.nexconn-chat-app.is-chat-blocked {
    position: relative;
}

.chat-active-peer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border: 1px solid rgba(128, 0, 0, 0.22);
    border-radius: 999px;
    background: #f4ece8;
    color: var(--pup-maroon);
    font-size: 0.82rem;
    font-weight: 700;
}

.chat-listing-context {
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.chat-listing-context-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
    font-size: 0.85rem;
}

.chat-listing-seller-label {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.chat-listing-context-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
}

.chat-listing-thumb {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    object-fit: cover;
    background: var(--canvas);
}

.chat-listing-meta {
    flex: 1 1 200px;
    min-width: 0;
}

.chat-listing-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.25rem 0;
}

.chat-listing-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--canvas);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.chat-listing-tag-inquired {
    border-color: rgba(128, 0, 0, 0.35);
    background: #f8ecea;
    color: var(--pup-maroon);
}

.chat-listing-price {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--pup-maroon);
}

.chat-listing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.chat-safety-tip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #f0df89;
    border-radius: 10px;
    background: #fff9d6;
    color: #5c4600;
    font-size: 0.82rem;
}

.chat-safety-tip i {
    color: #c28b00;
    flex-shrink: 0;
}

@keyframes chat-status-spin {
    to {
        transform: rotate(360deg);
    }
}

.nexconn-chat-app {
    width: 100%;
    height: min(72vh, 760px);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.nexconn-chat-root,
nc-chat-ui-app-provider {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.report-form-status {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: var(--canvas);
}

.moderation-reports-list {
    display: grid;
    gap: 1rem;
}

.moderation-report-card {
    gap: 0.8rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.moderation-report-target {
    margin: 0.8rem 0 0;
    color: var(--pup-maroon);
    font-weight: 700;
}

.moderation-report-details {
    margin: 0;
    padding: 0.75rem;
    border-left: 3px solid var(--pup-gold);
    background: var(--canvas);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.moderation-review-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr) auto;
    align-items: end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.moderation-review-field {
    min-width: 0;
}

.moderation-status-pending {
    background: #fff2bd;
    color: #6a4b00;
}

.moderation-status-reviewed {
    background: #f4ece8;
    color: var(--pup-maroon);
}

.moderation-status-actioned {
    background: var(--pup-maroon);
    color: #fff;
}

.moderation-status-dismissed {
    background: #eee9e6;
    color: var(--muted);
}

.moderation-empty-state {
    padding: 2rem 1rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 767.98px) {
    .moderation-review-form {
        grid-template-columns: 1fr;
    }
}

#imagePreview {
    width: 100%;
    max-height: 250px;
    border-radius: 14px;
    background: var(--canvas);
    object-fit: contain;
}

.modal-content {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

.footer {
    margin-top: auto;
    padding: 2.25rem 0 1.25rem;
    background: #340000;
    color: rgba(255, 255, 255, 0.75);
}

.footer h5 {
    color: #fff;
    font-weight: 750;
}

.footer h5 i {
    color: var(--pup-gold);
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer a:hover {
    color: var(--pup-gold);
}

@media (max-width: 991.98px) {
    .navbar .nav-link {
        width: 100%;
        justify-content: flex-start;
        margin: 0.15rem 0;
    }

    .navbar-collapse {
        margin-top: 0.65rem;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 14px;
        background: rgba(82, 0, 0, 0.55);
    }

    .pup-nav-actions {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .navbar-nav .btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.35rem;
    }
}

@media (max-width: 767.98px) {
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-section .lead {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-icon {
        width: 200px;
        height: 200px;
        font-size: 7rem;
    }

    .product-image {
        height: 160px;
    }

    .about-icon {
        min-height: 210px;
        font-size: 7rem;
    }

    .auth-heading {
        margin: 1.25rem 1.25rem 1rem;
    }

    .auth-card > .alert,
    .auth-card > form,
    .auth-card > p {
        margin-right: 1.25rem;
        margin-left: 1.25rem;
    }

    .auth-card > form,
    .auth-card > .alert {
        margin-right: 1.25rem;
        margin-left: 1.25rem;
    }

    .category-card {
        min-height: 154px;
        padding: 1.25rem 0.75rem;
    }

    .nexconn-chat-app {
        height: 68vh;
        min-height: 440px;
    }
}

@media (max-width: 575.98px) {
    .nexconn-chat-app {
        height: 70vh;
        min-height: 400px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ================= POST ITEM MODAL ================= */

.post-item-modal {
    border: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.post-item-modal__header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--pup-maroon) 0%, var(--pup-maroon-dark) 100%);
    color: #ffffff;
    border-bottom: 0;
}

.post-item-modal__header .modal-title {
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.post-item-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 223, 0, 0.16);
    color: var(--pup-gold);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.post-item-modal__subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}

.post-item-modal__body {
    padding: 1.5rem;
    background: var(--surface);
}

.post-item-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 290px;
    border: 2px dashed #d6cfc8;
    border-radius: 16px;
    background: var(--canvas);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.post-item-dropzone:hover,
.post-item-dropzone.is-dragover {
    border-color: var(--pup-maroon);
    background: #f5efeb;
}

.post-item-dropzone__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.post-item-dropzone__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.5rem;
    text-align: center;
    pointer-events: none;
}

.post-item-dropzone__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 0.35rem;
    border-radius: 14px;
    background: rgba(128, 0, 0, 0.1);
    color: var(--pup-maroon);
    font-size: 1.5rem;
}

.post-item-dropzone__preview {
    position: relative;
    width: 100%;
    height: 290px;
}

.post-item-dropzone__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item-dropzone__change {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(24, 20, 18, 0.78);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    pointer-events: none;
}

.post-item-thumbs img {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
}

.post-item-modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid var(--line);
}

.post-item-modal__seller {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.post-item-modal__seller i {
    color: var(--pup-maroon);
}
/* ═══════════════════════════════════════════════════
   PROFILE PAGE  — added in v11
   Sections: hero · identity card · form cards · upload zone
═══════════════════════════════════════════════════ */

/* ── Hero banner ──────────────────────────────────── */
.profile-hero {
    position: relative;
    background: linear-gradient(135deg, var(--pup-maroon-dark, #5f0000) 0%, var(--pup-maroon, #800000) 60%, #a0001a 100%);
    padding: 2.25rem 0;
    margin-bottom: 1.5rem;
}

.profile-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Inner row: avatar on left, identity text on right — both cleanly inside the maroon */
.profile-hero__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

/* ── Hero Avatar wrap ─────────────────────────────── */
.profile-hero__avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

/* ── Hero Avatar ──────────────────────────────────── */
.profile-hero__avatar,
.profile-hero__avatar--placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    display: block;
    object-fit: cover;
    background: var(--canvas, #f8f6f3);
}

.profile-hero__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--pup-maroon, #800000);
    font-size: 3.5rem;
}

/* ── Change photo button ──────────────────────────── */
.profile-hero__change-photo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
}

.profile-hero__change-photo:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ── Hero Identity text — lives INSIDE the maroon ─── */
.profile-hero__identity {
    color: #fff;
    min-width: 0;
}

.profile-hero__name {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 0.15rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.profile-hero__handle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.75rem;
}

.profile-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ── Chips ────────────────────────────────────────── */
.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255,255,255,0.18);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

.profile-chip--verified {
    background: rgba(255, 223, 0, 0.22);
    border-color: rgba(255, 223, 0, 0.55);
    color: #fff9c0;
}

/* ── Content area below hero ──────────────────────── */
.profile-content {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* ── Generic profile card ─────────────────────────── */
.profile-card {
    background: var(--surface, #fff);
    border-radius: var(--radius-card, 16px);
    border: 1px solid var(--line, #ebe6e1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ── Card header accent ───────────────────────────── */
.profile-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line, #ebe6e1);
    background: rgba(128, 0, 0, 0.03);
}

.profile-card__header--danger {
    background: rgba(220, 53, 69, 0.03);
    border-bottom-color: rgba(220, 53, 69, 0.12);
}

.profile-card__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(128, 0, 0, 0.1);
    color: var(--pup-maroon, #800000);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.profile-card__header-icon--danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.profile-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: var(--ink, #292524);
}

.profile-card__subtitle {
    font-size: 0.8rem;
    color: var(--muted, #716b68);
    margin: 0;
}

.profile-card__body {
    padding: 1.5rem;
}

/* ── Identity card (left column) ─────────────────── */
.profile-identity-card {
    padding: 1.5rem;
}

.profile-identity-card__bio {
    position: relative;
    padding: 0.9rem 1rem 0.9rem 1.5rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--pup-maroon, #800000);
    background: rgba(128, 0, 0, 0.04);
    border-radius: 0 10px 10px 0;
    font-size: 0.88rem;
    color: var(--muted, #716b68);
    font-style: italic;
}

.profile-identity-card__quote-icon {
    position: absolute;
    top: -0.4rem;
    left: 0.5rem;
    font-size: 2rem;
    color: var(--pup-maroon, #800000);
    opacity: 0.18;
    line-height: 1;
}

/* ── Meta list ────────────────────────────────────── */
.profile-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.profile-meta-list__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--line, #ebe6e1);
    font-size: 0.85rem;
}

.profile-meta-list__item:last-child {
    border-bottom: none;
}

.profile-meta-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(128, 0, 0, 0.08);
    color: var(--pup-maroon, #800000);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.profile-meta-list__label {
    font-weight: 600;
    color: var(--muted, #716b68);
    white-space: nowrap;
    min-width: 70px;
}

.profile-meta-list__value {
    color: var(--ink, #292524);
    flex: 1;
    min-width: 0;
}

/* ── Upload zone ──────────────────────────────────── */
.profile-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.5rem 1rem;
    border: 2px dashed var(--line, #ebe6e1);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    background: var(--canvas, #f8f6f3);
}

.profile-upload-zone:hover,
.profile-upload-zone.is-over {
    border-color: var(--pup-maroon, #800000);
    background: rgba(128, 0, 0, 0.04);
}

.profile-upload-zone__icon {
    font-size: 2rem;
    color: var(--pup-maroon, #800000);
    opacity: 0.6;
    margin-bottom: 0.25rem;
}

.profile-upload-zone__label {
    font-size: 0.88rem;
    color: var(--ink, #292524);
    margin: 0;
}

.profile-upload-zone__link {
    color: var(--pup-maroon, #800000);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.profile-upload-zone__hint {
    font-size: 0.78rem;
    color: var(--muted, #716b68);
    margin: 0;
}

.profile-upload-zone__input {
    display: none;
}

/* ── Responsive tweaks ────────────────────────────── */
@media (max-width: 991.98px) {
    .profile-hero {
        padding: 1.75rem 0;
    }

    .profile-hero__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .profile-hero__avatar,
    .profile-hero__avatar--placeholder {
        width: 120px;
        height: 120px;
    }

    .profile-hero__chips {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .profile-hero {
        padding: 1.5rem 0;
    }

    .profile-card__body {
        padding: 1rem;
    }
}

/* ================= LISTING DETAILS MODAL ================= */

#productModal .modal-dialog {
    max-width: 940px;
}

#productModal .modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(32, 16, 16, 0.26);
}

.product-modal__header {
    padding: 1.15rem 1.5rem;
    border: 0;
    background: linear-gradient(120deg, #650000, #8b1010);
    color: #fff;
}

.product-modal__header .modal-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.product-modal__eyebrow {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.product-modal__header .product-modal__eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

#productTransactionBadge {
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255, 223, 0, 0.4);
    border-radius: 999px;
    background: rgba(255, 223, 0, 0.16);
    color: #fff0a6;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-modal-details {
    padding: 1.5rem;
    background: #fbfaf8;
}

.product-gallery-main {
    display: flex;
    min-height: 310px;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 50% 35%, #fff 0%, #f6f2ee 75%);
}

.product-modal-image {
    width: 100%;
    height: clamp(240px, 34vw, 370px);
    margin: 0;
    border-radius: 10px;
    background: transparent;
    object-fit: contain;
}

.product-modal__summary,
.product-description-card,
.seller-info-box {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.product-modal__summary {
    background: linear-gradient(145deg, #fff 0%, #fffdf6 100%);
}

.product-modal__price {
    margin-top: 0.25rem;
    color: var(--pup-maroon);
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.product-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #eee8e2;
    border-radius: 999px;
    background: #faf8f6;
    color: #504945;
    font-size: 0.8rem;
    font-weight: 650;
}

.product-detail-chip i {
    color: var(--pup-maroon);
}

.product-description-card p {
    color: #4c4541;
    line-height: 1.65;
    white-space: pre-line;
}

.seller-info-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-info-box__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: #f5e9e6;
    color: var(--pup-maroon);
    font-size: 1.25rem;
}

.seller-info-box strong {
    color: var(--ink);
}

.seller-rating-pill {
    flex: 0 0 auto;
    padding: 0.45rem 0.7rem;
}

.product-modal__trust-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dfece4;
    border-radius: 12px;
    background: #f2f8f4;
    color: #44634d;
    font-size: 0.78rem;
    line-height: 1.5;
}

.product-modal__trust-note i {
    color: #37834e;
    font-size: 1rem;
}

.product-community-section {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.product-community-section h6 {
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.seller-rating-form {
    border-color: #eee8e2 !important;
    background: #fbfaf8;
}

.seller-review,
.listing-comment {
    padding: 0.9rem 0;
}

.seller-review:first-child,
.listing-comment:first-child {
    padding-top: 0;
}

.listing-comments-list {
    max-height: none;
    overflow: visible;
}

.listing-comment__replies {
    margin-left: 0.25rem;
    padding-left: 1rem;
    border-color: #e8d9d4;
}

.listing-comment__replies .listing-comment {
    padding: 0.7rem 0;
}

.listing-reply-form {
    max-width: 560px;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfaf8;
}

.product-modal__footer {
    position: sticky;
    bottom: 0;
    z-index: 1;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
}

.product-modal__primary-action {
    min-width: 160px;
}

@media (max-width: 767.98px) {
    #productModal .modal-dialog {
        margin: 0.5rem;
    }

    .product-modal__header,
    .product-modal-details {
        padding: 1rem;
    }

    .product-gallery-main {
        min-height: 220px;
    }

    .product-modal-image {
        height: 250px;
    }

    .product-community-section {
        padding: 0.9rem;
    }

    .product-modal__footer {
        padding: 0.75rem 1rem;
    }
}

/* ================= LISTING QUESTIONS & DISCUSSION ================= */

.listing-discussion__heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.listing-discussion__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid #f0dfda;
    border-radius: 13px;
    background: #fbf1ee;
    color: var(--pup-maroon);
    font-size: 1.15rem;
}

.listing-discussion__count {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #f5f2ef;
    color: #665c56;
    font-size: 0.7rem;
    font-weight: 700;
}

.listing-comments-list {
    display: grid;
    gap: 0.65rem;
}

.listing-comments-empty {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    padding: 1.25rem 1rem;
    border: 1px dashed #ded5cf;
    border-radius: 14px;
    background: #fcfbfa;
    color: var(--muted);
    text-align: center;
}

.listing-comments-empty i {
    margin-bottom: 0.2rem;
    color: #a15a4e;
    font-size: 1.35rem;
}

.listing-comments-empty strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.listing-comments-empty span {
    font-size: 0.78rem;
}

#listingCommentsList > .listing-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.9rem;
    border: 1px solid #eee8e2;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #fdfcfb);
    box-shadow: 0 3px 12px rgba(48, 34, 28, 0.035);
}

.listing-comment__avatar,
.listing-comment-composer__avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 50%;
    background: #f4e5e1;
    color: var(--pup-maroon);
    font-size: 0.72rem;
    font-weight: 800;
}

.listing-comment__content {
    min-width: 0;
    flex: 1;
}

.listing-comment__header,
.listing-comment__author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.listing-comment__author strong {
    color: #332d2a;
    font-size: 0.84rem;
}

.listing-comment__seller {
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: #f8edc8;
    color: #735a12;
    font-size: 0.62rem;
    font-weight: 750;
}

.listing-comment__date {
    margin-left: auto;
    color: #8b817a;
    font-size: 0.7rem;
}

.listing-comment__text {
    margin: 0.45rem 0 0;
    color: #49423e;
    font-size: 0.86rem;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.listing-comment__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.45rem;
}

.listing-comment__action {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 0.28rem;
    padding: 0.15rem 0;
    border: 0;
    background: transparent;
    color: #776a63;
    font-size: 0.73rem;
    font-weight: 650;
}

.listing-comment__action:hover,
.listing-comment__action:focus-visible {
    color: var(--pup-maroon);
}

.listing-comment__action--delete:hover,
.listing-comment__action--delete:focus-visible {
    color: #b02a37;
}

.listing-comment__replies {
    margin-top: 0.5rem;
    padding-left: 0.85rem;
    border-left: 2px solid #eadbd6;
}

.listing-comment__replies:empty {
    display: none;
}

.listing-comment__replies .listing-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.55rem 0 0;
    padding: 0.7rem;
    border: 1px solid #f0ebe7;
    border-radius: 12px;
    background: #fff;
}

.listing-comment--reply .listing-comment__avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 0.65rem;
}

.listing-comment-composer {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #eee8e2;
    border-radius: 15px;
    background: #faf8f6;
}

.listing-comment-composer__avatar {
    background: #fff;
    border: 1px solid #eee4df;
}

.listing-comment-composer__body {
    min-width: 0;
}

.listing-comment-composer textarea {
    min-height: 74px;
    resize: vertical;
    border-color: #e6ddd7;
    background: #fff;
    font-size: 0.84rem;
}

.listing-comment-composer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

#listingCommentStatus {
    grid-column: 2;
}

.listing-discussion__signin {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid #eee8e2;
    border-radius: 13px;
    background: #faf8f6;
    color: #625852;
    font-size: 0.82rem;
}

.listing-discussion__signin > i {
    color: var(--pup-maroon);
    font-size: 1rem;
}

.listing-discussion__signin a {
    color: var(--pup-maroon);
    font-weight: 700;
    text-underline-offset: 2px;
}

@media (max-width: 575.98px) {
    #listingCommentsList > .listing-comment {
        gap: 0.55rem;
        padding: 0.75rem;
    }

    .listing-comment__avatar,
    .listing-comment-composer__avatar {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .listing-comment__date {
        width: 100%;
        margin-left: 0;
    }

    .listing-comment-composer {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 0.55rem;
        padding: 0.75rem;
    }

    .listing-comment-composer__footer {
        align-items: flex-end;
    }

    .listing-comment-composer__footer > span {
        max-width: 58%;
        font-size: 0.68rem;
    }
}

@media print {
    @page {
        margin: 18mm;
    }

    body.printing-transaction-receipt * {
        visibility: hidden !important;
    }

    body.printing-transaction-receipt .transaction-card[data-printing="true"],
    body.printing-transaction-receipt .transaction-card[data-printing="true"] * {
        visibility: visible !important;
    }

    body.printing-transaction-receipt .transaction-card[data-printing="true"] {
        position: fixed;
        inset: 0;
        width: 100%;
        border: 0;
        box-shadow: none;
    }

    body.printing-transaction-receipt .transaction-card .no-print {
        display: none !important;
    }
}
