/* ==============================
     PopconPop Detail
  ============================== */

.pcp-page.pcp-detail-page {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 18px 120px;
}

.pcp-detail-page {
    --pcp-detail-accent: #ff3045;
    --pcp-detail-accent-dark: #e51f35;
    --pcp-detail-accent-soft: rgba(255, 48, 69, .12);
}

.pcp-detail-page.theme-red,
.pcp-detail-hero-red {
    --pcp-detail-accent: #ff3045;
    --pcp-detail-accent-dark: #e51f35;
    --pcp-detail-accent-soft: rgba(255, 48, 69, .12);
}

.pcp-detail-page.theme-orange,
.pcp-detail-hero-orange {
    --pcp-detail-accent: #ff7a00;
    --pcp-detail-accent-dark: #fb8500;
    --pcp-detail-accent-soft: rgba(255, 122, 0, .13);
}

.pcp-detail-page.theme-green,
.pcp-detail-hero-green {
    --pcp-detail-accent: #31b96f;
    --pcp-detail-accent-dark: #159947;
    --pcp-detail-accent-soft: rgba(49, 185, 111, .13);
}

.pcp-detail-page.theme-blue,
.pcp-detail-hero-blue {
    --pcp-detail-accent: #3b82f6;
    --pcp-detail-accent-dark: #2563eb;
    --pcp-detail-accent-soft: rgba(59, 130, 246, .13);
}

.pcp-detail-page.theme-purple,
.pcp-detail-hero-purple {
    --pcp-detail-accent: #7c3aed;
    --pcp-detail-accent-dark: #6d28d9;
    --pcp-detail-accent-soft: rgba(124, 58, 237, .13);
}

.pcp-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pcp-detail-back,
.pcp-detail-mini-btn,
.pcp-detail-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: rgba(255, 255, 255, .78);
    color: #475569;
    font-size: .9rem;
    font-weight: 850;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 15px;
    box-shadow: 6px 8px 18px rgba(15, 23, 42, .08), -6px -6px 16px rgba(255,255,255,.9);
}

.pcp-detail-mini-btn {
    cursor: pointer;
}

.pcp-detail-hero {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
    padding: 28px;
    border-radius: 34px;
    background:
            radial-gradient(circle at 0% 0%, var(--pcp-detail-accent-soft), transparent 36%),
            linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: var(--pcp-shadow);
    overflow: hidden;
}

.pcp-detail-thumb-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pcp-detail-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    color: #fff;
    font-size: 1.65rem;
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -.04em;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 10px 14px 28px rgba(15,23,42,.12);
}

.pcp-detail-thumb.has-image {
    background: #fff;
}

.pcp-detail-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

.pcp-detail-thumb.has-image span {
    display: none;
}

.pcp-detail-thumb.is-red {
    background: linear-gradient(135deg, #ff3045, #ec4899);
}

.pcp-detail-thumb.is-orange {
    background: linear-gradient(135deg, #ffb703, #fb8500);
}

.pcp-detail-thumb.is-green {
    background: linear-gradient(135deg, #8de8d5, #2fb86f);
}

.pcp-detail-thumb.is-purple {
    background: linear-gradient(135deg, #6d5dfc, #b337ff);
}

.pcp-detail-thumb.is-blue {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.pcp-detail-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pcp-detail-primary-btn,
.pcp-detail-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    min-width: 146px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    font-size: .95rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 8px 10px 22px rgba(15,23,42,.12);
    white-space: nowrap;
}

.pcp-detail-primary-btn {
    background: linear-gradient(135deg, var(--pcp-detail-accent), var(--pcp-detail-accent-dark));
    color: #fff;
}

.pcp-detail-secondary-btn {
    background: rgba(255,255,255,.88);
    color: #475569;
    border: 1px solid rgba(15,23,42,.08);
}

.pcp-detail-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pcp-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pcp-badge,
.pcp-detail-dday {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 950;
    line-height: 1;
}

.pcp-badge {
    background: linear-gradient(135deg, var(--pcp-detail-accent), var(--pcp-detail-accent-dark));
    color: #fff;
}

.pcp-badge.soft {
    background: #fff1f2;
    color: #ff3045;
}

.pcp-detail-dday {
    background: #f1f5f9;
    color: #334155;
}

.pcp-detail-dday.is-deadline {
    background: #e2e8f0;
    color: #64748b;
}

.pcp-detail-title {
    margin: 0;
    color: #111827;
    font-size: clamp(2.2rem, 4.4vw, 4rem);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -.07em;
    word-break: keep-all;
}

.pcp-detail-summary {
    margin: 16px 0 0;
    color: #475569;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.75;
    word-break: keep-all;
}

.pcp-detail-promo-box {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 22px;
    background:
            linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,250,252,.86)),
            radial-gradient(circle at 0% 0%, var(--pcp-detail-accent-soft), transparent 36%);
    border: 1px solid rgba(15,23,42,.07);
    box-shadow: var(--pcp-soft-shadow);
}

.pcp-detail-promo-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--pcp-detail-accent);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .04em;
}

.pcp-detail-promo-text {
    margin: 0;
    color: #111827;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.7;
    word-break: keep-all;
}

.pcp-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.pcp-detail-meta-card {
    min-width: 0;
    padding: 16px 17px;
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: var(--pcp-soft-shadow);
}

.pcp-detail-meta-card i {
    display: inline-flex;
    margin-right: 5px;
    color: var(--pcp-detail-accent);
}

.pcp-detail-meta-card span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 850;
    margin-bottom: 5px;
}

.pcp-detail-meta-card strong {
    display: block;
    color: #111827;
    font-size: .98rem;
    font-weight: 950;
    line-height: 1.45;
    word-break: keep-all;
}

.pcp-detail-section,
.pcp-detail-notice {
    margin-top: 20px;
    padding: 26px;
    border-radius: 30px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: var(--pcp-soft-shadow);
}

.pcp-detail-section-head span {
    display: block;
    color: var(--pcp-detail-accent);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    margin-bottom: 5px;
}

.pcp-detail-section-head h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 950;
    letter-spacing: -.04em;
}

.pcp-detail-info-list {
    display: grid;
    gap: 10px;
}

.pcp-detail-info-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15,23,42,.07);
}

.pcp-detail-info-row:last-child {
    border-bottom: 0;
}

.pcp-detail-info-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: .92rem;
    font-weight: 850;
}

.pcp-detail-info-label i {
    color: var(--pcp-detail-accent);
}

.pcp-detail-info-value {
    color: #111827;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.65;
    word-break: keep-all;
}

.pcp-detail-info-value.is-promo {
    color: #334155;
    font-weight: 750;
}

.pcp-detail-notice {
    display: flex;
    gap: 14px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.pcp-detail-notice-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff;
    color: #ff7a00;
    box-shadow: var(--pcp-soft-shadow);
}

.pcp-detail-notice strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
    font-weight: 950;
}

.pcp-detail-notice p {
    margin: 0;
    color: #475569;
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.65;
    word-break: keep-all;
}

.pcp-detail-bottom-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pcp-detail-secondary-link {
    min-height: 48px;
    padding: 0 18px;
}

/* ==============================
   Correction Modal
============================== */

.pcp-correction-modal {
    text-align: left;
}

.pcp-correction-title {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    color: #111827;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.5;
    word-break: keep-all;
}

.pcp-correction-guide {
    margin: 12px 0;
    color: #64748b;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.5;
    word-break: keep-all;
}

.pcp-correction-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pcp-correction-option {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.07);
    color: #334155;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
}

.pcp-correction-option input {
    accent-color: var(--pcp-detail-accent);
}

.pcp-correction-etc-wrap {
    display: none;
    margin-top: 10px;
}

.pcp-correction-etc-wrap.is-active {
    display: block;
}

.pcp-correction-etc {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.12);
    resize: vertical;
    outline: none;
}

.pcp-swal-confirm.is-red,
.pcp-swal-confirm.is-orange,
.pcp-swal-confirm.is-green,
.pcp-swal-confirm.is-blue,
.pcp-swal-confirm.is-purple {
    color: #fff;
}

.pcp-swal-confirm.is-red {
    background: linear-gradient(135deg, #ff3045, #e51f35);
}

.pcp-swal-confirm.is-orange {
    background: linear-gradient(135deg, #ffb703, #fb8500);
}

.pcp-swal-confirm.is-green {
    background: linear-gradient(135deg, #31b96f, #159947);
}

.pcp-swal-confirm.is-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.pcp-swal-confirm.is-purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* ==============================
   Mobile
============================== */

@media (max-width: 768px) {
    .pcp-page.pcp-detail-page {
        width: min(100%, 560px);
        max-width: 560px;
        padding: 18px 18px 110px;
    }

    .pcp-detail-topbar {
        margin-bottom: 14px;
    }

    .pcp-detail-back,
    .pcp-detail-mini-btn {
        font-size: .84rem;
        padding: 9px 12px;
    }

    .pcp-detail-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
        border-radius: 28px;
    }

    .pcp-detail-thumb {
        aspect-ratio: 1 / 1;
        border-radius: 24px;
    }

    .pcp-detail-thumb img {
        padding: 8px;
        object-fit: contain;
    }

    .pcp-detail-actions,
    .pcp-detail-bottom-actions {
        flex-direction: column;
    }

    .pcp-detail-primary-btn,
    .pcp-detail-secondary-btn,
    .pcp-detail-secondary-link {
        width: 100%;
    }

    .pcp-detail-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .pcp-detail-summary {
        font-size: .98rem;
    }

    .pcp-detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .pcp-detail-section,
    .pcp-detail-notice {
        padding: 20px;
        border-radius: 24px;
    }

    .pcp-detail-info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .pcp-detail-notice {
        align-items: flex-start;
    }

    .pcp-correction-options {
        grid-template-columns: 1fr;
    }
}
.pcp-detail-view-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #475569;
    border: 1px solid rgba(15,23,42,.07);
    font-size: .8rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 4px 6px 14px rgba(15,23,42,.06);
}

.pcp-detail-view-chip i {
    color: var(--pcp-detail-accent);
}

.pcp-detail-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pcp-detail-check-card {
    display: flex;
    gap: 13px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: var(--pcp-soft-shadow);
}

.pcp-detail-check-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff;
    color: var(--pcp-detail-accent);
    box-shadow: 5px 7px 16px rgba(15,23,42,.07);
}

.pcp-detail-check-card span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 850;
    margin-bottom: 4px;
}

.pcp-detail-check-card strong {
    display: block;
    color: #111827;
    font-size: .98rem;
    font-weight: 950;
    line-height: 1.45;
    word-break: keep-all;
}

.pcp-detail-check-card p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.5;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .pcp-detail-check-grid {
        grid-template-columns: 1fr;
    }
}
.pcp-popping-section {
    margin-top: 20px;
}

.pcp-popping-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 30px;
    background:
            radial-gradient(circle at 0% 0%, var(--pcp-detail-accent-soft), transparent 34%),
            linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: var(--pcp-soft-shadow);
}

.pcp-popping-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pcp-popping-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pcp-detail-accent);
    font-size: .8rem;
    font-weight: 950;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.pcp-popping-title {
    margin: 0;
    color: #111827;
    font-size: 1.6rem;
    font-weight: 950;
    letter-spacing: -.04em;
}

.pcp-popping-copy {
    margin: 8px 0 0;
    color: #64748b;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.6;
    word-break: keep-all;
}

.pcp-popping-score {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 22px;
    text-align: center;
    background: #fff;
    box-shadow: 8px 10px 20px rgba(15,23,42,.08);
}

.pcp-popping-score strong {
    display: block;
    color: var(--pcp-detail-accent);
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.05em;
}

.pcp-popping-score span {
    display: block;
    margin-top: 6px;
    color: #475569;
    font-size: .82rem;
    font-weight: 850;
}

.pcp-popping-meter-track {
    position: relative;
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(15,23,42,.06);
}

.pcp-popping-meter-fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #facc15 0%, #fb923c 55%, #ff3045 100%);
}

.pcp-popping-meter-pop {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    line-height: 1;
}

.pcp-popping-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 850;
}

.pcp-popping-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(15,23,42,.06);
    color: #111827;
    font-size: .9rem;
    font-weight: 900;
}

.pcp-popping-status i {
    color: var(--pcp-detail-accent);
}

.pcp-popping-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.pcp-popping-stat {
    padding: 15px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 4px 6px 16px rgba(15,23,42,.05);
}

.pcp-popping-stat span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: .8rem;
    font-weight: 850;
}

.pcp-popping-stat strong {
    display: block;
    color: #111827;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.3;
}

.pcp-popping-desc {
    margin: 16px 0 0;
    color: #475569;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.65;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .pcp-popping-card {
        padding: 20px;
        border-radius: 24px;
    }

    .pcp-popping-head {
        flex-direction: column;
        align-items: stretch;
    }

    .pcp-popping-score {
        width: 100%;
    }

    .pcp-popping-stats {
        grid-template-columns: 1fr;
    }

    .pcp-popping-title {
        font-size: 1.35rem;
    }
}

.pcp-detail-share-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.pcp-detail-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pcp-detail-share-btn:hover {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.pcp-detail-share-btn i {
    font-size: 16px;
}

@media (max-width: 420px) {
    .pcp-detail-share-row {
        grid-template-columns: 1fr;
    }
}