/* =====================================================
   SAFESWAP FINAL RESPONSIVE THEME
   Desktop + Tablet + Phone
===================================================== */

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f1f4f9;
    --surface-dark: #0b1020;

    --ink: #101525;
    --muted: #6f7788;
    --line: #e2e7f0;

    --brand: #6c5ce7;
    --brand-dark: #5144cf;
    --brand-soft: #efeefe;
    --accent: #20c7a4;

    --success: #138a70;
    --danger: #d92d20;
    --warning: #f59e0b;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --shadow-sm:
        0 8px 24px
        rgba(14, 21, 40, 0.06);

    --shadow:
        0 18px 52px
        rgba(14, 21, 40, 0.11);

    --shadow-lg:
        0 30px 90px
        rgba(14, 21, 40, 0.2);
}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.55;

    color: var(--ink);

    background:
        radial-gradient(
            circle at top left,
            rgba(108, 92, 231, 0.07),
            transparent 28%
        ),
        radial-gradient(
            circle at top right,
            rgba(32, 199, 164, 0.05),
            transparent 28%
        ),
        var(--bg);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.hidden {
    display: none !important;
}


/* =====================================================
   BRAND
===================================================== */

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-weight: 850;
    letter-spacing: -0.04em;
}

.brand-word {
    font-size: 1.35rem;
}

.brand-mark {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--brand),
            #8b7cff 58%,
            var(--accent)
        );

    color: white;

    box-shadow:
        0 10px 24px
        rgba(108, 92, 231, 0.26);
}

.brand-mark.small {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.brand-mark svg {
    width: 27px;
    height: 27px;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    min-height: 74px;

    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 22px;

    padding: 10px 5%;

    background:
        rgba(255, 255, 255, 0.91);

    border-bottom:
        1px solid
        rgba(226, 231, 240, 0.9);

    backdrop-filter: blur(18px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;

    color: #5f6678;

    font-size: 0.92rem;
    font-weight: 700;
}

.main-nav a {
    transition: 0.18s ease;
}

.main-nav a:hover {
    color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;
    flex-wrap: wrap;

    max-width: 62%;
}


/* =====================================================
   BUTTONS
===================================================== */

.primary-btn,
.outline-btn,
.ghost-btn,
.danger-btn,
.view-btn {
    border: none;
    border-radius: 12px;

    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    font-weight: 780;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.primary-btn {
    padding: 11px 17px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--brand),
            #8375ff
        );

    box-shadow:
        0 10px 22px
        rgba(108, 92, 231, 0.2);
}

.primary-btn:hover,
.view-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 28px
        rgba(108, 92, 231, 0.25);
}

.outline-btn {
    padding: 10px 15px;

    color: var(--ink);

    background: white;

    border:
        1px solid var(--line);
}

.outline-btn:hover {
    background: #f8f9fc;
    border-color: #d5dae4;
}

.ghost-btn {
    padding: 12px 18px;

    color: white;

    background:
        rgba(255, 255, 255, 0.1);

    border:
        1px solid
        rgba(255, 255, 255, 0.22);
}

.danger-btn {
    padding: 10px 14px;

    color: var(--danger);

    background: #fff0ee;
}

.view-btn {
    padding: 10px 16px;

    color: white;

    background: #10172b;
}

.small-btn {
    min-height: 36px;

    padding: 8px 10px;

    font-size: 0.76rem;
}

.full-btn {
    width: 100%;
    margin-top: 6px;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;
    overflow: hidden;

    padding: 78px 5% 0;

    color: white;

    background:
        linear-gradient(
            135deg,
            #0a1020 0%,
            #151936 52%,
            #102035 100%
        );
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.024) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.024) 1px,
            transparent 1px
        );

    background-size: 48px 48px;
}

.hero-glow {
    position: absolute;

    border-radius: 999px;

    filter: blur(16px);

    opacity: 0.72;
}

.hero-glow-one {
    width: 420px;
    height: 420px;

    top: -180px;
    left: -100px;

    background:
        rgba(108, 92, 231, 0.25);
}

.hero-glow-two {
    width: 380px;
    height: 380px;

    right: -110px;
    bottom: 15px;

    background:
        rgba(32, 199, 164, 0.15);
}

.hero-shell {
    position: relative;
    z-index: 2;

    max-width: 1240px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, 0.92fr);

    gap: 72px;

    align-items: center;

    padding-bottom: 88px;
}

.hero-copy {
    max-width: 730px;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 8px 12px;

    border-radius: 999px;

    color: #dfe5ff;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    font-size: 0.8rem;
    font-weight: 750;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;

    border-radius: 999px;

    background: var(--accent);

    box-shadow:
        0 0 0 5px
        rgba(32, 199, 164, 0.13);
}

.hero h1 {
    margin-top: 24px;

    font-size:
        clamp(
            3.4rem,
            7vw,
            6.7rem
        );

    line-height: 0.93;

    letter-spacing: -0.07em;

    font-weight: 900;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #a69dff,
            #72e5ce 75%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-copy > p {
    max-width: 660px;

    margin-top: 25px;

    color: #b9c1d3;

    font-size: 1.06rem;
}

.hero-actions {
    margin-top: 30px;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn {
    min-height: 48px;
}

.trust-row {
    margin-top: 40px;

    padding-top: 22px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.1);
}

.trust-item {
    display: grid;
    gap: 2px;
}

.trust-item strong {
    font-size: 0.91rem;
}

.trust-item span {
    color: #8f99ad;
    font-size: 0.74rem;
}


/* =====================================================
   HERO CARDS
===================================================== */

.hero-panel {
    position: relative;
    min-height: 440px;
}

.hero-card {
    position: absolute;

    border-radius: 28px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    background:
        rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(18px);

    box-shadow:
        0 28px 80px
        rgba(0, 0, 0, 0.28);
}

.hero-card-front {
    width: min(380px, 90%);

    top: 40px;
    right: 0;

    padding: 18px;

    transform: rotate(2deg);
}

.hero-card-back {
    width: 310px;

    bottom: 25px;
    left: 0;

    padding: 16px;

    transform: rotate(-7deg);

    opacity: 0.72;
}

.mini-topline,
.mini-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-tag {
    padding: 6px 9px;

    border-radius: 999px;

    color: #79e7d0;

    background:
        rgba(32, 199, 164, 0.14);

    font-size: 0.72rem;
    font-weight: 750;
}

.mini-heart {
    font-size: 1.35rem;
}

.mini-image {
    margin: 14px 0;

    overflow: hidden;

    border-radius: 20px;
}

.mini-image-a {
    height: 155px;

    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(255, 255, 255, 0.35),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #30406d,
            #5b6ea8
        );
}

.mini-image-b {
    height: 210px;

    background:
        radial-gradient(
            circle at 66% 24%,
            rgba(255, 255, 255, 0.35),
            transparent 23%
        ),
        linear-gradient(
            135deg,
            #5844d4,
            #1ab399
        );
}

.mini-title {
    font-size: 1.07rem;
    font-weight: 820;
}

.mini-meta {
    margin-top: 3px;

    color: #aeb7ca;

    font-size: 0.78rem;
}

.mini-bottom {
    margin-top: 18px;
}

.mini-bottom strong {
    font-size: 1.34rem;
}

.mini-buy {
    padding: 7px 10px;

    border-radius: 9px;

    color: #11182c;

    background: white;

    font-size: 0.75rem;
    font-weight: 800;
}

.mini-lines {
    display: grid;
    gap: 8px;
}

.mini-lines span {
    height: 8px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.13);
}

.mini-lines span:nth-child(2) {
    width: 75%;
}

.mini-lines span:nth-child(3) {
    width: 45%;
}


/* =====================================================
   SEARCH
===================================================== */

.search-shell {
    position: relative;
    z-index: 10;

    max-width: 1180px;

    margin: 0 auto;

    padding-bottom: 34px;
}

.search-box {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        220px
        auto;

    gap: 8px;

    padding: 10px;

    border-radius: 22px;

    background: white;

    box-shadow:
        0 24px 80px
        rgba(4, 9, 25, 0.22);
}

.search-field {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 14px;

    border-radius: 14px;

    background: var(--surface-soft);
}

.search-icon {
    color: #8a91a3;
    font-size: 1.15rem;
}

.search-box input,
.search-box select {
    min-height: 50px;

    border: none;

    outline: none;

    color: var(--ink);

    background: transparent;
}

.search-box select {
    padding: 0 14px;

    border-radius: 14px;

    background: var(--surface-soft);
}


/* =====================================================
   MARKETPLACE
===================================================== */

.marketplace {
    max-width: 1280px;

    margin: 0 auto;

    padding: 80px 5% 90px;
}

.section-heading {
    margin-bottom: 30px;

    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 28px;
}

.section-heading > div {
    max-width: 760px;
}

.section-kicker {
    color: var(--brand);

    font-size: 0.71rem;
    font-weight: 850;

    letter-spacing: 0.16em;
}

.section-heading h2,
.safety-copy h2 {
    margin-top: 7px;

    font-size:
        clamp(
            2rem,
            4vw,
            3.4rem
        );

    line-height: 1.05;

    letter-spacing: -0.05em;
}

.section-subtitle {
    max-width: 690px;

    margin-top: 10px;

    color: var(--muted);
}


/* =====================================================
   LISTINGS
===================================================== */

.listing-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(275px, 1fr)
        );

    gap: 22px;
}

.listing-card {
    position: relative;

    overflow: hidden;

    border-radius: 22px;

    border:
        1px solid var(--line);

    background: white;

    box-shadow: var(--shadow-sm);

    transition: 0.22s ease;
}

.listing-card:hover {
    transform: translateY(-5px);

    border-color: #d5dbe6;

    box-shadow: var(--shadow);
}

.listing-image {
    width: 100%;
    height: 220px;

    display: block;

    object-fit: cover;

    background: #edf1f6;
}

.listing-info {
    padding: 18px;
}

.listing-category,
.status-pill {
    min-height: 26px;

    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 999px;

    color: var(--brand-dark);

    background: var(--brand-soft);

    font-size: 0.68rem;
    font-weight: 850;
}

.favorite-btn {
    float: right;

    width: 35px;
    height: 35px;

    border: none;
    border-radius: 11px;

    background: #f7f8fb;

    font-size: 1rem;
}

.listing-title {
    margin-top: 12px;

    font-size: 1.12rem;

    letter-spacing: -0.02em;
}

.listing-description {
    min-height: 42px;

    margin-top: 6px;

    color: var(--muted);

    font-size: 0.87rem;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.card-meta {
    margin-top: 9px;

    color: #8890a1;

    font-size: 0.76rem;
}

.listing-bottom {
    margin-top: 17px;
    padding-top: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border-top:
        1px solid var(--line);
}

.listing-price {
    font-size: 1.27rem;
    font-weight: 900;

    letter-spacing: -0.04em;
}

.sold-overlay {
    opacity: 0.68;
}

.sold-label {
    display: inline-flex;

    margin-top: 10px;

    color: #b42318;

    font-size: 0.78rem;
    font-weight: 850;
}


/* =====================================================
   NO RESULTS
===================================================== */

.no-results {
    padding: 64px 20px;

    text-align: center;

    color: var(--muted);

    background: white;

    border:
        1px dashed
        #ced4df;

    border-radius: 28px;
}

.empty-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 12px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    color: var(--brand);

    background: var(--surface-soft);

    font-size: 1.5rem;
}

.no-results h3 {
    color: var(--ink);
}


/* =====================================================
   SAFETY
===================================================== */

.safety-section {
    padding: 90px 5%;

    color: white;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(108, 92, 231, 0.24),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #0b1020,
            #151b31
        );
}

.safety-shell {
    max-width: 1220px;

    margin: 0 auto;
}

.safety-copy {
    max-width: 760px;
}

.light-kicker {
    color: #9389ff;
}

.safety-copy p:last-child {
    max-width: 700px;

    margin-top: 14px;

    color: #aeb7ca;
}

.feature-grid {
    margin-top: 34px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.feature-card {
    padding: 22px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(12px);
}

.feature-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: #b8b1ff;

    background:
        rgba(126, 112, 255, 0.16);

    font-weight: 850;
}

.feature-card h3 {
    margin-top: 16px;

    font-size: 1rem;
}

.feature-card p {
    margin-top: 5px;

    color: #9fa9bc;

    font-size: 0.84rem;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 28px 5%;

    color: #7f889a;

    background: #080c17;
}

.footer-brand {
    color: white;

    font-size: 1.06rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px 18px;
}

.footer-links button {
    padding: 5px 0;

    border: none;

    color: #9ba4b7;

    background: transparent;

    font-size: 0.78rem;
}

.footer-links button:hover {
    color: white;
}


/* =====================================================
   MODALS
===================================================== */

.modal {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    overflow-y: auto;

    background:
        rgba(7, 11, 23, 0.69);

    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;

    width: 100%;
    max-width: 540px;

    max-height: 92vh;

    overflow-y: auto;

    padding: 30px;

    border-radius: 24px;

    background: white;

    border:
        1px solid
        rgba(255, 255, 255, 0.65);

    box-shadow: var(--shadow-lg);
}

.wide-modal {
    max-width: 820px;
}

.close-btn {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 12px;

    color: #72798a;

    background: #f2f4f8;

    font-size: 1.35rem;
    line-height: 1;
}

.modal-heading {
    padding-right: 42px;
}

.modal-content h2 {
    letter-spacing: -0.04em;
}

.modal-description {
    margin-top: 5px;
    margin-bottom: 18px;

    color: var(--muted);
}

.auth-brand {
    margin-bottom: 18px;
}


/* =====================================================
   FORMS
===================================================== */

form {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

form label {
    margin-top: 8px;

    color: #42495a;

    font-size: 0.78rem;
    font-weight: 800;
}

.form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}

.form-grid > div {
    display: flex;
    flex-direction: column;
}

form input,
form select,
form textarea {
    width: 100%;

    padding: 12px 13px;

    border:
        1px solid
        #dce1ea;

    border-radius: 12px;

    outline: none;

    color: var(--ink);

    background: #fbfcfe;

    transition: 0.18s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #a89ff2;

    background: white;

    box-shadow:
        0 0 0 4px
        rgba(108, 92, 231, 0.09);
}

form textarea {
    min-height: 105px;

    resize: vertical;
}

.auth-switch {
    margin-top: 16px;

    text-align: center;

    color: var(--muted);

    font-size: 0.88rem;
}

.auth-switch button {
    border: none;

    color: var(--brand);

    background: transparent;

    font-weight: 850;
}

.auth-message {
    margin-top: 12px;

    text-align: center;

    color: var(--brand-dark);

    font-size: 0.85rem;
}


/* =====================================================
   NEW LAUNCH FORM UI
===================================================== */

.launch-listing-fields,
.launch-profile-fields {
    margin-top: 10px;
}

.form-help,
.privacy-note {
    margin-top: 10px;

    padding: 12px;

    border-radius: 12px;

    color: var(--muted);

    background: var(--surface-soft);

    font-size: 0.76rem;
}

.check-row {
    display: flex !important;
    align-items: center;

    gap: 9px;

    margin-top: 12px;
}

.check-row input {
    width: auto;

    flex-shrink: 0;
}


/* =====================================================
   PROFILE + TRUST
===================================================== */

.profile-header,
.details-seller,
.dashboard-item {
    display: flex;
    align-items: center;

    gap: 12px;
}

.profile-header {
    margin-bottom: 20px;
}

.profile-avatar,
.seller-avatar {
    width: 62px;
    height: 62px;

    flex-shrink: 0;

    overflow: hidden;

    display: grid;
    place-items: center;

    border-radius: 18px;

    background: #f0f2f7;

    font-size: 1.5rem;
}

.profile-avatar img,
.seller-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.profile-trust-panel {
    margin-top: 18px;

    padding: 15px;

    border-radius: 16px;

    background: #f8f9fc;

    border:
        1px solid var(--line);
}

.trust-badge-grid {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.trust-badge-grid.compact {
    margin-top: 8px;
}

.trust-badge {
    min-height: 28px;

    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    color: #555e71;

    background: #eef1f6;

    font-size: 0.69rem;
    font-weight: 780;
}

.trust-badge.verified {
    color: #087a61;

    background: #e9f9f4;
}


/* =====================================================
   LISTING DETAILS
===================================================== */

.details-image {
    width: 100%;
    height: 360px;

    display: block;

    object-fit: cover;

    margin-bottom: 18px;

    border-radius: 20px;

    background: #eef1f6;
}

.details-price {
    margin-top: 6px;

    font-size: 2rem;
    font-weight: 900;

    letter-spacing: -0.05em;
}

.details-description {
    margin: 14px 0;

    color: var(--muted);

    white-space: pre-wrap;
}

.details-seller {
    margin: 16px 0;

    padding: 14px;

    border-radius: 16px;

    background: #f8f9fc;

    border:
        1px solid var(--line);
}

.delivery-summary {
    margin: 14px 0;

    padding: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border-radius: 14px;

    background: var(--surface-soft);
}

.delivery-summary span {
    color: var(--muted);
}

.action-row {
    margin-top: 14px;

    display: flex;
    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

.verified-review-note {
    margin-top: 18px;

    padding: 13px;

    border-radius: 12px;

    color: var(--muted);

    background: #f8f9fc;

    border:
        1px solid var(--line);

    font-size: 0.82rem;
}


/* =====================================================
   DASHBOARD / ORDERS / OFFERS
===================================================== */

#dashboardContent,
#ordersContent {
    margin-top: 18px;
}

.dashboard-item {
    justify-content: space-between;

    padding: 14px 0;

    border-bottom:
        1px solid var(--line);
}

.dashboard-main {
    display: flex;
    align-items: center;

    gap: 12px;
}

.dashboard-item img,
.dashboard-main img {
    width: 74px;
    height: 58px;

    object-fit: cover;

    border-radius: 12px;

    background: #eef1f6;
}

.order-card,
.offer-card {
    margin-bottom: 12px;

    padding: 18px;

    border-radius: 16px;

    border:
        1px solid var(--line);

    background:
        linear-gradient(
            180deg,
            white,
            #fafbfe
        );

    box-shadow:
        0 5px 16px
        rgba(14, 21, 40, 0.04);
}

.offer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.order-card h3,
.offer-card strong {
    letter-spacing: -0.02em;
}

.order-card p,
.offer-card div {
    color: var(--muted);
}

.order-card small {
    display: block;

    margin-top: 8px;

    color: #9198a8;
}

.empty-state {
    padding: 40px 12px;

    text-align: center;

    color: var(--muted);
}


/* =====================================================
   MESSAGES
===================================================== */

.conversation {
    min-height: 130px;
    max-height: 360px;

    margin: 16px 0;

    overflow-y: auto;

    padding: 12px;

    border-radius: 16px;

    background: #f6f7fb;

    border:
        1px solid var(--line);
}

.bubble-row {
    display: flex;

    margin: 8px 0;
}

.bubble-row.mine {
    justify-content: flex-end;
}

.bubble {
    max-width: 78%;

    padding: 10px 13px;

    border-radius:
        15px 15px 15px 5px;

    color: var(--ink);

    background: white;

    border:
        1px solid
        #e4e7ed;
}

.mine .bubble {
    color: white;

    border: none;

    border-radius:
        15px 15px 5px 15px;

    background:
        linear-gradient(
            135deg,
            var(--brand),
            #7f70ff
        );
}

.bubble small {
    opacity: 0.7;

    font-size: 0.67rem;
}


/* =====================================================
   REVIEWS
===================================================== */

.review-card {
    padding: 14px 0;

    border-bottom:
        1px solid var(--line);
}

.review-stars {
    color: var(--warning);

    letter-spacing: 1px;
}


/* =====================================================
   LEGAL
===================================================== */

.legal-text {
    margin-top: 22px;

    color: var(--muted);

    line-height: 1.75;
}

.legal-text h3 {
    margin-top: 24px;
    margin-bottom: 7px;

    color: var(--ink);

    font-size: 1.05rem;
}

.legal-text p {
    margin-bottom: 13px;
}

.legal-text ul {
    margin: 10px 0 18px;

    padding-left: 22px;
}

.legal-text li {
    margin-bottom: 8px;
}


/* =====================================================
   DESKTOP OPTIMIZATION
===================================================== */

@media (min-width: 1181px) {

    .navbar {
        padding-left: 4%;
        padding-right: 4%;
    }

    .nav-actions {
        max-width: 68%;
    }

    .nav-actions .small-btn {
        white-space: nowrap;
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .main-nav {
        display: none;
    }

    .hero-shell {
        grid-template-columns: 1fr;

        gap: 34px;
    }

    .hero-panel {
        min-height: 360px;

        max-width: 700px;
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .nav-actions {
        max-width: 72%;
    }
}


/* =====================================================
   TABLET / LARGE PHONE
===================================================== */

@media (max-width: 820px) {

    .navbar {
        min-height: auto;

        align-items: flex-start;

        padding: 10px 4%;

        gap: 10px;
    }

    .brand {
        flex-shrink: 0;

        margin-top: 3px;
    }

    .nav-actions {
        width: 100%;
        max-width: none;

        justify-content: flex-end;

        gap: 5px;
    }

    .nav-actions .small-btn,
    .nav-actions .outline-btn,
    .nav-actions .primary-btn {
        min-height: 34px;

        padding: 7px 9px;

        border-radius: 10px;

        font-size: 0.68rem;
    }

    .hero {
        padding:
            58px 5% 0;
    }

    .hero h1 {
        font-size:
            clamp(
                3rem,
                12vw,
                5.2rem
            );
    }

    .hero-panel {
        min-height: 320px;
    }

    .trust-row {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .search-box {
        grid-template-columns: 1fr;

        padding: 9px;
    }

    .search-box select,
    .search-btn {
        width: 100%;
    }

    .marketplace {
        padding:
            82px 5% 70px;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .delivery-summary {
        align-items: flex-start;

        flex-direction: column;
    }

    .offer-card {
        align-items: flex-start;

        flex-direction: column;
    }

    .offer-card .action-row {
        width: 100%;
    }

    footer {
        align-items: flex-start;

        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}


/* =====================================================
   PHONE
===================================================== */

@media (max-width: 600px) {

    body {
        overflow-x: hidden;
    }

    .navbar {
        position: sticky;

        flex-wrap: wrap;

        padding:
            8px 12px;
    }

    .brand-word {
        font-size: 1.03rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;

        border-radius: 11px;
    }

    .brand-mark svg {
        width: 23px;
        height: 23px;
    }

    .nav-actions {
        order: 3;

        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 5px;
    }

    .nav-actions .small-btn,
    .nav-actions .outline-btn,
    .nav-actions .primary-btn {
        width: 100%;

        min-width: 0;

        min-height: 36px;

        padding: 6px 4px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;

        font-size: 0.63rem;
    }

    .hero {
        padding:
            46px 16px 0;
    }

    .hero-shell {
        gap: 22px;

        padding-bottom: 55px;
    }

    .eyebrow-pill {
        font-size: 0.72rem;
    }

    .hero h1 {
        margin-top: 18px;

        font-size:
            clamp(
                2.8rem,
                15vw,
                4.5rem
            );
    }

    .hero-copy > p {
        margin-top: 18px;

        font-size: 0.96rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-panel {
        min-height: 340px;
        margin-bottom: 18px;
    }

    .hero-card-back {
        display: none;
    }

    .hero-card-front {
        position: relative;

        width: 100%;

        top: 0;
        right: auto;
        left: auto;

        transform: none;
    }

    .mini-image-b {
        height: 150px;
    }

    .search-shell {
        position: relative;
        z-index: 10;
        margin-top: 0;
        padding:
            30px 12px 25px;
    }

    .search-box {
        border-radius: 17px;
    }

    .search-field,
    .search-box select {
        border-radius: 11px;
    }

    .marketplace {
        padding:
            68px 14px 60px;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-heading h2,
    .safety-copy h2 {
        font-size:
            clamp(
                1.8rem,
                9vw,
                2.6rem
            );
    }

    .sell-cta {
        width: 100%;
    }

    .listing-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .listing-card {
        border-radius: 18px;
    }

    .listing-image {
        height: 220px;
    }

    .listing-info {
        padding: 15px;
    }

    .listing-title {
        font-size: 1.05rem;
    }

    .listing-bottom {
        gap: 8px;
    }

    .listing-price {
        font-size: 1.16rem;
    }

    .view-btn {
        padding:
            9px 13px;
    }

    .safety-section {
        padding:
            62px 14px;
    }

    .feature-card {
        padding: 18px;
    }

    footer {
        padding:
            24px 14px;
    }

    .modal {
        align-items: flex-end;

        padding: 8px;
    }

    .modal-content {
        max-height: 94vh;

        padding:
            22px 16px;

        border-radius:
            24px 24px 14px 14px;
    }

    .wide-modal {
        max-width: 100%;
    }

    .details-image {
        height: 240px;

        border-radius: 16px;
    }

    .details-price {
        font-size: 1.7rem;
    }

    .details-seller {
        align-items: flex-start;
    }

    .seller-avatar,
    .profile-avatar {
        width: 54px;
        height: 54px;

        border-radius: 15px;
    }

    .action-row {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        width: 100%;
    }

    .action-row > * {
        width: 100%;
    }

    .dashboard-item {
        align-items: flex-start;

        flex-direction: column;
    }

    .dashboard-main {
        width: 100%;
    }

    .dashboard-item .action-row {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .order-card,
    .offer-card {
        padding: 15px;
    }

    .conversation {
        max-height: 300px;
    }

    .bubble {
        max-width: 88%;
    }
}


/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 390px) {

    .nav-actions {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .hero-panel {
        min-height: 350px;
        margin-bottom: 20px;
    }

    .listing-image {
        height: 205px;
    }

    .action-row {
        grid-template-columns: 1fr;
    }

    .dashboard-item .action-row {
        grid-template-columns: 1fr 1fr;
    }

    .trust-badge-grid {
        gap: 6px;
    }

    .trust-badge {
        font-size: 0.65rem;
    }
}
