/**
 * NK Paywall — Frontend Styles
 *
 * BEM naming: .nk-paywall-{block}__{element}--{modifier}
 * All styles scoped under .nk-paywall-* to avoid theme conflicts.
 */

/* ------------------------------------------------
   Overlay + Modal
   ------------------------------------------------ */
.nk-paywall-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.nk-paywall-modal {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.3s ease-out,
        opacity 0.3s ease-out;
}

#nk-paywall-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    background: none;
    border: none;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    color: #ddd;
    padding: 0;
    width: 34px;
    height: 34px;
}

#nk-paywall-modal__close:hover {
    color: #fff;
}

/* ------------------------------------------------
   Backdrop fade + modal slide (open/close)
   ------------------------------------------------ */
.nk-paywall-fade-enter {
    transition: opacity 0.1s ease-out;
}
.nk-paywall-fade-enter-start {
    opacity: 0;
}
.nk-paywall-fade-enter-start .nk-paywall-modal {
    transform: translateY(-10px);
    opacity: 0;
}
.nk-paywall-fade-enter-end {
    opacity: 1;
}
.nk-paywall-fade-enter-end .nk-paywall-modal {
    transform: translateY(0);
    opacity: 1;
}

/* Leave: modal slides out (0.3s), then backdrop fades (0.2s) via delay */
.nk-paywall-fade-leave {
    transition: opacity 0.1s ease-in;
}
.nk-paywall-fade-leave-start {
    opacity: 1;
}
.nk-paywall-fade-leave-start .nk-paywall-modal {
    transform: translateY(0);
    opacity: 1;
}
.nk-paywall-fade-leave-end {
    opacity: 0;
}
.nk-paywall-fade-leave-end .nk-paywall-modal {
    transform: translate3d(0, -30px, 0);
    opacity: 0;
}

/* ------------------------------------------------
   Inline CTA (below article excerpt)
   ------------------------------------------------ */
.nk-paywall-cta-wrapper {
    margin: 32px 0;
}

/* Upgrade CTA (want-unlimited-access) default gradient */
.nk-paywall-inline-cta--upgrade {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Shared layout for all CTA / paywall blocks */
.nk-paywall-inline-cta,
.nk-paywall-free-member-form,
.nk-paywall-article-remaining {
    background: url('/wp-content/plugins/nk-paywall/assets/images/nknews-continue-reading.jpg')
        no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 40px 30px 5px;
    text-align: center;
    font-family:
        'CircularStd', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* Korea Pro background — inline CTAs + popups via data-nk-site, sidebar widget via Alpine modifier */
[data-nk-site="koreapro"] .nk-paywall-inline-cta,
[data-nk-site="koreapro"] .nk-paywall-free-member-form,
.nk-paywall-article-remaining--koreapro {
    background: url('/wp-content/themes/koreapro/images/korea-pro-post-signup-backround.png')
        no-repeat center center;
    background-size: cover;
}

.nk-paywall-inline-cta h3,
.nk-paywall-free-member-form h3 {
    font-size: 34px !important;
    margin: 0 0 15px !important;
    font-weight: 400 !important;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    font-family: inherit !important;
}

.nk-paywall-divider {
    width: 170px;
    border: none;
    border-top: 2px solid var(--nk-paywall-accent, #ce2e2c);
    margin: 15px auto;
}

.nk-paywall-inline-cta p,
.nk-paywall-free-member-form p {
    font-size: 20px;
    margin: 0 0 8px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.nk-paywall-inline-cta ul,
.nk-paywall-free-member-form ul {
    list-style: none;
    padding: 0;
    margin: 0px 0 24px !important;
    text-align: left;
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nk-paywall-inline-cta li,
.nk-paywall-free-member-form li {
    padding: 4px 0;
    font-size: 14px;
}

.nk-paywall-inline-cta li::before,
.nk-paywall-free-member-form li::before {
    content: '\2713';
    color: var(--nk-paywall-accent, #ce2e2c);
    font-weight: bold;
    margin-right: 8px;
}

/* ------------------------------------------------
   Buttons
   ------------------------------------------------ */
.nk-paywall-btn {
    display: inline-block;
    padding: 14px 39px;
    font-size: 24px;
    font-weight: 900;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s ease;
    color: #fff !important;
}

.nk-paywall-btn--primary {
    background: var(--nk-paywall-accent, #ce2e2c);
    color: #fff;
}

.nk-paywall-btn--secondary {
    background: transparent;
    color: var(--nk-paywall-accent, #ce2e2c);
    border: 1px solid var(--nk-paywall-accent, #ce2e2c);
}

.nk-paywall-btn:disabled,
.nk-paywall-btn:disabled:hover {
    opacity: 0.8;
    cursor: not-allowed;
}

.nk-paywall-btn--small {
    width: 100% !important;
}

/* ------------------------------------------------
   Form elements
   ------------------------------------------------ */
.nk-paywall-form input,
.nk-paywall-form select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.nk-paywall-form input:focus,
.nk-paywall-form select:focus {
    outline: none;
    border-color: var(--nk-paywall-accent, #ce2e2c);
}

.nk-paywall-error {
    color: var(--nk-paywall-accent, #ce2e2c);
    font-size: 13px;
    margin-top: 4px;
}

/* ------------------------------------------------
   Link styling
   ------------------------------------------------ */
.nk-paywall-link,
.nk-paywall-link:hover {
    color: var(--nk-paywall-accent, #ce2e2c);
    text-decoration: underline;
    cursor: pointer;
}

/* ------------------------------------------------
   Checkmark list (used in popups)
   ------------------------------------------------ */
.nk-paywall-checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.nk-paywall-checklist li {
    padding: 0;
    padding-left: 28px;
    position: relative;
    font-size: 20px;
    margin-bottom: 5px;
}

.nk-paywall-checklist li::before {
    content: '';
    display: none !important;
}

.nk-paywall-checklist li::after {
    content: '\2713';
    position: absolute;
    left: -6px;
    top: 0px;
    font-size: 20px;
    font-weight: bold;
    color: var(--nk-paywall-accent, #ce2e2c);
}

/* ------------------------------------------------
   Excerpt block (excerptContent + read_more_block + no-access CTA)
   ------------------------------------------------ */
.nk-paywall-excerpt-content {
    position: relative;
}

.nk-paywall-excerpt-content .excerpt-text {
    position: relative;
}

.nk-paywall-excerpt-content .excerpt-text p:last-child {
    margin-bottom: 0;
}

.nk-paywall-excerpt-content .article-fading:before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
}

.nk-paywall-excerpt-content .read_more_block {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 160px 15px 30px;
    text-align: center;
}

.nk-paywall-excerpt-content .read_more_block .nk-paywall-loader-svg {
    vertical-align: middle;
}

.nk-paywall-loader-svg {
    animation: spinner-border 0.75s linear infinite;
}

/* Site-specific excerpt fading gradient & loader color */
.nk-paywall-excerpt-content--nknews .article-fading:before {
    background-image: linear-gradient(
        180deg,
        rgba(42, 123, 155, 0) 0%,
        rgb(255, 255, 255) 90%,
        rgb(255, 255, 255) 100%
    );
}

.nk-paywall-excerpt-content--nknews .read_more_block {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 40%,
        #fff 100%
    );
}

.nk-paywall-excerpt-content--nkpro .article-fading:before {
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1),
        #fff
    );
}

.nk-paywall-excerpt-content--nkpro .read_more_block {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 40%,
        #fff 100%
    );
}

.nk-paywall-excerpt-content--kcnawatch .article-fading:before {
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1),
        #fff
    );
}

.nk-paywall-excerpt-content--kcnawatch .read_more_block {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 40%,
        #fff 100%
    );
}

.nk-paywall-excerpt-content--koreapro .article-fading:before {
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1),
        #fff
    );
}

.nk-paywall-excerpt-content--koreapro .read_more_block {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 40%,
        #fff 100%
    );
}

/* ------------------------------------------------
   Daily Update subscribe widget (inline) + popup
   ------------------------------------------------ */
.nk-paywall-daily-subscribe {
    background-size: cover;
    border: 10px solid white;
    max-width: 650px;
    padding: 40px 30px 30px;
    background-position: center center;
    overflow: hidden;
}

.nk-paywall-daily-subscribe > .row {
    min-height: 410px;
}

.nk-paywall-daily-subscribe::before {
    background-color: rgba(0, 0, 0, 0.3);
    content: '';
    display: block;
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    left: 10px;
    top: 10px;
}

.nk-paywall-daily-subscribe__logo {
    margin-bottom: 40px;
    display: block;
}

.nk-paywall-daily-subscribe__logo img {
    max-width: 170px;
    height: auto;
}

.nk-paywall-daily-subscribe__content {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    align-content: flex-end;
}

.nk-paywall-daily-subscribe-widget {
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    padding: 15px;
    min-height: 323px;
    display: flex !important;
    align-items: flex-start;
    margin-bottom: 20px;
}

.nk-paywall-daily-subscribe-widget::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.nk-paywall-daily-subscribe-widget > .clearfix {
    flex: 0 0 100%;
    z-index: 1;
}

.nk-paywall-daily-subscribe-widget form {
    width: 100%;
}

.nk-paywall-daily-subscribe-widget p,
.nk-paywall-daily-subscribe p {
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
    margin: 35px 0 10px 0;
    font-weight: 900;
    line-height: 1.4;
}

.nk-paywall-daily-subscribe-widget h2,
.nk-paywall-daily-subscribe h2,
.nk-paywall-daily-subscribe-widget h3,
.nk-paywall-daily-subscribe h3 {
    color: #fff;
    font-family:
        'CircularStd', 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 18px;
    line-height: 1;
}

.nk-paywall-daily-subscribe-widget h2,
.nk-paywall-daily-subscribe h2 {
    font-weight: normal;
    line-height: 1.3em;
}

.nk-paywall-daily-subscribe-widget h3 img,
.nk-paywall-daily-subscribe h3 img {
    max-width: 85px;
    height: auto;
}

.nk-paywall-daily-subscribe-widget img.highlight,
.nk-paywall-daily-subscribe img.highlight {
    display: block;
    margin: 0 auto 20px;
}

.nk-paywall-daily-subscribe-widget .main_field,
.nk-paywall-daily-subscribe .main_field {
    font-family: 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #757c8c;
    height: 50px;
    width: 100%;
    padding: 0 15px;
    border: 0;
    border-left: 3px solid var(--nk-paywall-accent, #ce2e2c);
    outline: none;
}

.nk-paywall-daily-subscribe-widget,
.nk-paywall-daily-subscribe input[type='email']::-webkit-input-placeholder {
    color: #757c8c;
}

.nk-paywall-daily-subscribe-widget input[type='email']::-moz-placeholder,
.nk-paywall-daily-subscribe input[type='email']::-moz-placeholder {
    color: #757c8c;
}

.nk-paywall-daily-subscribe-widget input[type='email']:-ms-input-placeholder,
.nk-paywall-daily-subscribe input[type='email']:-ms-input-placeholder {
    color: #757c8c;
}

.nk-paywall-daily-subscribe-widget input[type='email']:-moz-placeholder,
.nk-paywall-daily-subscribe input[type='email']:-moz-placeholder {
    color: #757c8c;
}

.nk-paywall-daily-subscribe-widget small,
.nk-paywall-daily-subscribe small {
    font-family: 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    color: #fff;
    font-size: 10px;
    margin-bottom: 10px;
    display: inline-block;
}

.nk-paywall-daily-subscribe-widget .first_name,
.nk-paywall-daily-subscribe .first_name {
    margin-bottom: 10px;
}

.nk-paywall-daily-subscribe-widget .step_two,
.nk-paywall-daily-subscribe .step_two {
    font-family: 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--nk-paywall-accent, #ce2e2c);
    color: #fff;
    font-size: 16px;
    line-height: 50px;
    font-weight: 900;
    width: 100%;
    text-transform: uppercase;
}

.nk-paywall-daily-subscribe-widget button,
.nk-paywall-daily-subscribe button {
    background: #fff;
    border: 0;
    color: #757c8c;
    padding-right: 15px;
    height: 50px;
}

.nk-paywall-daily-subscribe-widget button:focus-visible,
.nk-paywall-daily-subscribe button:focus-visible {
    outline: -webkit-focus-ring-color auto 1px;
}

.nk-paywall-daily-subscribe-widget .sub-response,
.nk-paywall-daily-subscribe .sub-response {
    margin-top: 50px;
    background: rgb(255 255 255 / 80%);
    padding: 20px 15px;
}

.nk-paywall-daily-subscribe-widget .sub-response h3,
.nk-paywall-daily-subscribe .sub-response h3 {
    color: #000;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 0.03em;
    border-bottom: 4px solid var(--nk-paywall-accent, #ce2e2c);
    display: inline-block;
}

.nk-paywall-daily-subscribe-widget .sub-response p,
.nk-paywall-daily-subscribe .sub-response p {
    font-size: 18px;
    line-height: 22px;
    margin-top: 12px;
    font-weight: normal;
    color: #000;
    text-transform: none;
    font-family: 'CircularStd', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Popup (inside overlay) */
.nk-paywall-daily-subscribe-widget .sub-response h3,
.nk-paywall-daily-subscribe .sub-response h3 {
    color: #000;
    font-size: 1.4rem;
    border-bottom: 4px solid var(--nk-paywall-accent, #ce2e2c);
}

.nk-paywall-daily-subscribe-widget .sub-response.error,
.nk-paywall-daily-subscribe .sub-response.error {
    background: #f8d7da;
}

@media screen and (max-width: 767px) {
    .nk-paywall-daily-subscribe-widget h2,
    .nk-paywall-daily-subscribe h2,
    .nk-paywall-daily-subscribe-widget h3,
    .nk-paywall-daily-subscribe h3 {
        font-size: 23px;
    }

    .nk-paywall-daily-subscribe-widget small,
    .nk-paywall-daily-subscribe small {
        font-size: 12px;
    }

    .nk-paywall-daily-subscribe-widget,
    .nk-paywall-daily-subscribe {
        display: flex !important;
    }
}

@media screen and (min-width: 1400px) {
    .nk-paywall-daily-subscribe-widget h2,
    .nk-paywall-daily-subscribe h2,
    .nk-paywall-daily-subscribe-widget h3,
    .nk-paywall-daily-subscribe h3 {
        font-size: 23px;
    }
}

/* ------------------------------------------------
   Signup form (multi-step: account → plan → payment)
   ------------------------------------------------ */

/* Override close button colour when signup / signin shell is displayed */
.nk-paywall-modal:has(.nk-paywall-signup) > #nk-paywall-modal__close,
.nk-paywall-modal:has(.nk-paywall-signin) > #nk-paywall-modal__close {
    color: #999;
}

.nk-paywall-modal:has(.nk-paywall-signup) > #nk-paywall-modal__close:hover,
.nk-paywall-modal:has(.nk-paywall-signin) > #nk-paywall-modal__close:hover {
    color: #333;
}

.nk-paywall-signup {
    width: 1120px;
    max-width: 100%;
    font-family: 'CircularStd', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.nk-paywall-signin {
    width: 1090px;
    max-width: 100%;
    font-family: 'CircularStd', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.nk-paywall-signup__inline-link,
.nk-paywall-signin__inline-link {
    color: #707070;
    font-size: 14px;
    font-family: 'CircularStd', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1;
    display: inline-block;
    padding: 0px;
    border: 0px;
}

.highlight-text {
    color: var(--nk-paywall-accent, #ce2e2c);
    font-weight: 900;
    font-size: 17px;
}

.nk-paywall-signup__card-errors {
    color: var(--nk-paywall-accent, #ce2e2c);
    font-size: 13px;
    margin-bottom: 8px;
}

.nk-paywall-modal .nk-paywall-signup .nk-paywall-btn--primary,
.nk-paywall-modal .nk-paywall-signin .nk-paywall-btn--primary {
    background: var(--nk-paywall-accent, #ce2e2c);
    border-color: var(--nk-paywall-accent, #ce2e2c);
    color: #fff;
}

.nk-paywall-modal .nk-paywall-signup .nk-paywall-btn--secondary,
.nk-paywall-modal .nk-paywall-signin .nk-paywall-btn--secondary {
    color: var(--nk-paywall-accent, #ce2e2c) !important;
    border-color: var(--nk-paywall-accent, #ce2e2c);
}

/* Two-panel wrapper (signup + signin) */
.nk-paywall-signup__wrapper,
.nk-paywall-signin__wrapper {
    display: flex;
    min-height: 580px;
}

/* Left branding panel */
.nk-paywall-signup__left,
.nk-paywall-signin__left {
    flex: 0 0 41.66666667%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
}

.nk-paywall-signup__left-inner,
.nk-paywall-signin__left-inner {
    padding: 62px 44px;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    min-height: 100%;
    position: relative;
    z-index: 1;
}

.nk-paywall-signup__brand,
.nk-paywall-signin__brand {
    width: 100%;
    margin-bottom: 30px;
}

.nk-paywall-signup__brand img,
.nk-paywall-signin__brand img {
    height: auto;
    width: 113px;
    display: block;
}

.nk-paywall-signup__promo,
.nk-paywall-signin__promo {
    width: 100%;
}

.nk-paywall-signup__promo h3,
.nk-paywall-signin__promo h3 {
    font-family: 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 23px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 30px;
    max-width: 280px;
}

.nk-paywall-signup__promo p,
.nk-paywall-signin__promo p {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.6;
    color: #fff;
    margin: 0 0 25px;
    line-height: 1.5;
}

.nk-paywall-signup__learn-more,
.nk-paywall-signin__learn-more {
    display: inline-block;
    font-size: 12px;
    font-family: 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid var(--nk-paywall-accent, #ce2e2c);
    padding: 10px 20px;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

/* Right form panel */
.nk-paywall-signup__right,
.nk-paywall-signin__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
}

.nk-paywall-signup__right-body {
    padding: 50px 50px 30px;
}

.nk-paywall-signin__right-body {
    flex: 1;
    overflow-y: auto;
    padding: 125px 0;
}

#forget-password.nk-paywall-forget--email-sent .nk-paywall-signin__right-body {
    display: flex;
    align-items: center;
}

.nk-paywall-signup__inner,
.nk-paywall-signin__inner {
    max-width: 335px;
    margin: 0 auto;
}

/* Header inside right panel */

.nk-paywall-signup__header h2,
.nk-paywall-signin__header h2 {
    font-family:
        'CircularStd', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400;
    font-size: 22px;
    color: #313131;
    line-height: 1.3;
    margin-bottom: 5px;
}

.nk-paywall-signup__header p,
.nk-paywall-signin__header p {
    font-family: 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #868181;
    margin-bottom: 20px;
    font-weight: 500;
}

.nk-paywall-signup__form input,
.nk-paywall-signin__form input {
    margin-top: 10px;
}

/* Bottom bar (cross-links) */
.nk-paywall-signup__bottom,
.nk-paywall-signin__bottom {
    padding: 35px 10px;
    background: #f9f9f9;
    text-align: center;
    flex-shrink: 0;
}

.nk-paywall-signup__bottom p,
.nk-paywall-signin__bottom p {
    margin: 0;
    font-size: 17px;
    color: #676767;
    font-weight: 500;
    font-family:
        'DIN',
        'Helvetica Neue',
        Helvetica,
        -apple-system,
        BlinkMacSystemFont,
        Arial,
        sans-serif;
}

.nk-paywall-signin__recaptcha-notice {
    font-size: 12px;
    color: rgb(33, 37, 41);
    margin-bottom: 16px;
    font-family: 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.nk-paywall-signin__form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nk-paywall-btn--primary {
    background: var(--nk-paywall-accent, #ce2e2c);
    color: #fff;
    padding: 0 25px;
    font-weight: 900;
    line-height: 40px;
    font-size: 14px;
    font-family: 'DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: auto;
    text-transform: uppercase;
}

/* Step indicator */
.nk-paywall-signup__steps {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.nk-paywall-signup__step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 900;
    color: #313131;
    cursor: default;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
    line-height: 16px;
    opacity: 0.3;
}

.nk-paywall-signup__step--active {
    color: #333;
    border-bottom-color: var(--nk-paywall-accent, #ce2e2c);
    opacity: 1;
}

.nk-paywall-signup__step--done {
    color: #888;
}

.nk-paywall-signup__step--clickable,
.nk-paywall-signup__step--done {
    cursor: pointer;
}

.nk-paywall-signup__step--clickable:hover,
.nk-paywall-signup__step--done:hover {
    color: #333;
}

/* Body (each step content area) */

/* Plan cards */
.nk-paywall-signup__plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.nk-paywall-signup__plan {
    border: 2px solid #eee;
    padding: 20px 5px 5px;
    text-align: center;
    position: relative;
    transition: border-color 0.15s ease;
}

.nk-paywall-signup__plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nk-paywall-accent, #ce2e2c);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nk-paywall-signup__plan h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 2px 0 6px;
    color: #333;
}

.nk-paywall-signup__plan-price {
    font-size: 14px;
    color: #555;
    margin: 0 0 2px;
}

.nk-paywall-signup__plan-price strong {
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

/* Toss (KRW): shorter line length so large amounts fit the card */
.nk-paywall-signup__plan-price--compact strong {
    font-size: 20px;
}

.nk-paywall-signup__plan small {
    display: block;
    font-size: 10px;
    color: #999;
    margin-bottom: 10px;
    min-height: 14px;
}

.nk-paywall-signup__plan-price--compact + small {
    width: calc(100% + 10px);
    margin-left: -5px;
}

/* Alert / error banner */
.nk-paywall-signup__alert {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Form fields */
.nk-paywall-signup__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.nk-paywall-signup__field,
.nk-paywall-signin__field {
    margin-bottom: 12px;
}

.nk-paywall-signup__form label,
.nk-paywall-signin__form label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: #313131;
    margin-bottom: 4px;
}

.nk-paywall-signup__form input[type='text'],
.nk-paywall-signup__form input[type='email'],
.nk-paywall-signup__form input[type='password'],
.nk-paywall-signup__form select,
.nk-paywall-signin__form input[type='text'],
.nk-paywall-signin__form input[type='email'],
.nk-paywall-signin__form input[type='password'],
.nk-paywall-signin__form select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    margin-top: 4px;
    font-family: inherit;
    transition: border-color 0.15s ease;
    background: #fff;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.nk-paywall-signup__form select,
.nk-paywall-signin__form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.nk-paywall-signup__form input:focus,
.nk-paywall-signup__form select:focus,
.nk-paywall-signin__form input:focus,
.nk-paywall-signin__form select:focus {
    outline: none;
    border-color: var(--nk-paywall-accent, #ce2e2c);
}

.nk-paywall-signup__form input.is-invalid,
.nk-paywall-signup__form select.is-invalid,
.nk-paywall-signin__form input.is-invalid,
.nk-paywall-signin__form select.is-invalid {
    border-color: var(--nk-paywall-accent, #ce2e2c);
}

.nk-paywall-signup__field-error {
    color: var(--nk-paywall-accent, #ce2e2c);
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

/* Password hints */
.nk-paywall-signup__pw-hints {
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    padding: 0;
    margin: 5px 0 0;
    list-style: none;
}

.nk-paywall-signup__pw-hints li {
    line-height: 18px;
}

.nk-paywall-signup__pw-hints li::before {
    content: '\2022 ';
    padding-right: 8px;
}

.nk-paywall-signup__pw-hints li.done::before {
    content: '\2713 ';
    color: #2a9c9c;
}

.nk-paywall-signup__pw-hints li.error {
    color: var(--nk-paywall-accent, #ce2e2c);
}

/* Checkboxes */
.nk-paywall-signup__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.nk-paywall-signup__checkbox input[type='checkbox'] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--nk-paywall-accent, #ce2e2c);
}

.nk-paywall-signup__checkbox label {
    font-size: 13px !important;
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
}

.nk-paywall-signup__checkbox input.is-invalid {
    outline: 2px solid var(--nk-paywall-accent, #ce2e2c);
    outline-offset: 1px;
}

/* Action buttons */
.nk-paywall-signup__action-btn {
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
.nk-paywall-signup__action-btn.nk-paywall-btn--secondary {
    padding: 8px 16px !important;
    font-size: 12px !important;
}

/* Payment plan summary */
.nk-paywall-signup__plan-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f8f8;
    padding: 16px 20px;
    margin-bottom: 16px;
    gap: 12px;
}

.nk-paywall-signup__summary-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.nk-paywall-signup__summary-price--compact {
    font-size: 18px;
}

/* Stripe card mount */
.nk-paywall-signup__stripe-mount {
    padding: 10px 12px;
    border: 1px solid #ddd;
    margin-top: 4px;
    transition: border-color 0.15s ease;
}

.nk-paywall-signup__stripe-mount.StripeElement--focus {
    border-color: var(--nk-paywall-accent, #ce2e2c);
}

.nk-paywall-signup__stripe-mount.StripeElement--invalid {
    border-color: var(--nk-paywall-accent, #ce2e2c);
}

body.single #nk-paywall-content img[class*='wp-image-'] {
    cursor: pointer;
}

#nk-paywall-content .bx-wrapper {
    padding: 0px;
    border: 0px;
    box-shadow: none;
}

#nk-paywall-content svg.style-svg {
    width: 100%;
    height: auto;
}

#nk-paywall-content .gallery {
    height: 500px;
}

#nk-paywall-content .bx-wrapper .gallery-item img {
    margin: 0 auto;
}

/* Processing spinner */
.nk-paywall-signup__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top-color: var(--nk-paywall-accent, #ce2e2c);
    border-radius: 50%;
    animation: nk-paywall-signup-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes nk-paywall-signup-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive: hide left panel on tablets and below */
@media screen and (max-width: 768px) {
    .nk-paywall-signup__wrapper,
    .nk-paywall-signin__wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .nk-paywall-signup__left,
    .nk-paywall-signin__left {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .nk-paywall-signup__body {
        padding: 16px 16px;
    }

    .nk-paywall-signup__header {
        padding: 16px 16px 0;
    }

    .nk-paywall-signup__plans {
        grid-template-columns: 1fr;
    }

    .nk-paywall-signup__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nk-paywall-signup__step {
        font-size: 11px;
        padding: 10px 4px;
    }

    .nk-paywall-signup__plan-summary {
        flex-direction: column;
        text-align: center;
    }
}

/* ------------------------------------------------
   Fullscreen locked modals (subscription / NK Pro cross-sell)
   ------------------------------------------------ */
.nk-paywall-overlay--fullscreen-locked {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.nk-paywall-modal--fullscreen-locked {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.nk-paywall-modal--fullscreen-locked .nk-paywall-fs {
    padding: 24px 16px;
}

.nk-paywall-fs {
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    font-family: inherit;
}

.nk-paywall-fs__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.nk-paywall-fs__logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.nk-paywall-fs__title {
    margin: 0;
    font-size: calc(1.3rem + 2.5vmin);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.nk-paywall-fs__sub,
.nk-paywall-fs__text,
.nk-paywall-fs__tagline {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

.nk-paywall-fs__tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.nk-paywall-fs__brand--nkpro {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

.nk-paywall-fs__brand-nk {
    color: #fff;
}

.nk-paywall-fs__brand-pro {
    color: var(--nk-paywall-accent, #30baba);
}

.nk-paywall-fs__footer {
    margin: 0.5rem 0 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.nk-paywall-fs__footer-intro {
    margin-right: 0.25rem;
}

.nk-paywall-fs__link {
    color: var(--nk-paywall-accent, #ce2e2c);
    font-weight: 600;
    text-decoration: none;
}

.nk-paywall-fs__link:hover,
.nk-paywall-fs__link:focus {
    text-decoration: underline;
}

.nk-paywall-fade-enter-start .nk-paywall-modal--fullscreen-locked {
    transform: none;
    opacity: 1;
}

/* ------------------------------------------------
   Tools page: hide Vue app until paywall grants access.
   Tool bundles auto-mount .$mount("#app") in their
   webpack output, so trigger_main() alone cannot gate
   rendering. This CSS hides the app; JS reveals it on grant.
   ------------------------------------------------ */
body.research-tools #app {
    visibility: hidden;
}

/* ------------------------------------------------
   Mobile inline article-remaining widget
   ------------------------------------------------ */
.nk-paywall-article-remaining-mobile .nk-paywall-article-remaining {
    background: #f5f5f5 !important;
    color: #333;
    padding: 14px 16px;
    text-align: center;
    margin: 12px 0;
}

.nk-paywall-article-remaining-mobile
    .nk-paywall-article-remaining
    > p:first-child,
.nk-paywall-article-remaining-mobile .nk-paywall-divider,
.nk-paywall-article-remaining-mobile
    .nk-paywall-article-remaining
    > p:nth-last-child(-n + 2) {
    display: none !important;
}

.nk-paywall-article-remaining-mobile .nk-paywall-article-remaining p {
    font-size: 13px;
    color: #333;
    text-shadow: none;
    margin: 0 0 4px;
}

.nk-paywall-article-remaining-mobile .nk-paywall-article-remaining__title {
    font-size: 18px !important;
    font-weight: 700;
    margin: 0 !important;
}
