.nav a.active[href*='page=pricing'] {
    color: #1d4ed8;
}

.ext-pricing-main {
    background: radial-gradient(circle at 20% 15%, #e0f2fe 0%, #f8fbff 45%, #ffffff 100%);
    min-height: calc(100vh - 120px);
    margin-top: 0;
    padding-top: 0;
}

.ext-pricing-main.section {
    margin-top: 0;
    padding-top: 0;
}

.ext-pricing-head {
    margin: 0 0 18px;
}

.ext-pricing-head h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    color: #0f172a;
}

.ext-pricing-head p {
    margin: 8px 0 0;
    color: #475569;
}

.ext-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.ext-pricing-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(165deg, #eff6ff 0%, #f8fbff 45%, #ffffff 100%);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ext-pricing-card.is-recommend {
    border-color: #2563eb;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.2);
}

.ext-pricing-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.ext-pricing-intro {
    margin-top: 6px;
    color: #0ea5e9;
    font-weight: 600;
}

.ext-pricing-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
}

.ext-pricing-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ext-pricing-price-row strong {
    color: #dc2626;
    font-size: 34px;
    line-height: 1;
}

.ext-pricing-price-row del {
    color: #64748b;
}

.ext-pricing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ext-pricing-tags .tag {
    font-size: 12px;
    border-radius: 999px;
    padding: 4px 9px;
}

.ext-pricing-tags .recommend {
    color: #fff;
    background: #ef4444;
}

.ext-pricing-tags .save {
    color: #dc2626;
    background: #fee2e2;
}

.ext-pricing-tags .unit {
    color: #1d4ed8;
    background: #dbeafe;
}

.ext-pricing-services {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ext-pricing-services li {
    position: relative;
    padding-left: 22px;
    color: #334155;
}

.ext-pricing-services li::before {
    content: '√';
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 700;
}

.ext-pricing-services li.is-off::before {
    content: '×';
    color: #94a3b8;
}

.ext-pricing-services .is-highlight {
    color: #2563eb;
    font-weight: 700;
}

.ext-pricing-cta {
    margin-top: auto;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

#customerServiceBtn,
#customerServicePopup {
    display: none !important;
}

.ext-customer-widget {
    position: fixed;
    right: 18px;
    bottom: 70px;
    z-index: 1000;
}

body.share-page .ext-customer-widget {
    bottom: 122px;
}

.ext-customer-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #157AFF;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}

.ext-customer-btn:hover {
    background: rgba(21, 122, 255, .12);
    transform: translateY(-1px);
}

.ext-customer-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(24%) sepia(85%) saturate(3370%) hue-rotate(216deg) brightness(95%) contrast(95%);
}

.ext-customer-panel {
    position: absolute;
    right: 0;
    bottom: 54px;
    width: min(360px, calc(100vw - 32px));
    margin-top: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

.ext-customer-head {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.ext-customer-head img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
}

.ext-customer-head button {
    margin-left: auto;
    border: 0;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    cursor: pointer;
    color: #1d4ed8;
    background: #eff6ff;
}

.ext-customer-head #extCustomerCloseBtn {
    font-size: 0;
    line-height: 0;
    color: #1d4ed8;
}

.ext-customer-head #extCustomerCloseBtn::before {
    content: '';
    width: 13px;
    height: 13px;
    display: block;
    background-color: currentColor;
    -webkit-mask-image: url('../../svg/Close.svg');
    mask-image: url('../../svg/Close.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.ext-customer-body {
    max-height: 320px;
    overflow: auto;
    padding: 10px;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ext-chat-bubble {
    max-width: 86%;
    border-radius: 12px;
    padding: 8px 10px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.ext-chat-bubble.user {
    align-self: flex-end;
    color: #fff;
    background: #2563eb;
}

.ext-chat-bubble.bot {
    align-self: flex-start;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
}

.ext-chat-bubble img {
    max-width: 160px;
    border-radius: 8px;
    margin-top: 4px;
}

.ext-chat-link {
    display: inline-flex;
    margin-top: 6px;
    color: #2563eb;
    text-decoration: underline;
    word-break: break-all;
}

.ext-customer-input {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
}

.ext-customer-input input[type='text'] {
    width: 100%;
    border-radius: 10px;
}

#extCustomerSendBtn {
    width: 44px;
    height: 40px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#extCustomerSendBtn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

#extCustomerSendBtn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.ext-ai-switch-row {
    margin-bottom: 10px;
}

.ext-ai-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.ext-ai-preset-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ext-ai-preset-card {
    position: relative;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    text-align: center;
    padding: 14px 12px;
    min-height: 146px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
}

.ext-ai-preset-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1;
}

.ext-ai-preset-card.is-active {
    border-color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.ext-ai-preset-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    z-index: 0;
}

.ext-ai-preset-card strong {
    display: block;
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    max-width: 100%;
    word-break: break-word;
}

.ext-ai-preset-card span {
    display: block;
    margin-top: 0;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1.5;
    max-width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-break: break-word;
}

.ext-ai-compare {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    height: 320px;
    margin-bottom: 12px;
    background: #0f172a;
}

.ext-ai-compare-image {
    position: absolute;
    inset: 0;
}

.ext-ai-compare-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ext-ai-compare .after {
    clip-path: inset(0 0 0 50%);
}

.ext-ai-compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #157AFF;
    box-shadow: 0 0 0 3px rgba(21, 122, 255, 0.2);
    z-index: 3;
    cursor: ew-resize;
    touch-action: none;
}

.ext-ai-compare-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 2px solid #157AFF;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
}

.ext-ai-compare.is-dragging {
    user-select: none;
    cursor: ew-resize;
}

.ext-ai-apply-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ext-ai-apply-success {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #86efac;
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    font-size: 14px;
    line-height: 1.35;
}

.ext-ai-apply-bar select {
    min-width: 180px;
}

.album-ai-retouch-panel.is-disabled .ext-ai-preset-list,
.album-ai-retouch-panel.is-disabled .ext-ai-compare,
.album-ai-retouch-panel.is-disabled .ext-ai-apply-bar {
    opacity: 0.48;
}

.album-ai-retouch-panel.is-disabled .ext-ai-preset-list,
.album-ai-retouch-panel.is-disabled .ext-ai-compare {
    pointer-events: none;
}

@media (max-width: 900px) {
    .ext-ai-compare {
        height: 300px;
    }

    .ext-customer-widget {
        right: 12px;
        bottom: 64px;
    }

    body.share-page .ext-customer-widget {
        bottom: 114px;
    }

    .ext-customer-panel {
        right: 0;
        width: 90vw;
        max-height: 82dvh;
    }

    .ext-customer-body {
        max-height: 62dvh;
    }
}
