.pp-unicode-page {
    padding-top: 14px;
}

.pp-unicode-intro {
    max-width: 820px;
    margin: 0 auto 22px;
    text-align: center;
}

.pp-unicode-intro h1 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 42px;
    line-height: 1.1;
}

.pp-unicode-intro h2 {
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
}

.pp-unicode-tool {
    margin: 8px 0 30px;
    padding: 30px;
    border: 1px solid #e4ebf7;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.13), transparent 32%),
        linear-gradient(135deg, #fbfdff 0%, #f3f7ff 100%);
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.pp-unicode-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.pp-unicode-control-label,
.pp-unicode-field-label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.pp-unicode-mode-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dbe3ef;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.88);
}

.pp-unicode-mode-button {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #475467;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pp-unicode-mode-button:hover {
    color: #4338ca;
}

.pp-unicode-mode-button.is-active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(79, 70, 229, 0.25);
}

.pp-unicode-mode-button:focus-visible,
.pp-unicode-format:focus-visible,
.pp-unicode-secondary-button:focus-visible,
.pp-unicode-swap:focus-visible,
.pp-unicode-tool textarea:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.22);
    outline-offset: 2px;
}

.pp-unicode-format-wrap {
    width: min(100%, 260px);
}

.pp-unicode-format {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    padding: 0 40px 0 14px;
    border: 1px solid #cfd8e6;
    border-radius: 12px;
    background-color: #ffffff;
    color: #1f2937;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.pp-unicode-editors {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.pp-unicode-field {
    min-width: 0;
}

.pp-unicode-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pp-unicode-count {
    margin-bottom: 8px;
    color: #7a8597;
    font-size: 12px;
    white-space: nowrap;
}

.pp-unicode-tool .pp-converter-textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 230px;
    margin: 0;
    padding: 18px;
    resize: vertical;
    border: 1px solid #cfd8e6;
    border-radius: 16px;
    background: #ffffff;
    color: #172033;
    font-family: Consolas, "SFMono-Regular", "Liberation Mono", Menlo, monospace;
    font-size: 15px;
    line-height: 1.65;
    tab-size: 4;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pp-unicode-tool .pp-converter-textarea::placeholder {
    color: #98a2b3;
}

.pp-unicode-tool .pp-converter-textarea:hover {
    border-color: #aebbd0;
}

.pp-unicode-tool .pp-converter-textarea:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.10);
}

.pp-unicode-tool #resultOfConvert {
    background: rgba(255, 255, 255, 0.76);
}

.pp-unicode-swap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 24px;
    border: 1px solid #d7dfeb;
    border-radius: 50%;
    background: #ffffff;
    color: #4f46e5;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pp-unicode-swap:hover {
    transform: translateX(2px);
    border-color: #818cf8;
    box-shadow: 0 9px 20px rgba(79, 70, 229, 0.14);
}

.pp-unicode-swap svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.pp-unicode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.pp-unicode-actions--result {
    justify-content: flex-end;
}

.pp-unicode-secondary-button,
.pp-unicode-tool .pp-converter-copy-button {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    border-radius: 11px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.pp-unicode-secondary-button {
    border: 1px solid #d4dce8;
    background: #ffffff;
    color: #344054;
}

.pp-unicode-secondary-button:hover {
    border-color: #aebbd0;
    color: #4338ca;
}

.pp-unicode-tool .pp-converter-copy-button {
    min-width: 150px;
}

.pp-unicode-tool .pp-converter-copy-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.pp-unicode-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.pp-unicode-privacy svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: #4f46e5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.pp-unicode-page .pp-unicode-benefits,
.pp-unicode-page .pp-learn-content-desc-wrap {
    margin-top: 40px;
}

.pp-unicode-page .pp-unicode-benefits > h2,
.pp-unicode-page .pp-learn-content-desc-wrap h2,
.pp-unicode-page .pp-learn-content-desc-wrap h3 {
    color: #111827;
}

.pp-unicode-page .pp-unicode-benefits > h2,
.pp-unicode-page .pp-learn-content-desc-wrap section > h2,
.pp-unicode-page .pp-learn-content-desc-wrap section > h3 {
    margin: 0 0 20px;
    font-size: 30px;
    line-height: 1.25;
}

.pp-unicode-page .pp-grid.cols-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pp-unicode-page .pp-grid.cols-2 > div {
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.pp-unicode-page .pp-grid.cols-2 h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
}

.pp-unicode-page .pp-grid.cols-2 p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

.pp-unicode-page .pp-faq {
    display: grid;
    gap: 14px;
    margin: 0;
}

.pp-unicode-page .pp-faq dt {
    margin: 0;
    padding: 20px 22px 6px;
    border: 1px solid #e5e7eb;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: #ffffff;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.pp-unicode-page .pp-faq dd {
    margin: -14px 0 0;
    padding: 0 22px 20px;
    border: 1px solid #e5e7eb;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #ffffff;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .pp-unicode-editors {
        grid-template-columns: 1fr;
    }

    .pp-unicode-swap {
        margin: 0 auto;
        transform: rotate(90deg);
    }

    .pp-unicode-swap:hover {
        transform: rotate(90deg) translateX(2px);
    }
}

@media (max-width: 767px) {
    .pp-unicode-page {
        padding-top: 8px;
    }

    .pp-unicode-intro h1 {
        font-size: 34px;
    }

    .pp-unicode-intro h2 {
        font-size: 16px;
    }

    .pp-unicode-tool {
        padding: 20px;
        border-radius: 20px;
    }

    .pp-unicode-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pp-unicode-format-wrap {
        width: 100%;
    }

    .pp-unicode-mode-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-unicode-mode-button {
        padding: 0 10px;
        font-size: 13px;
    }

    .pp-unicode-tool .pp-converter-textarea {
        min-height: 180px;
    }

    .pp-unicode-actions,
    .pp-unicode-actions--result {
        justify-content: stretch;
    }

    .pp-unicode-actions button {
        flex: 1 1 auto;
    }

    .pp-unicode-page .pp-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}
