/* =========================================================
   Marketplace Help & Safety Center
========================================================= */

.mp-help-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 18px 70px;
}

.mp-help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 32px;
    align-items: center;
    padding: 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 174, 51, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(35, 48, 59, 0.98), rgba(18, 24, 30, 0.98));
    border: 1px solid rgba(255, 174, 51, 0.35);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.mp-help-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    color: #ffffff;
}

.mp-help-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
}

.mp-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.mp-help-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;

    white-space: nowrap;
}

.mp-help-btn:hover {
    transform: translateY(-2px);
}

.mp-help-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #1f7a35, #ff9f1c);
    box-shadow: 0 10px 22px rgba(255, 159, 28, 0.25);
}

.mp-help-btn--secondary {
    color: #ffbf5b;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 174, 51, 0.35);
}

.mp-help-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mp-help-hero__mascot {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.mp-help-orbit {
    position: relative;
    width: min(330px, 78vw);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, rgba(255, 174, 51, 0.18), transparent 62%);
}

.mp-help-orbit::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 174, 51, 0.42);
}

.mp-help-orbit::after {
    content: "";
    position: absolute;
    inset: 56px;
    border-radius: 50%;
    background: rgba(255, 174, 51, 0.08);
    filter: blur(20px);
}

.mp-help-mascot-img {
    position: relative;
    z-index: 2;
    width: 210px;
    max-width: 70%;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.mp-help-orbit__item {
    position: absolute;
    z-index: 3;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    background: rgba(20, 28, 34, 0.96);
    border: 1px solid rgba(255, 174, 51, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    color: white;
}

.mp-help-orbit__item--one {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.mp-help-orbit__item--two {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.mp-help-orbit__item--three {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.mp-help-orbit__item--four {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.mp-help-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.mp-help-card,
.mp-help-section,
.mp-help-safety-panel {
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(35, 48, 59, 0.98), rgba(18, 24, 30, 0.98));
    border: 1px solid rgba(255, 174, 51, 0.24);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.mp-help-card {
    padding: 22px;
}

.mp-help-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.6rem;
    background: rgba(255, 174, 51, 0.12);
    margin-bottom: 18px;
}

.mp-help-card h2 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 10px;
}

.mp-help-card p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    margin: 0;
    font-size: 0.94rem;
}

.mp-help-section {
    margin-top: 24px;
    padding: 26px;
}

.mp-help-section__header {
    margin-bottom: 18px;
}

.mp-help-section__header h2,
.mp-help-safety-panel h2 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.mp-help-section__header p,
.mp-help-safety-panel p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    line-height: 1.65;
}

.mp-help-faq {
    display: grid;
    gap: 12px;
}

.mp-help-faq details {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mp-help-faq details[open] {
    border-color: rgba(255, 174, 51, 0.35);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.mp-help-faq summary {
    position: relative;
    padding: 16px 46px 16px 18px;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    list-style: none;
}

.mp-help-faq summary::-webkit-details-marker {
    display: none;
}

.mp-help-faq summary::after {
    content: "⌄";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffb347;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.mp-help-faq details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.mp-help-faq details p {
    padding: 0 18px 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.65;
}

.mp-help-safety-panel {
    margin-top: 24px;
    padding: 26px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background:
        radial-gradient(circle at left, rgba(255, 174, 51, 0.16), transparent 36%),
        linear-gradient(145deg, rgba(35, 48, 59, 0.98), rgba(18, 24, 30, 0.98));
}

.mp-help-form {
    display: grid;
    gap: 14px;
}

.mp-help-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mp-help-form input,
.mp-help-form select,
.mp-help-form textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 174, 51, 0.26);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 14px 15px;
    outline: none;
}

.mp-help-form textarea {
    min-height: 130px;
    resize: vertical;
}

.mp-help-form input::placeholder,
.mp-help-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

/* Mobile */
@media (max-width: 900px) {
    .mp-help-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 20px;
    }

    .mp-help-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .mp-help-actions {
        justify-content: center;
    }

    .mp-help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-help-safety-panel {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .mp-help-page {
        padding: 26px 12px 50px;
    }

    .mp-help-hero {
        border-radius: 22px;
    }

    .mp-help-hero__mascot {
        min-height: 250px;
    }

    .mp-help-orbit {
        width: min(270px, 86vw);
    }

    .mp-help-mascot-img {
        width: 165px;
    }

    .mp-help-orbit__item {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .mp-help-grid {
        grid-template-columns: 1fr;
    }

    .mp-help-form__row {
        grid-template-columns: 1fr;
    }

    .mp-help-btn {
        width: 100%;
    }
}

.mp-help-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    color: #1f7a35;
    background: #fff7e8;
    border: 1px solid rgba(255, 159, 28, 0.65);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-help-top-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

body.dark-mode .mp-help-top-link {
    color: #ffb347;
    background: rgba(255, 179, 71, 0.12);
    border: 1px solid rgba(255, 179, 71, 0.45);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body.dark-mode .mp-help-top-link:hover {
    background: rgba(255, 179, 71, 0.18);
    color: #ffc76a;
    box-shadow: 0 12px 24px rgba(255, 179, 71, 0.18);
}

/* =========================================================
   Help Center reusable topic modal
========================================================= */

.mp-help-card--clickable {
    width: 100%;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.mp-help-card--clickable:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 174, 51, 0.55);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.mp-help-card__more {
    display: inline-flex;
    margin-top: 14px;
    color: #ffb347;
    font-weight: 800;
    font-size: 0.9rem;
}

.mp-help-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.mp-help-modal.is-open {
    display: block;
}

.mp-help-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 14, 0.76);
    backdrop-filter: blur(5px);
}

.mp-help-modal__panel {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 28px));
    max-height: calc(100vh - 42px);
    overflow-y: auto;
    margin: 21px auto;
    padding: 26px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 174, 51, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(35, 48, 59, 0.98), rgba(18, 24, 30, 0.98));
    border: 1px solid rgba(255, 174, 51, 0.38);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.mp-help-modal__close {
    position: absolute;
    top: 10px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.7rem;
    line-height: 1;
    padding: 0;
}

.mp-help-modal__close:hover {
    background: rgba(255, 174, 51, 0.18);
    color: #ffb347;
}

.mp-help-modal__header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-right: 46px;
}

.mp-help-modal__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 1.8rem;
    background: rgba(255, 174, 51, 0.12);
    border: 1px solid rgba(255, 174, 51, 0.35);
}

.mp-help-modal__eyebrow {
    margin: 0 0 4px;
    color: #ffb347;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mp-help-modal h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.mp-help-modal__intro {
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    font-size: 1rem;
}

.mp-help-modal__tips {
    display: grid;
    gap: 12px;
}

.mp-help-modal__tip {
    padding: 15px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-help-modal__tip strong {
    display: block;
    color: #fff;
    margin-bottom: 5px;
    font-size: 0.98rem;
}

.mp-help-modal__tip span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.mp-help-modal__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

body.mp-help-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .mp-help-modal__panel {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .mp-help-modal__header {
        align-items: flex-start;
    }

    .mp-help-modal__icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 1.5rem;
    }

    .mp-help-modal__footer {
        justify-content: stretch;
    }
}

.mp-help-form select {
    color: #fff;
    background-color: #18222b;
}

.mp-help-form select option {
    color: #111;
    background-color: #fff;
}

/* ========================================
   Support Subject Suggestions
======================================== */

.mp-subject-wrap {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mp-subject-suggestions {
    display: none;
    margin-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.mp-subject-suggestions.is-visible {
    display: flex;
}

.mp-subject-suggestions__label {
    width: 100%;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 2px;
}

body.dark-mode .mp-subject-suggestions__label {
    color: rgba(255,255,255,0.72);
}

body:not(.dark-mode) .mp-subject-suggestions__label {
    color: #fff;
}

.mp-subject-suggestions__item {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.84rem;
    transition: all .18s ease;
}

/* DARK MODE */
body.dark-mode .mp-subject-suggestions__item {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

body.dark-mode .mp-subject-suggestions__item:hover {
    background: rgba(255,170,0,0.18);
}

/* LIGHT MODE */
body:not(.dark-mode) .mp-subject-suggestions__item {
    background: #f3f4f6;
    color: #222;
}

body:not(.dark-mode) .mp-subject-suggestions__item:hover {
    background: #ffe4a8;
}

.mp-help-support-notice {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 18px;
    background: rgba(255, 248, 225, 0.92);
    color: #3f2f0b;
    box-shadow: 0 10px 28px rgba(120, 84, 20, 0.08);
}

.mp-help-support-notice strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #92400e;
    font-size: 0.98rem;
    font-weight: 800;
}

.mp-help-support-notice p {
    margin: 0.25rem 0 0;
    color: #4b3b18;
    line-height: 1.55;
    font-size: 0.94rem;
}

body.dark-mode .mp-help-support-notice {
    border-color: rgba(255, 170, 40, 0.32);
    background: linear-gradient(
        135deg,
        rgba(255, 170, 40, 0.11),
        rgba(35, 45, 55, 0.92)
    );
    color: #f8fafc;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

body.dark-mode .mp-help-support-notice strong {
    color: #ffb020;
}

body.dark-mode .mp-help-support-notice p {
    color: rgba(255, 255, 255, 0.86);
}

.mp-support {
    margin: 1.5rem 0 1.75rem;
}

.mp-support-box {
    background: #fff8ea;
    border: 1px solid #f4b24a;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.mp-support-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #5b3410;
    margin-bottom: .45rem;
}

.mp-support-text {
    max-width: 720px;
    margin: 0 auto .9rem;
    color: #4b3a28;
    line-height: 1.55;
}

.mp-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .65rem 1.15rem;
    border-radius: 999px;
    background: #f59b23;
    color: #fff;
    border: 1px solid #f59b23;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mp-support-btn:hover {
    background: #e88912;
    border-color: #e88912;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}

body.dark-mode .mp-support-box {
    background: #2f2415;
    border-color: #a77727;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

body.dark-mode .mp-support-title {
    color: #ffd37a;
}

body.dark-mode .mp-support-text {
    color: #f4dfbd;
}

body.dark-mode .mp-support-btn {
    background: #f59b23;
    color: #1f1406;
    border-color: #f59b23;
}

body.dark-mode .mp-support-btn:hover {
    background: #ffb347;
    border-color: #ffb347;
    color: #1f1406;
}

@media (max-width: 640px) {
    .mp-support {
        margin: 1.1rem 0 1.35rem;
    }

    .mp-support-box {
        padding: 1.05rem 1rem;
        border-radius: 16px;
    }

    .mp-support-title {
        font-size: 1.15rem;
    }

    .mp-support-text {
        font-size: .95rem;
    }

    .mp-support-btn {
        width: 100%;
        padding: .75rem 1rem;
    }
}
