/* Priend — Noto Sans KR, 반응형 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body.priend {
    margin: 0;
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    color: #1a1a1a;
    background: #f8f9fb;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ----- header ----- */
.priend-header {
    background: #fff;
    border-bottom: 1px solid #e8eaef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.priend-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.priend-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.priend-brand:hover {
    text-decoration: none;
    opacity: 0.92;
}

.priend-brand__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: #f3f4f6;
}

.priend-brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.priend-brand__tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.priend-brand__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    max-width: 280px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.priend-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.priend-nav-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.priend-nav-desktop__hello {
    font-size: 0.875rem;
    color: #4b5563;
    margin-right: 2px;
}

.priend-nav-desktop__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #d1d5db;
    background: #fff;
}

.priend-nav-desktop__link:hover {
    background: #f9fafb;
    text-decoration: none;
}

.priend-nav-desktop__link--primary {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.priend-nav-desktop__link--primary:hover {
    background: #111827;
    color: #fff;
}

.priend-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.priend-icon-btn:hover {
    background: #f8fafc;
}

.priend-menu-toggle {
    display: none;
}

.priend-account-toggle {
    display: none;
}

.priend-admin-nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px 14px;
}

.priend-admin-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 12px;
}

.priend-admin-nav__item {
    position: relative;
}

.priend-admin-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 2px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.priend-admin-nav__link:hover {
    text-decoration: none;
    color: #111827;
    border-bottom-color: #d1d5db;
}

.priend-admin-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #9ca3af;
    padding: 0;
}

.priend-admin-submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 120;
}

.priend-admin-submenu li + li {
    margin-top: 4px;
}

.priend-admin-submenu a {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    padding: 8px 10px;
    border-radius: 8px;
}

.priend-admin-submenu a:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.priend-admin-nav__item:hover .priend-admin-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.priend-account-panel {
    position: absolute;
    right: 20px;
    top: calc(100% - 2px);
    width: min(320px, calc(100vw - 40px));
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 130;
}

.priend-account-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.priend-account-panel__title {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.priend-account-panel__desc {
    margin: 4px 0 12px;
    color: #6b7280;
    font-size: 0.8125rem;
}

.priend-login-form {
    display: grid;
    gap: 8px;
}

.priend-login-form__input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
}

.priend-login-form__submit {
    border: 0;
    border-radius: 8px;
    height: 42px;
    background: #1f2937;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.priend-login-form__submit:hover {
    background: #111827;
}

.priend-account-links {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.priend-account-links__btn {
    flex: 1;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
}

.priend-account-links__btn:hover {
    text-decoration: none;
    background: #f9fafb;
}

.priend-account-links__btn--dark {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.priend-account-links__btn--dark:hover {
    background: #030712;
    color: #fff;
}

@media (max-width: 1024px) {
    .priend-header__inner {
        padding: 12px 16px;
    }

    .priend-brand__title {
        max-width: 210px;
        font-size: 0.92rem;
    }

    .priend-menu-toggle {
        display: inline-flex;
    }

    .priend-account-toggle {
        display: inline-flex;
    }

    .priend-nav-desktop {
        display: none;
    }

    .priend-admin-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% - 2px);
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
        padding: 12px;
        z-index: 125;
    }

    .priend-admin-nav.is-open {
        display: block;
    }

    .priend-admin-nav__list {
        flex-direction: column;
        gap: 8px;
    }

    .priend-admin-nav__link {
        width: 100%;
        justify-content: space-between;
        border-bottom: 0;
        padding: 10px 0;
    }

    .priend-admin-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid #f1f5f9;
        margin-top: 6px;
        min-width: 0;
    }
}

/* ----- main ----- */
.priend-main {
    overflow-x: hidden;
}

/* ----- hero ----- */
.priend-hero {
    background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 45%, #fff 100%);
    padding: 48px 20px 56px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.priend-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}

.priend-hero__eyebrow {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6366f1;
    letter-spacing: 0.04em;
}

.priend-hero__title {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.priend-hero__subtitle {
    margin: 0 0 16px;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: #334155;
    font-weight: 500;
}

.priend-hero__subtitle strong {
    color: #4f46e5;
    font-weight: 700;
}

.priend-hero__lead {
    margin: 0 0 28px;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
}

.priend-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.priend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.priend-btn:hover {
    text-decoration: none;
}

.priend-btn--primary {
    background: #1f2937;
    color: #fff;
}

.priend-btn--primary:hover {
    background: #111827;
    color: #fff;
}

.priend-btn--ghost {
    background: #fff;
    color: #1f2937;
    border-color: #d1d5db;
}

.priend-btn--ghost:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* ----- sections ----- */
.priend-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 20px 56px;
}

.priend-section__head {
    text-align: center;
    margin-bottom: 36px;
}

.priend-section__head--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 12px 20px;
    text-align: left;
}

@media (min-width: 768px) {
    .priend-section__head--compact {
        justify-content: space-between;
        align-items: flex-end;
    }
}

.priend-section__title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.priend-section__head--compact .priend-section__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 140px;
}

.priend-section__desc {
    margin: 0;
    font-size: 0.9375rem;
    color: #6b7280;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.priend-section__head--compact .priend-section__desc {
    margin: 0;
    flex: 1 1 280px;
    max-width: none;
}

.priend-section__desc code {
    font-size: 0.85em;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.priend-gallery-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
    white-space: nowrap;
}

.priend-gallery-more:hover {
    color: #4338ca;
}

/* ----- membership tiers ----- */
.priend-tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .priend-tiers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .priend-tiers {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

.priend-tier {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.priend-tier:hover {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    border-color: #d1d5db;
}

.priend-tier--accent {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #fff 0%, #f5f7ff 100%);
}

.priend-tier--ai {
    border-color: #a5b4fc;
    background: linear-gradient(180deg, #fff 0%, #eef2ff 100%);
}

.priend-tier__badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.priend-tier__badge--hot {
    background: #fef3c7;
    color: #b45309;
}

.priend-tier__badge--ai {
    background: #e0e7ff;
    color: #4338ca;
}

.priend-tier__name {
    margin: 0 0 10px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.priend-tier__text {
    margin: 0 0 14px;
    font-size: 0.875rem;
    color: #6b7280;
    flex: 1;
}

.priend-tier__list {
    margin: 0 0 18px;
    padding-left: 18px;
    font-size: 0.8125rem;
    color: #4b5563;
}

.priend-tier__list li {
    margin-bottom: 6px;
}

.priend-tier__link {
    display: inline-block;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #374151;
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
}

.priend-tier__link:hover {
    background: #1f2937;
    text-decoration: none;
}

.priend-tier--accent .priend-tier__link {
    background: #4f46e5;
}

.priend-tier--accent .priend-tier__link:hover {
    background: #4338ca;
}

.priend-tier--ai .priend-tier__link {
    background: #4338ca;
}

.priend-tier--ai .priend-tier__link:hover {
    background: #3730a3;
}

/* ----- image grid ----- */
.priend-gallery-wrap {
    padding-top: 32px;
}

/* index.html 원본과 동일 클래스 기반 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 0;
    background: white;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px 8px 0 0;
}

.image-grid a {
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    aspect-ratio: 1;
    padding-bottom: 100%;
    margin: 2px;
}

.image-grid a:hover {
    transform: scale(1.02);
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    padding-bottom: 0;
}

.image-grid a:hover img {
    opacity: 0.9;
}

.image-placeholder {
    margin: 2px;
}

.ad-banner-container {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: white;
}

.ad-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ad-slide {
    display: none;
    width: 100%;
}

.ad-slide.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ad-slide img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.ad-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.priend-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .priend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .image-grid {
        padding: 12px;
        gap: 0;
    }
    .image-grid a {
        margin: 2px;
    }
}

@media (max-width: 480px) {
    .image-grid {
        padding: 10px;
    }
    .image-grid a {
        margin: 1.5px;
    }
    .ad-slide img {
        max-height: 150px;
    }
}

@media (min-width: 960px) {
    .priend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.priend-grid__cell {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.priend-grid__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.priend-grid__cell:hover img {
    transform: scale(1.04);
}

.priend-grid__cell--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.priend-grid__cell--promo {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.priend-grid__promo-inner {
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.priend-grid__promo-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.95;
    margin-bottom: 8px;
}

.priend-grid__promo-title {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 800;
    line-height: 1.35;
}

/* ----- ad banner ----- */
.priend-ad-wrap {
    position: relative;
    max-width: 1120px;
    margin: 0 auto 0;
    padding: 36px 20px 48px;
    background: linear-gradient(180deg, #e8eef5 0%, #f0f4f8 100%);
}

.priend-ad-slider {
    position: relative;
    min-height: 220px;
}

.priend-ad-slide {
    display: none;
    animation: priendFade 0.45s ease;
}

.priend-ad-slide--active {
    display: block;
}

@keyframes priendFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.priend-ad-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.priend-ad-card--alt {
    border-top: 3px solid #6366f1;
}

.priend-ad-card__title {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 700;
    color: #111827;
}

.priend-ad-card__sub {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    color: #6b7280;
}

.priend-ad-card__btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: #374151;
    border-radius: 999px;
    text-decoration: none;
}

.priend-ad-card__btn:hover {
    background: #1f2937;
    text-decoration: none;
}

.priend-ad-card__note {
    margin: 14px 0 0;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.priend-ad-indicator {
    position: absolute;
    right: 20px;
    bottom: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #374151;
    padding: 6px 10px;
    border-radius: 999px;
    line-height: 1;
}

/* ----- footer ----- */
.priend-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 48px 20px 32px;
}

.priend-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.priend-footer__logo {
    margin: 0 0 28px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #111827;
}

.priend-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .priend-footer__grid {
        grid-template-columns: repeat(3, 1fr) minmax(200px, 1fr);
        gap: 24px 32px;
    }
}

.priend-footer__heading {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.priend-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.priend-footer__list li {
    margin-bottom: 8px;
}

.priend-footer__list a {
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
}

.priend-footer__list a:hover {
    color: #111827;
    text-decoration: underline;
}

.priend-footer__contact {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: #4b5563;
}

.priend-footer__contact li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.priend-footer__contact .label {
    display: inline-block;
    min-width: 3.2em;
    font-weight: 600;
    color: #374151;
}

.priend-footer__contact a {
    color: #2563eb;
}

.priend-footer__copy {
    margin: 36px 0 0;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* ----- 서브페이지: 엔진 공통 ----- */
.priend-page-engine .priend-main {
    padding-top: 24px;
}

.priend-engine {
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 20px 56px;
}

.priend-engine__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.priend-engine__logo {
    border-radius: 8px;
    background: #fef9c3;
}

.priend-engine__title {
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #0f172a;
}

.priend-engine__lead {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
}

/* ----- 크롤링 ----- */
.priend-page-crawl .priend-main {
    padding-top: 16px;
}

.priend-crawl {
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 20px 56px;
}

.priend-crawl-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.priend-crawl-header__logo {
    border-radius: 8px;
    background: #fef9c3;
    flex-shrink: 0;
}

.priend-crawl-header__title {
    margin: 0;
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    text-align: center;
    width: 100%;
}

.priend-crawl-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 14px;
    padding: 16px;
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    margin-bottom: 18px;
}

.priend-crawl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 128px;
    flex: 0 1 auto;
}

.priend-crawl-field--site {
    flex: 1 1 220px;
    min-width: 200px;
}

.priend-crawl-field__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

.priend-crawl-select,
.priend-crawl-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
}

.priend-crawl-select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.priend-crawl-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.priend-crawl-check input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.priend-crawl-go {
    margin-left: auto;
    padding: 11px 28px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: #1e3a5f;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
}

.priend-crawl-go:hover {
    background: #152a45;
}

.priend-crawl-stage {
    border: 3px solid #1e3a5f;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.priend-crawl-stage__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 32px 20px;
}

.priend-crawl-stage__hint {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
}

.priend-crawl-stage__media {
    display: none;
}

.priend-crawl-stage.is-run .priend-crawl-stage__placeholder {
    display: none;
}

.priend-crawl-stage.is-run .priend-crawl-stage__media {
    display: block;
}

.priend-crawl-stage__img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.priend-crawl-stage__caption {
    margin: 0;
    padding: 12px 16px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ea580c;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
    .priend-crawl-go {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .priend-crawl-toolbar {
        padding: 12px;
    }

    .priend-crawl-field,
    .priend-crawl-field--site {
        min-width: 100%;
        flex: 1 1 100%;
    }
}

/* ----- S.E.O 엔진 (WORD HITTING) ----- */
.priend-page-seo .priend-main {
    padding-top: 20px;
}

.priend-seo {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px 56px;
}

.priend-seo__title {
    margin: 0 0 22px;
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 700;
    color: #111827;
    text-align: center;
    line-height: 1.45;
}

.priend-seo__title-hit {
    color: #ea580c;
    font-weight: 800;
}

.priend-seo-error {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
    text-align: center;
}

.priend-seo-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 14px;
    padding: 16px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 12px;
}

.priend-seo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.priend-seo-field--designated {
    flex: 1 1 180px;
    min-width: 160px;
}

.priend-seo-field__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.priend-seo-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.priend-seo-select {
    min-width: 120px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
}

.priend-seo-select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.priend-seo-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.priend-seo-check input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.priend-seo-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.875rem;
    font-family: inherit;
}

.priend-seo-toggle-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.priend-seo-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.priend-seo-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.priend-seo-toggle__slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s;
}

.priend-seo-toggle__slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.priend-seo-toggle input:checked + .priend-seo-toggle__slider {
    background: #2563eb;
}

.priend-seo-toggle input:checked + .priend-seo-toggle__slider::before {
    transform: translateX(22px);
}

.priend-seo-toggle input:focus + .priend-seo-toggle__slider {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.priend-seo-go {
    margin-left: auto;
    padding: 10px 26px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: #1e3a5f;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
}

.priend-seo-go:hover {
    background: #152a45;
}

.priend-seo-results {
    border: 3px solid #1e3a5f;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    min-height: 120px;
}

.priend-seo-results.is-visible {
    background: #fafbfc;
}

.priend-seo-results__empty {
    margin: 0;
    padding: 28px 16px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.priend-seo-results__empty code {
    font-size: 0.85em;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.priend-seo-results__path {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.priend-seo-path-box {
    border: 1px dashed #64748b;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
}

.priend-seo-results__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.priend-seo-results__row {
    display: grid;
    grid-template-columns: 48px 1fr 88px;
    gap: 10px;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.priend-seo-results__row:last-child {
    border-bottom: 0;
}

.priend-seo-results__rank {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    font-weight: 700;
    color: #1e3a5f;
    background: #fff;
}

.priend-seo-results__word {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    color: #111827;
    background: #fff;
}

.priend-seo-results__cnt {
    text-align: right;
    font-weight: 700;
    color: #1e3a5f;
    padding-right: 4px;
}

@media (max-width: 900px) {
    .priend-seo-go {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .priend-seo-results__path {
        grid-template-columns: 1fr;
    }

    .priend-seo-results__row {
        grid-template-columns: 40px 1fr 72px;
        font-size: 0.82rem;
    }
}

/* ----- G.E.O엔진1 — 문장 추출 ----- */
.priend-page-geo1 .priend-main {
    padding-top: 20px;
}

.priend-geo1 {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px 56px;
}

.priend-geo1__title {
    margin: 0 0 22px;
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 700;
    color: #111827;
    text-align: center;
    line-height: 1.45;
}

.priend-geo1__title-hit {
    color: #ea580c;
    font-weight: 800;
}

.priend-geo1__error {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
    text-align: center;
}

.priend-geo1-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 14px;
    padding: 16px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 12px;
}

.priend-geo1-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
}

.priend-geo1-field--designated {
    flex: 1 1 160px;
    min-width: 140px;
}

.priend-geo1-field__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.priend-geo1-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.priend-geo1-select {
    min-width: 110px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
}

.priend-geo1-select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.priend-geo1-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.priend-geo1-check input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.priend-geo1-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.875rem;
    font-family: inherit;
}

.priend-geo1-toggle-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.priend-geo1-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.priend-geo1-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.priend-geo1-toggle__slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s;
}

.priend-geo1-toggle__slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.priend-geo1-toggle input:checked + .priend-geo1-toggle__slider {
    background: #2563eb;
}

.priend-geo1-toggle input:checked + .priend-geo1-toggle__slider::before {
    transform: translateX(22px);
}

.priend-geo1-toggle input:focus + .priend-geo1-toggle__slider {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.priend-geo1-go {
    margin-left: auto;
    padding: 10px 26px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: #1e3a5f;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
}

.priend-geo1-go:hover {
    background: #152a45;
}

.priend-geo1-results {
    border: 3px solid #1e3a5f;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    min-height: 120px;
}

.priend-geo1-results.is-visible {
    background: #fafbfc;
}

.priend-geo1-results__empty {
    margin: 0;
    padding: 28px 16px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.priend-geo1-results__path {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.priend-geo1-path-box {
    border: 1px dashed #64748b;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
}

.priend-geo1-results__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: geo1line;
}

.priend-geo1-results__row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 8px;
    border-bottom: 1px solid #e2e8f0;
}

.priend-geo1-results__row:last-child {
    border-bottom: 0;
}

.priend-geo1-results__rank {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border: 1px dashed #94a3b8;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e3a5f;
    background: #fff;
}

.priend-geo1-results__sentence {
    margin: 0;
    padding: 10px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #1e293b;
    background: #fff;
}

@media (max-width: 900px) {
    .priend-geo1-go {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .priend-geo1-results__path {
        grid-template-columns: 1fr;
    }

    .priend-geo1-results__row {
        grid-template-columns: 36px 1fr;
        gap: 8px;
    }

    .priend-geo1-results__sentence {
        font-size: 0.82rem;
        padding: 8px 10px;
    }
}

/* ----- G.E.O엔진2 — 지문 추출 (툴바는 geo1 클래스 재사용) ----- */
.priend-page-geo2 .priend-main {
    padding-top: 20px;
}

.priend-geo2-field--load {
    min-width: 130px;
}

.priend-geo2-load-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

.priend-geo2-load-btn:hover {
    background: #f8fafc;
    border-color: #64748b;
}

.priend-geo2-passage {
    margin-top: 4px;
}

.priend-geo2-passage__inner {
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    padding: 18px 20px;
    background: #fff;
    min-height: 140px;
}

.priend-geo2-passage__list {
    margin: 0;
    padding: 0 0 0 1.35rem;
    list-style: disc;
}

.priend-geo2-passage__item {
    margin: 0 0 10px;
    padding-left: 4px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #1e293b;
}

.priend-geo2-passage__item:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .priend-geo2-load-btn {
        max-width: none;
    }

    .priend-geo2-passage__item {
        font-size: 0.82rem;
    }
}

/* ----- G.E.O엔진3 — AI 프리미엄 지문 (geo2 레이아웃 동일) ----- */
.priend-page-geo3 .priend-main {
    padding-top: 20px;
}

.priend-geo3-passage {
    margin-top: 6px;
}

.priend-geo3-passage__badge {
    margin: 0 0 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.priend-geo3-passage__inner {
    position: relative;
    border: 1px solid rgba(30, 58, 95, 0.14);
    border-radius: 14px;
    padding: 22px 24px 24px;
    background: linear-gradient(160deg, #fdfefe 0%, #f4f7fb 48%, #eef2f7 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 14px 36px rgba(15, 23, 42, 0.07);
}

.priend-geo3-passage__list {
    position: relative;
    z-index: 1;
    list-style: none;
    padding-left: 0;
}

.priend-geo3-passage__item {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.75;
    letter-spacing: -0.01em;
    color: #0f172a;
    font-weight: 450;
}

.priend-geo3-passage__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #ea580c);
    opacity: 0.85;
}

.priend-geo3-passage__item:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .priend-geo3-passage__inner {
        padding: 18px 16px 20px;
    }

    .priend-geo3-passage__item {
        font-size: 0.84rem;
        padding-left: 16px;
    }
}

/* ----- A.E.O — Q&A 추출 ----- */
.priend-page-aeo .priend-main {
    padding-top: 20px;
}

.priend-aeo-faq-wrap {
    margin-top: 4px;
}

.priend-aeo-faq__inner {
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    padding: 18px 20px 16px;
    background: #fff;
    min-height: 120px;
}

.priend-aeo-faq__block {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e2e8f0;
}

.priend-aeo-faq__block:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.priend-aeo-faq__q,
.priend-aeo-faq__a {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #0f172a;
}

.priend-aeo-faq__a {
    margin-bottom: 0;
    color: #334155;
}

.priend-aeo-faq__mark {
    display: inline-block;
    min-width: 1.75rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e3a5f;
}

.priend-aeo-faq__q .priend-aeo-faq__mark {
    color: #c2410c;
}

.priend-aeo-faq__note {
    margin: 12px 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
}

@media (max-width: 640px) {
    .priend-aeo-faq__inner {
        padding: 14px 14px 12px;
    }

    .priend-aeo-faq__q,
    .priend-aeo-faq__a {
        font-size: 0.82rem;
    }
}
