/* Korean Name Landing Page */

#koreanname {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* Hero */
.kn-hero {
    text-align: center;
    padding: 40px 0 30px;
}

.kn-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
}

.kn-hero__subtitle {
    font-size: 18px;
    color: #666;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Sections */
.kn-section {
    margin-bottom: 50px;
}

.kn-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.kn-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* Features grid */
.kn-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.kn-feature {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
}

.kn-feature__icon {
    font-size: 28px;
    color: #494ca2;
    margin-bottom: 14px;
}

.kn-feature h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.kn-feature p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Preview */
.kn-preview {
    text-align: center;
    margin-top: 20px;
}

.kn-preview__img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Pricing tiers — row layout */
.kn-pricing {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 540px;
    margin: 24px auto 0;
}

.kn-tier {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e8eaf0;
    border-radius: 10px;
    padding: 14px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.kn-tier:hover {
    border-color: #494ca2;
    box-shadow: 0 2px 12px rgba(73, 76, 162, 0.1);
}

.kn-tier--highlight {
    border-color: #494ca2;
    background: #f8f7ff;
}

.kn-tier__badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #494ca2;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kn-tier__quantity {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    min-width: 110px;
}

.kn-tier__price {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #494ca2;
    line-height: 1;
    min-width: 90px;
    text-align: right;
}

.kn-tier__currency {
    font-size: 15px;
    font-weight: 600;
}

.kn-tier__details {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.kn-tier__per {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

.kn-tier__discount {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
    line-height: 1.3;
}

.kn-tier__btn {
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    white-space: nowrap;
    margin-left: auto;
}

.kn-pricing__note {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 20px;
}

/* Member box */
.kn-member-box {
    background: #f0f1f8;
    border-radius: 10px;
    padding: 16px 24px;
    text-align: center;
}

.kn-member-box p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.kn-member-box a {
    color: #494ca2;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
    .kn-hero h1 {
        font-size: 28px;
    }

    .kn-hero__subtitle {
        font-size: 16px;
    }

    .kn-features {
        grid-template-columns: 1fr;
    }

    .kn-tier {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 14px;
    }

    .kn-tier__quantity {
        min-width: 90px;
        font-size: 14px;
    }

    .kn-tier__price {
        font-size: 18px;
        min-width: auto;
    }

    .kn-tier__details {
        width: 100%;
        text-align: left;
    }

    .kn-tier__btn {
        width: 100%;
        margin-left: 0;
    }
}

/* ============================== */
/* Orders page                     */
/* ============================== */

.kno-summary {
    background: #f0f1f8;
    border-radius: 10px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.kno-summary__count {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #494ca2;
}

.kno-summary__label {
    font-size: 14px;
    color: #555;
}

.kno-summary__remaining {
    margin-left: auto;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
}

#koreanname-orders {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.kno-order {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.kno-order__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.kno-order__title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.kno-order__instructions {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Name input rows */
.kno-name-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.kno-name-row__number {
    width: 28px;
    height: 28px;
    background: #494ca2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 6px;
}

.kno-name-row__fields {
    flex: 1;
    display: flex;
    gap: 10px;
}

.kno-name-row__fields .form-group {
    flex: 1;
    margin-bottom: 0;
}

.kno-notes-input {
    font-size: 13px !important;
    color: #888 !important;
}

/* Items list */
.kno-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kno-item {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 14px 18px;
}

.kno-item--done {
    background: #f0f8f0;
    border: 1px solid #c8e6c9;
}

.kno-item__name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.kno-item__notes {
    font-size: 13px;
    color: #888;
}

.kno-item__pending {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.kno-item__result {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.kno-item__label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
}

.kno-item__hangul {
    font-size: 20px;
    font-weight: 700;
    color: #494ca2;
}

.kno-item__transcriptions,
.kno-item__homonyms {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

.kno-item__downloads {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

/* Cartes de résultat : une par transcription, hangeul en grand */
.kno-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.kno-card {
    flex: 1 1 210px;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    padding: 18px 16px 16px;
    text-align: center;
}

.kno-card--reco {
    border-color: #494ca2;
    box-shadow: 0 0 0 1px #494ca2;
    background: #f7f7fc;
}

.kno-card__badge {
    display: block;
    min-height: 20px;
    line-height: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #494ca2;
    margin-bottom: 6px;
}

.kno-card__hangul {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    color: #494ca2;
    margin-bottom: 14px;
    word-break: keep-all;
}

.kno-card__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.kno-card__buttons .btn {
    width: 100%;
    max-width: 190px;
}

.kno-item__homonyms {
    font-size: 16px;
    margin-top: 16px;
}

.kno-item__homonyms .kno-item__label {
    font-size: 16px;
}

@media (max-width: 600px) {
    .kno-name-row__fields {
        flex-direction: column;
    }

    .kno-order__header {
        flex-direction: column;
        align-items: flex-start;
    }
}
