.kytuhay-container {
    margin: 0 auto;
    padding: 15px;
    border: 3px dashed #f41252;
    border-radius: 15px;
    background: #fff7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

/* ============================================================
   Global Copy Toast
   ============================================================ */

.kitu-copy-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #28a745;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
}

.kitu-copy-toast.show {
    transform: translateX(-50%) translateY(0);
}

.kytuhay-container .kytuhay-input-wrap {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 20px;
}

.kytuhay-container .kytuhay-input {
    width: 100%;
    height: 58px;
    padding: 0 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 58px;
    border: 2px solid #e3e6ea;
    border-radius: 12px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #222;
    margin: 0;
    position: static;
    display: block;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-transform: none;
}

.kytuhay-container .kytuhay-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.kytuhay-container .kytuhay-input::placeholder {
    color: #6c757d;
    opacity: 1;
    font-weight: 400;
}

.kytuhay-container .kytuhay-count {
    position: absolute;
    right: 12px;
    bottom: 20px;
    transform: translateY(50%);
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    background: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    z-index: 10;
}

.kytuhay-container .kytuhay-tabs {
    display: flex;
    justify-content: center;
    margin: 25px auto 25px;
}

.kytuhay-container .kytuhay-tabs-inner {
    display: inline-flex;
    background: #e3e6ea;
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
    min-width: 320px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.kytuhay-container .kytuhay-tab {
    flex: 1;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5f6368;
    border-radius: 50px;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    font-family: inherit;
    outline: none;
    margin: 0;
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    vertical-align: middle;
    min-height: auto;
}

.kytuhay-container .kytuhay-tab.active {
    background: #fff;
    color: #1f1f1f;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kytuhay-container .kytuhay-tab:not(.active):hover {
    color: #1f1f1f;
}

/* Phím KituHAY tab — spinning rainbow border, opacity-toggled like kituhay.com */
.kytuhay-container .kytuhay-tab[data-tab="kituhay"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.kytuhay-container .kytuhay-tab[data-tab="kituhay"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    aspect-ratio: 1 / 1;
    background: conic-gradient(from 0deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    animation: kytuhay-tab-spin 6s linear infinite;
    z-index: -2;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s;
    transform: translate(-50%, -50%);
}

.kytuhay-container .kytuhay-tab[data-tab="kituhay"]::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 48px;
    background: #fff;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s;
}

.kytuhay-container .kytuhay-tab[data-tab="kituhay"]:hover::before,
.kytuhay-container .kytuhay-tab[data-tab="kituhay"].active::before,
.kytuhay-container .kytuhay-tab[data-tab="kituhay"].suggestion-pulse::before,
.kytuhay-container .kytuhay-tab[data-tab="kituhay"]:hover::after,
.kytuhay-container .kytuhay-tab[data-tab="kituhay"].active::after,
.kytuhay-container .kytuhay-tab[data-tab="kituhay"].suggestion-pulse::after {
    opacity: 1;
}

.kytuhay-container .kytuhay-tab[data-tab="kituhay"].suggestion-pulse {
    transform: scale(1.02);
}

.kytuhay-container .kytuhay-tab[data-tab="kituhay"].suggestion-pulse::before {
    animation-duration: 3s;
}

@keyframes kytuhay-tab-spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.kytuhay-container .kytuhay-selects {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.kytuhay-container .kytuhay-select-wrap {
    flex: 1;
    min-width: 0;
}

.kytuhay-container .kytuhay-select-group {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ced4da;
}

.kytuhay-container .kytuhay-select {
    flex: 1;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 400;
    border: none;
    border-right: 1px solid #ced4da;
    border-radius: 0;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    color: #555;
    box-sizing: border-box;
    min-width: 0;
    line-height: 48px;
    margin: 0;
    position: static;
    display: block;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
}

.kytuhay-container .kytuhay-select:focus {
    background: #fafafa;
}

.kytuhay-container .kytuhay-select option {
    font-size: 15px;
    padding: 8px;
}

.kytuhay-container .kytuhay-select-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #007bff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
    margin: 0;
    position: static;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-transform: none;
    font-size: 0;
}

.kytuhay-container .kytuhay-select-btn:hover {
    background: #0056b3;
}

.kytuhay-container .kytuhay-select-btn:active {
    background: #004494;
}

.kytuhay-container .kytuhay-select-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    pointer-events: none;
}

.kytuhay-container .kytuhay-alphabet-wrap {
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.kytuhay-container .kytuhay-alphabet-wrap label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.kytuhay-container .kytuhay-alphabet-wrap .kytuhay-select {
    max-width: 300px;
    margin: 0 auto;
    border: 1px solid #ced4da;
    border-radius: 8px;
}

.kytuhay-container .kytuhay-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.15s, color 0.3s;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 15px;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    vertical-align: middle;
    min-height: auto;
    text-decoration: none;
}

.kytuhay-container .kytuhay-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 53px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    z-index: -2;
    animation: kytuhay-glow 20s linear infinite;
    filter: blur(6px);
    opacity: 0.9;
}

.kytuhay-container .kytuhay-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: #111;
    z-index: -1;
}

.kytuhay-container .kytuhay-btn:hover {
    color: #fff;
    transform: scale(1.01);
}

.kytuhay-container .kytuhay-btn:active {
    transform: scale(0.98);
}

.kytuhay-container .kytuhay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes kytuhay-glow {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 400% 0; }
}

.kytuhay-container .kytuhay-result {
    margin: 20px 0 10px;
    padding: 16px;
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 10px;
    text-align: center;
    font-size: 22px;
    min-height: 30px;
    word-break: break-all;
    display: none;
}

.kytuhay-container .kytuhay-result.show {
    display: block;
}

.kytuhay-container .kytuhay-hint {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin: 10px 0 0;
    line-height: 1.6;
}

.kytuhay-container .kytuhay-hint strong {
    background-image: -webkit-linear-gradient(92deg, #ff0000, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-animation: hue 1s infinite linear;
    font-weight: 700;
}

@-webkit-keyframes hue {
    from { -webkit-filter: hue-rotate(0deg); }
    to { -webkit-filter: hue-rotate(360deg); }
}

@media (max-width: 768px) {
    .kytuhay-container .kytuhay-selects {
        flex-direction: column;
        gap: 10px;
    }

    .kytuhay-container {
        padding: 12px;
    }

    .kytuhay-container .kytuhay-tabs-inner {
        min-width: auto;
        width: 100%;
        max-width: 100%;
    }

    .kytuhay-container .kytuhay-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .kytuhay-container .kytuhay-input {
        height: 52px;
        line-height: 52px;
        font-size: 16px;
    }

    .kytuhay-container .kytuhay-select,
    .kytuhay-container .kytuhay-select-btn {
        height: 44px;
        line-height: 44px;
    }

    .kytuhay-container .kytuhay-select-btn {
        width: 44px;
        min-width: 44px;
    }
}

/* ===== MODAL: Phím KituHAY ===== */
body.kytuhay-modal-open {
    overflow: hidden;
}

.kytuhay-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kytuhay-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.kytuhay-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 1;
}

.kytuhay-modal-content > .kytuhay-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 20px;
    font-weight: 400;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.kytuhay-modal-content > .kytuhay-modal-close:hover {
    background: #e0e0e0;
}

.kytuhay-modal-content > .kytuhay-modal-input {
    width: calc(100% - 32px);
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 400;
    border: 2px solid #e3e6ea;
    border-radius: 12px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    margin: 16px 16px 0;
    color: #222;
    display: block;
}

.kytuhay-modal-content > .kytuhay-modal-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.kytuhay-modal-content > .kytuhay-modal-input::placeholder {
    color: #adb5bd;
}

.kytuhay-modal-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 transparent;
    min-height: 46px;
    align-items: center;
}

.kytuhay-modal-tabs::-webkit-scrollbar {
    height: 3px;
}

.kytuhay-modal-tabs::-webkit-scrollbar-track {
    background: transparent;
    margin: 0 16px;
}

.kytuhay-modal-tabs::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.kytuhay-modal-tab {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    position: relative;
    white-space: nowrap;
    margin: 0;
    text-transform: none;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kytuhay-modal-tab.active {
    color: #007bff;
    font-weight: 600;
}

.kytuhay-modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #007bff;
    border-radius: 2px;
}

.kytuhay-modal-tab:not(.active):hover {
    color: #333;
}

.kytuhay-modal-search {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 8px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.kytuhay-modal-search-icon {
    font-size: 16px;
    color: #adb5bd;
    flex-shrink: 0;
}

.kytuhay-modal-search-input {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
}

.kytuhay-modal-search-input::placeholder {
    color: #adb5bd;
}

.kytuhay-modal-search-clear {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    text-transform: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.kytuhay-modal-search-clear:hover {
    background: #e0e0e0;
}

/* ── Card grid style for modal ── */
.kytuhay-modal-grid {
    display: block;
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
}

.kytuhay-modal-group {
    display: none;
}

.kytuhay-modal-group.active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kytuhay-modal-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fffbeb;
    cursor: pointer;
    transition: all 0.15s;
    padding: 12px 10px;
    margin: 0;
    text-transform: none;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #222;
    white-space: nowrap;
    line-height: 1.2;
    min-height: 48px;
    min-width: 48px;
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.kytuhay-modal-cell:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.kytuhay-modal-cell:active,
.kytuhay-modal-cell.copied {
    background: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* Responsive card grid */
@media (max-width: 768px) {
    .kytuhay-modal-cell {
        font-size: 13px;
        padding: 8px 6px;
        min-height: 40px;
        min-width: 40px;
    }

    .kytuhay-modal-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.kytuhay-modal-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
}

.kytuhay-modal-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f3f5;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: kytuhay-spin 0.8s linear infinite;
}

@keyframes kytuhay-spin {
    to { transform: rotate(360deg); }
}

.kytuhay-modal-loading p {
    color: #adb5bd;
    font-size: 14px;
    margin: 0;
}

.kytuhay-modal-empty {
    display: none;
    padding: 40px 20px;
    text-align: center;
    color: #adb5bd;
    font-size: 14px;
}

.kytuhay-modal-empty p {
    margin: 0;
}

.kytuhay-modal-done {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #2196f3;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: none;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kytuhay-modal-done:hover {
    background: #1976d2;
}

.kytuhay-modal-done:active {
    background: #1565c0;
}

/* ===== Picker Modal: Left / Space / Right ===== */
.kytuhay-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.kytuhay-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.kytuhay-picker-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
}

.kytuhay-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.kytuhay-picker-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.kytuhay-picker-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    margin: 0;
    text-transform: none;
    box-shadow: none;
}

.kytuhay-picker-close:hover {
    background: #e0e0e0;
}

.kytuhay-picker-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.kytuhay-picker-section-title {
    background: #28a745;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0 4px;
    flex-shrink: 0;
}

.kytuhay-picker-section-title:first-child {
    margin-top: 0;
}

.kytuhay-picker-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kytuhay-picker-item {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 20px;
    text-align: center;
    border: 1px solid #4a90e2;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    color: #222;
    text-transform: none;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    word-break: break-all;
    line-height: 1.3;
    margin: 0 !important;
}

.kytuhay-picker-item:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

.kytuhay-picker-item:active {
    transform: scale(0.98);
}

.kytuhay-picker-empty-btn {
    background: #e91e63;
    border-color: #e91e63;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 12px;
}

.kytuhay-picker-empty-btn:hover {
    background: #c2185b;
    border-color: #c2185b;
}

.kytuhay-picker-footer {
    padding: 12px 20px 16px;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    border-top: 1px solid #eee;
}

.kytuhay-picker-cancel {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #e53935;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    text-transform: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.kytuhay-picker-cancel:hover {
    background: #c62828;
}

@media (max-width: 480px) {
    .kytuhay-picker-content {
        max-width: 92%;
        max-height: 85vh;
        border-radius: 10px;
    }

    .kytuhay-picker-item {
        font-size: 18px;
        padding: 12px;
    }
}

/* ============================================================
   Shortcode: [kitu_ff_home] — Top Kí tự HAY FF
   ============================================================ */

.kitu-container {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   FIX: Ensure shortcodes stack vertically, not reorder
   ============================================================ */

/* Force main shortcode containers to be normal block flow */
.kytuhay-container {
    position: relative;
    z-index: 1;
    float: none;
    clear: both;
}

/* Ensure the modal overlays don't affect document flow when hidden */
.kytuhay-modal,
.kytuhay-picker-modal {
    position: fixed;
}

/* Wrapper helper for forcing vertical column layout */
.kitu-shortcodes-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kitu-shortcodes-stack > .kytuhay-container {
    order: 0 !important;
}

/* ============================================================
   Shortcode: [kitu_ff_home] — Top Kí tự HAY FF
   ============================================================ */

.kitu-ff-block {
    text-align: center;
    margin: 20px auto;
    max-width: 100%;
}

.leaf-fieldset {
    border: 3px solid #2ecc71;
    border-radius: 12px;
    padding: 0 20px 20px;
    position: relative;
    box-sizing: border-box;
    background: #fff;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.leaf-legend-kituhay {
    background-color: #2ecc71;
    border-radius: 6px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    padding: 8px 24px;
    display: inline-block;
    margin: 0 auto;
    position: relative;
    top: -20px;
    line-height: 1.3;
}

.ff-desc {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin: -5px 0 20px;
    line-height: 1.5;
}

.ff-char-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.cs {
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 6px;
    border-radius: 10px;
    border: 1px solid #d3d3d3;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    cursor: pointer;
    padding: 0 12px;
    box-sizing: border-box;
    transition: background-color 0.15s;
}

.cs:hover {
    background-color: #ccf5ff;
}

.cs.copied {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}

.cs svg {
    vertical-align: middle;
    display: inline-block;
    max-width: 30px;
    max-height: 30px;
}

.ff-mascot {
    width: 100px;
    height: 100px;
    margin: 20px auto 0;
}

.ff-mascot svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .leaf-fieldset {
        padding: 0 12px 15px;
    }

    .leaf-legend-kituhay {
        font-size: 18px;
        padding: 6px 16px;
        top: -16px;
    }

    .ff-desc {
        font-size: 14px;
    }

    .cs {
        min-width: 38px;
        height: 38px;
        font-size: 18px;
        padding: 0 8px;
    }

    .ff-mascot {
        width: 80px;
        height: 80px;
    }
}

/* ============================================================
   Shortcode: [kitu_trending_chars] — Bảng kí tự thịnh hành
   ============================================================ */

.kitu-trending-wrap {
    margin: 20px auto;
}

.kitu-trending-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

/* Header */
.ktr-header {
    position: relative;
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.ktr-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    padding-right: 36px;
}

.ktr-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    text-transform: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ktr-close:hover {
    color: #666;
    background: #f0f0f0;
}

/* Table */
.ktr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #333;
}

.ktr-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    white-space: nowrap;
}

.ktr-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
}

.ktr-table tbody tr:last-child {
    border-bottom: none;
}

.ktr-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    line-height: 1.5;
}

.ktr-th-cat {
    width: 40%;
    min-width: 200px;
}

.ktr-th-char {
    width: 60%;
}

/* Category cell */
.ktr-td-cat {
    white-space: nowrap;
}

.ktr-check {
    font-size: 14px;
    line-height: 1;
    margin-right: 4px;
    vertical-align: middle;
}

.ktr-cat-name {
    font-weight: 500;
    vertical-align: middle;
}

.ktr-preview-img {
    height: 24px;
    width: auto;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    flex-shrink: 0;
}

/* Character cell */
.ktr-td-char {
    position: relative;
}

.ktr-char-scroll {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ktr-char-scroll .ktr-char-text {
    display: inline-block;
    white-space: nowrap;
    word-break: normal;
}

.ktr-char-scroll.ktr-marquee .ktr-char-text {
    animation: ktr-marquee 3s linear infinite alternate;
}

@keyframes ktr-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(var(--ktr-scroll, 0px)); }
}

.ktr-char-text {
    word-break: break-all;
    line-height: 1.5;
    display: inline;
}

/* Copy button */
.ktr-copy-btn {
    display: block;
    margin: 6px 0 0 auto;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #1877f2;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    line-height: 1.4;
    text-transform: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ktr-copy-btn:hover {
    background: #166fe5;
}

.ktr-copy-btn:active {
    background: #155db1;
}

/* Responsive */
@media (max-width: 768px) {
    .kitu-trending-box {
        margin: 0 8px;
    }

    .ktr-table {
        font-size: 13px;
    }

    .ktr-table thead th,
    .ktr-table tbody td {
        padding: 8px;
    }

    .ktr-preview-img {
        height: 20px;
    }

    .ktr-copy-btn {
        padding: 3px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ktr-title {
        font-size: 16px;
    }

    .ktr-table thead {
        display: none;
    }

    .ktr-table tbody tr {
        display: block;
        padding: 10px;
        border-bottom: 1px solid #e8e8e8;
    }

    .ktr-table tbody td {
        display: block;
        padding: 4px 0;
        width: 100%;
        border: none;
    }

    .ktr-td-cat::before {
        content: 'Thể loại: ';
        font-weight: 600;
        color: #666;
    }

    .ktr-td-char::before {
        content: 'Kí tự: ';
        font-weight: 600;
        color: #666;
    }

    .ktr-copy-btn {
        float: none;
        margin: 6px 0 0;
    }
}

/* ============================================================
   Shortcode: [kitu_hot_grid] — Grid Kí tự đang HOT
   ============================================================ */

.kitu-hot-container {
    padding: 20px 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.kitu-hot-header {
    text-align: center;
    margin-bottom: 25px;
}

.kitu-hot-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kitu-hot-badge {
    display: inline-flex;
    align-items: center;
    background: #ff4757;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1;
    letter-spacing: 0.5px;
}

.kitu-hot-badge::before {
    content: "✦";
    margin-right: 3px;
    font-size: 10px;
}

.kitu-hot-badge::after {
    content: "✦";
    margin-left: 3px;
    font-size: 10px;
}

.kitu-hot-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.kitu-hot-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.kitu-hot-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 40px 15px 15px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.kitu-hot-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.kitu-hot-crown {
    position: absolute;
    top: 8px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    color: #fbbf24;
}

.kitu-hot-char {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: all;
    word-break: break-all;
    line-height: 1.3;
}

.kitu-hot-char:hover {
    color: #007bff;
}

.kitu-hot-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kitu-hot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.kitu-hot-btn:hover {
    background: #f0f0f0;
}

.kitu-hot-find {
    color: #28a745;
    border-color: #ddd;
    background: #f9f9f9;
}

.kitu-hot-find:hover {
    background: #e8f5e9;
    border-color: #28a745;
}

.kitu-hot-find svg {
    stroke: #28a745;
}

.kitu-hot-dislike {
    width: 36px;
    height: 36px;
    padding: 0;
    color: #666;
}

.kitu-hot-dislike:hover {
    background: #ffebee;
    border-color: #ff4757;
}

.kitu-hot-dislike svg {
    stroke: #666;
}

.kitu-hot-dislike:hover svg {
    stroke: #ff4757;
}

.kitu-hot-loadmore {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.15s;
}

.kitu-hot-loadmore::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 53px;
    background: linear-gradient(45deg, #ff0000, #ff00ff, #7a00ff, #002bff, #00ffd5, #48ff00, #fffb00, #ff7300, #ff0000);
    background-size: 400%;
    z-index: -2;
    animation: kitu-hot-glow 20s linear infinite;
    filter: blur(6px);
    opacity: 0.9;
}

.kitu-hot-loadmore::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: #111;
    z-index: -1;
}

.kitu-hot-loadmore:hover {
    transform: scale(1.02);
}

.kitu-hot-loadmore:active {
    transform: scale(0.98);
}

@keyframes kitu-hot-glow {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 400% 0; }
}

/* Responsive */
@media (max-width: 992px) {
    .kitu-hot-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   Modal: Tìm thêm / Xem thêm kí tự
   ============================================================ */

.kitu-hot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kitu-hot-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.kitu-hot-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.kitu-hot-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.kitu-hot-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.kitu-hot-modal-title {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.kitu-hot-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.kitu-hot-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.kitu-hot-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    min-height: 200px;
}

.kitu-hot-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.kitu-hot-modal-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #ffe4ec;
    border-top-color: #ff6b9d;
    animation: kitu-modal-spin 1s linear infinite;
}

@keyframes kitu-modal-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.kitu-hot-modal-results {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.kitu-hot-modal-results.hidden {
    display: none;
}

.kitu-hot-modal-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    min-height: 44px;
    word-break: break-all;
    line-height: 1.3;
    max-width: 100%;
    user-select: all;
}

.kitu-hot-modal-item:hover {
    border-color: #28a745;
    background: #e8f5e9;
    color: #1a7f37;
}

.kitu-hot-modal-item:active {
    transform: scale(0.97);
}

.kitu-hot-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 24px;
    border-top: 1px solid #e8e8e8;
    flex-shrink: 0;
    gap: 10px;
}

.kitu-hot-modal-btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kitu-hot-modal-btn-primary {
    background: #dc3545;
    color: #fff;
}

.kitu-hot-modal-btn-primary:hover {
    background: #c82333;
}

.kitu-hot-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

.kitu-hot-modal-empty.hidden {
    display: none;
}

.kitu-hot-modal-copied {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kitu-hot-modal-copied.show {
    opacity: 1;
}

@media (max-width: 576px) {
    .kitu-hot-modal {
        width: 95%;
        max-height: 95vh;
        border-radius: 10px;
    }
    
    .kitu-hot-modal-header {
        padding: 14px 16px;
    }
    
    .kitu-hot-modal-title {
        font-size: 18px;
    }
    
    .kitu-hot-modal-body {
        padding: 14px 16px;
    }
    
    .kitu-hot-modal-item {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .kitu-hot-modal-footer {
        padding: 10px 16px;
    }
}

/* ============================================================
   Shortcode: [kitu_name_styles] — Tên đẹp nhiều kiểu
   ============================================================ */

.kitu-name-styles-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.kitu-name-styles-section {
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 20px;
}

.kns-bg-pink   { background: #fce4ec; }
.kns-bg-peach  { background: #ffebee; }
.kns-bg-purple { background: #f3e5f5; }
.kns-bg-cream  { background: #fff3e0; }
.kns-bg-pink2  { background: #fce4ec; }
.kns-hidden    { display: none !important; }

.kitu-name-styles-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 0 0 20px 0;
}

.kitu-name-styles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.kitu-name-styles-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 18px 12px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 140px;
    justify-content: space-between;
}

.kitu-name-styles-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.kitu-name-styles-tag {
    position: absolute;
    top: -2px;
    left: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.kitu-name-styles-text {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    word-break: break-all;
    margin: 8px 0 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.kitu-name-styles-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.kitu-name-styles-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kitu-name-styles-copy {
    background: #e3f2fd;
    color: #2196f3;
}

.kitu-name-styles-copy:hover {
    background: #2196f3;
    color: #fff;
    transform: scale(1.1);
}

.kitu-name-styles-heart {
    background: #fce4ec;
    color: #e91e63;
}

.kitu-name-styles-heart:hover {
    background: #e91e63;
    color: #fff;
    transform: scale(1.1);
}

.kitu-name-styles-heart.liked {
    background: #e91e63;
    color: #fff;
}

.kitu-name-styles-heart.liked svg {
    fill: #fff;
}

.kitu-name-styles-more {
    display: block;
    margin: 0 auto;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #ff6b9d;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.kitu-name-styles-more:hover {
    background: #ff4d8d;
    transform: scale(1.03);
}

.kitu-name-styles-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #28a745;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    z-index: 999999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.kitu-name-styles-toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
    .kitu-name-styles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .kitu-name-styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .kitu-name-styles-title {
        font-size: 18px;
    }
    .kitu-name-styles-card {
        padding: 14px 10px;
        min-height: 120px;
    }
    .kitu-name-styles-text {
        font-size: 14px;
    }
}

/* ============================================================
   Shortcode: [kitu_chu_kieu] — Interactive font converter
   ============================================================ */

.kitu-ck-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 960px;
    margin: 0 auto;
}

/* Gradient-border outer box */
.kitu-ck-outer {
    background: linear-gradient(#fff, #fff) padding-box,
                conic-gradient(from 200deg, #f48fb1, #90caf9, #ffe082, #a5d6a7, #ce93d8, #f48fb1) border-box;
    border: 3px solid transparent;
    border-radius: 18px;
    padding: 18px 18px 14px;
    margin-bottom: 28px;
}

.kitu-ck-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 17px;
    font-weight: 400;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    resize: vertical;
    background: #fff;
    box-sizing: border-box;
    color: #222;
    font-family: inherit;
    line-height: 1.6;
    min-height: 70px;
}

.kitu-ck-input:focus {
    border-color: #90caf9;
}

/* Slider row */
.kitu-ck-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 0 2px;
}

.kitu-ck-t-icon {
    font-size: 15px;
    color: #666;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.kitu-ck-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right, #1976d2 20%, #e0e0e0 20%);
}

.kitu-ck-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1976d2;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.kitu-ck-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1976d2;
    border: none;
    cursor: pointer;
}

.kitu-ck-px-label {
    font-size: 13px;
    color: #666;
    min-width: 38px;
    text-align: right;
    flex-shrink: 0;
}

/* Section */
.kitu-ck-section {
    margin-bottom: 28px;
}

.kitu-ck-section-header {
    padding-left: 12px;
    border-left: 4px solid var(--ck-color, #1976d2);
    margin-bottom: 14px;
}

.kitu-ck-section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--ck-color, #1976d2);
    margin: 0;
    line-height: 1.3;
}

/* 2-column card grid */
.kitu-ck-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Card */
.kitu-ck-card {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 12px 14px 14px;
    transition: border-color 0.15s;
}

.kitu-ck-card.active {
    border-color: #1976d2;
    box-shadow: 0 0 0 1px #1976d2;
}

.kitu-ck-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.kitu-ck-font-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.kitu-ck-card-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.kitu-ck-heart {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #bbb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
}

.kitu-ck-heart:hover,
.kitu-ck-heart.liked {
    border-color: var(--ck-color, #e91e63);
    color: var(--ck-color, #e91e63);
}

.kitu-ck-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #1976d2;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.kitu-ck-copy-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

.kitu-ck-preview {
    font-size: 17px;
    color: #333;
    line-height: 1.5;
    word-break: break-all;
    min-height: 28px;
    padding: 2px 0;
}

/* Toast */
.kitu-ck-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: #28a745;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    z-index: 999999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.kitu-ck-toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
    .kitu-ck-grid { grid-template-columns: 1fr; }
    .kitu-ck-section-title { font-size: 16px; }
    .kitu-ck-preview { font-size: 15px; }
}

/* ============================================================
   Chu-kieu page: font table, FAQ, changelog
   ============================================================ */

.kitu-font-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 16px 0;
}

.kitu-font-table th,
.kitu-font-table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
    line-height: 1.5;
}

.kitu-font-table thead th {
    background: #1565c0;
    color: #fff;
    font-weight: 600;
}

.kitu-font-table tbody tr:nth-child(even) {
    background: #f5f7ff;
}

.kitu-font-table tbody tr:hover {
    background: #e8eaf6;
}

.kitu-faq {
    margin-top: 16px;
}

.kitu-faq-item {
    background: #f9f9f9;
    border-left: 4px solid #1565c0;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.kitu-faq-q {
    font-size: 16px;
    font-weight: 600;
    color: #1a237e;
    margin: 0 0 8px 0;
}

.kitu-faq-a {
    font-size: 15px;
    color: #444;
    margin: 0;
    line-height: 1.6;
}

.kitu-changelog {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.kitu-changelog li {
    padding: 10px 14px;
    border-left: 3px solid #42a5f5;
    margin-bottom: 10px;
    background: #f0f7ff;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* ============================================================
   Shortcode: [kitu_char_cloud] — Word Cloud Canvas + Rating
   ============================================================ */

.kitu-char-cloud-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0 auto;
    padding: 20px 15px;
}

.kitu-char-cloud-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.kitu-char-cloud-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 25px 0;
}

.kitu-char-cloud-desc strong {
    color: #333;
    font-weight: 600;
}

.kitu-char-cloud-canvas-wrap {
    position: relative;
    text-align: center;
    margin: 20px auto;
    max-width: 560px;
    min-height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.kitu-char-cloud-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.kitu-char-cloud-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
}

.kitu-char-cloud-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: kitu-spin 0.7s linear infinite;
}

@keyframes kitu-spin {
    to { transform: rotate(360deg); }
}

.kitu-char-cloud-question {
    font-size: 16px;
    color: #444;
    text-align: center;
    margin: 25px 0 15px 0;
}

.kitu-char-cloud-rating {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.kitu-char-cloud-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 14px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    line-height: 1;
}

.kitu-char-cloud-like {
    background: #5cb85c;
    color: #fff;
}

.kitu-char-cloud-like:hover {
    background: #4cae4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(92, 184, 92, 0.35);
}

.kitu-char-cloud-like.active {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

.kitu-char-cloud-dislike {
    background: #b8b8b8;
    color: #fff;
}

.kitu-char-cloud-dislike:hover {
    background: #a5a5a5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.kitu-char-cloud-dislike.active {
    box-shadow: 0 0 0 3px rgba(160, 160, 160, 0.3);
}

/* Sau khi vote — buttons mờ đi */
.kitu-char-cloud-btn.kitu-char-cloud-voted {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
    transform: none !important;
}

.kitu-char-cloud-voted-msg {
    align-self: center;
    font-size: 14px;
    color: #4caf50;
    font-weight: 600;
    margin-left: 6px;
}

.kitu-char-cloud-count {
    display: inline-block;
    background: #fff;
    color: #444;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 44px;
    text-align: center;
}

.kitu-char-cloud-suggestions {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.kitu-char-cloud-suggestions strong {
    color: #333;
}

@media (max-width: 576px) {
    .kitu-char-cloud-title {
        font-size: 24px;
    }
    .kitu-char-cloud-desc {
        font-size: 14px;
    }
    .kitu-char-cloud-btn {
        padding: 9px 16px;
        font-size: 14px;
    }
}

/* ============================================================
   Shortcode: [kitu_recent_names] — Top 50 tên kí tự vừa cập nhật (tag cloud)
   ============================================================ */

.kitu-rn-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0 auto;
    padding: 20px 0;
}

.kitu-rn-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.kitu-rn-desc {
    font-size: 15px;
    color: #555;
    margin: 0 0 18px 0;
    line-height: 1.6;
}

.kitu-rn-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kitu-rn-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1a73e8;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    line-height: 1.3;
    text-transform: none;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.kitu-rn-tag:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    box-shadow: 0 2px 6px rgba(26,115,232,0.15);
    color: #1558b0;
}

.kitu-rn-tag:active {
    transform: scale(0.97);
}

.kitu-rn-tag.kitu-rn-tag-copied {
    background: #7b2ff7;
    border-color: #7b2ff7;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(123,47,247,0.3);
}

@media (max-width: 575px) {
    .kitu-rn-title { font-size: 20px; }
    .kitu-rn-tag   { font-size: 13px; padding: 7px 12px; }
}

/* ============================================================
   Shortcode: [kitu_top50_names] — Top 50 tên kí tự hay nhất
   ============================================================ */

.kitu-t50-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0 auto;
    padding: 20px 0;
}

.kitu-t50-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Grid: default 3 cột */
.kitu-t50-grid {
    display: grid;
    gap: 12px;
}

.kitu-t50-cols-2 { grid-template-columns: repeat(2, 1fr); }
.kitu-t50-cols-3 { grid-template-columns: repeat(3, 1fr); }
.kitu-t50-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.kitu-t50-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 12px 12px;
    text-align: center;
    transition: box-shadow 0.18s, border-color 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.kitu-t50-card:hover {
    border-color: #c5c5c5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Tên — clickable để copy */
.kitu-t50-name {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    word-break: break-all;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
    width: 100%;
    min-height: 22px;
}

.kitu-t50-name:hover { color: #7b2ff7; }

.kitu-t50-name.kitu-t50-name-copied {
    color: #7b2ff7;
    font-weight: 700;
    font-size: 14px;
}

/* Vote buttons */
.kitu-t50-votes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.kitu-t50-vote {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: opacity 0.15s;
    line-height: 1;
}

.kitu-t50-like    { color: #27ae60; }
.kitu-t50-dislike { color: #e74c3c; }

.kitu-t50-vote:hover { opacity: 0.75; }

.kitu-t50-vote.kitu-t50-voted {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.kitu-t50-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}

.kitu-t50-circle-green { background: #27ae60; }
.kitu-t50-circle-red   { background: #e74c3c; }

/* Responsive */
@media (max-width: 991px) {
    .kitu-t50-cols-3,
    .kitu-t50-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .kitu-t50-cols-2,
    .kitu-t50-cols-3,
    .kitu-t50-cols-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .kitu-t50-name   { font-size: 13px; }
    .kitu-t50-title  { font-size: 20px; }
}

/* ============================================================
   Shortcode: [kitu_name_list] — Danh sách tên đẹp có vote + phân trang
   ============================================================ */

.kitu-nl-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Action buttons row */
.kitu-nl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.kitu-nl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s;
    font-family: inherit;
    line-height: 1;
    text-transform: uppercase;
}

.kitu-nl-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.kitu-nl-btn-blue  { background: #4a90d9; color: #fff; }
.kitu-nl-btn-teal  { background: #17a2b8; color: #fff; }
.kitu-nl-btn-red   { background: #e74c3c; color: #fff; }

.kitu-nl-btn-dim {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
    transform: none !important;
}

.kitu-nl-btn-fav-active { background: #c0392b; }

.kitu-nl-badge {
    display: inline-block;
    background: rgba(0,0,0,0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
    line-height: 1.4;
}

/* Title & desc */
.kitu-nl-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.kitu-nl-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 22px 0;
}

.kitu-nl-desc strong { color: #222; font-weight: 600; }

/* Loading spinner */
.kitu-nl-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.kitu-nl-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #e74c3c;
    border-radius: 50%;
    animation: kitu-nl-spin 0.7s linear infinite;
}

@keyframes kitu-nl-spin {
    to { transform: rotate(360deg); }
}

/* 4-col name grid */
.kitu-nl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    min-height: 80px;
}

.kitu-nl-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 10px 12px;
    text-align: center;
    transition: box-shadow 0.18s, border-color 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.kitu-nl-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.kitu-nl-name {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    word-break: break-all;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.kitu-nl-name:hover {
    color: #7b2ff7;
}

.kitu-nl-name.kitu-nl-name-copied {
    color: #7b2ff7;
    font-weight: 700;
    font-size: 14px;
}

/* Vote buttons inside card */
.kitu-nl-votes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.kitu-nl-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: opacity 0.15s;
    line-height: 1;
}

.kitu-nl-vote-btn:hover { opacity: 0.8; }

.kitu-nl-vote-like    { color: #27ae60; }
.kitu-nl-vote-dislike { color: #e74c3c; }

.kitu-nl-vote-btn.kitu-nl-voted {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

/* Solid circle badge (+/-) */
.kitu-nl-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}

.kitu-nl-circle-green { background: #27ae60; }
.kitu-nl-circle-red   { background: #e74c3c; }

.kitu-nl-vcount {
    min-width: 24px;
    text-align: left;
}

/* Pagination bar */
.kitu-nl-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.kitu-nl-pager-info {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.kitu-nl-pager-prev,
.kitu-nl-pager-next {
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #e91e8c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    font-family: inherit;
}

.kitu-nl-pager-prev:hover,
.kitu-nl-pager-next:hover {
    background: #c7186e;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
    .kitu-nl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .kitu-nl-grid { grid-template-columns: repeat(2, 1fr); }
    .kitu-nl-title { font-size: 20px; }
    .kitu-nl-actions { gap: 8px; }
    .kitu-nl-btn { font-size: 12px; padding: 9px 14px; }
}

@media (max-width: 480px) {
    .kitu-nl-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .kitu-nl-name { font-size: 13px; }
}

/* ============================================================
   Shortcode: [kitu_ff_spaces] — Khoảng trống FF / Kí tự tàng hình
   ============================================================ */

.kitu-ff-spaces-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.kitu-ff-space-card {
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.kitu-ff-space-tag {
    display: inline-block;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    border-radius: 0 0 6px 0;
    margin: -2px 0 0 -2px;
}

.kitu-ff-tag-red    { background: #e91e63; }
.kitu-ff-tag-orange { background: #ff9800; }
.kitu-ff-tag-dark   { background: #333; }
.kitu-ff-tag-purple { background: #9c27b0; }

.kitu-ff-space-body {
    padding: 16px 20px 20px;
}

.kitu-ff-space-update {
    font-size: 14px;
    color: #444;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.kitu-ff-new-badge {
    display: inline-block;
    background: #ff5722;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    text-transform: uppercase;
    line-height: 1.3;
}

.kitu-ff-space-row {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    align-items: stretch;
}

.kitu-ff-space-input {
    flex: 1;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-family: inherit;
    outline: none;
    min-height: 44px;
}

.kitu-ff-space-input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.kitu-ff-space-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #2196f3;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
    font-family: inherit;
}

.kitu-ff-space-btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.kitu-ff-space-btn:active {
    transform: translateY(0);
}

.kitu-ff-space-btn.copied {
    background: #4caf50;
}

.kitu-ff-space-desc {
    font-size: 14px;
    color: #555;
    margin: 10px 0 0 0;
    line-height: 1.6;
}

.kitu-ff-space-note {
    font-size: 14px;
    color: #666;
    margin: 10px 0 0 0;
    line-height: 1.6;
}

.kitu-ff-space-detail {
    font-size: 14px;
    color: #555;
    margin: 14px 0 0 0;
    line-height: 1.7;
    background: #f8f9fa;
    padding: 12px 14px;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

.kitu-ff-space-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    margin-bottom: 6px;
}

.kitu-ff-space-credit {
    font-size: 13px;
    color: #888;
    margin: 12px 0 0 0;
    text-align: right;
    font-style: italic;
}

@media (max-width: 576px) {
    .kitu-ff-space-row {
        flex-direction: column;
    }
    .kitu-ff-space-btn {
        width: 100%;
    }
    .kitu-ff-space-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ============================================================
   Shortcode: [kitu_char_collection] — Bộ sưu tập kí tự đẹp
   ============================================================ */

.kitu-char-collection {
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.kitu-char-desc {
    font-size: 15px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.kitu-char-fieldset {
    border: 2px solid #2ecc71;
    border-radius: 12px;
    padding: 20px 20px 15px;
    background: #fff;
    position: relative;
    box-sizing: border-box;
}

.kitu-char-legend {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    position: absolute;
    top: -16px;
    left: 20px;
    line-height: 1.3;
}

.kitu-char-row {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 15px;
}

.kitu-char-row:last-child {
    margin-bottom: 0;
}

.kitu-char-label {
    color: #333;
    font-weight: 600;
    margin-right: 6px;
}

.kitu-char-list {
    display: inline;
}

.kitu-char-item {
    display: inline-block;
    margin: 0 2px;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    font-size: 18px;
    line-height: 1.4;
    vertical-align: middle;
}

.kitu-char-item:hover {
    background: #e3f2fd;
}

/* Responsive */
@media (max-width: 768px) {
    .kitu-char-fieldset {
        padding: 16px 14px 12px;
    }
    .kitu-char-legend {
        font-size: 14px;
        padding: 5px 12px;
        top: -14px;
    }
    .kitu-char-row {
        font-size: 14px;
    }
    .kitu-char-item {
        font-size: 16px;
    }
}

/* ============================================================
   Shortcode: [kitu_top_names_grid] — Top 50 Tên hay Grid
   ============================================================ */

.kitu-top-names-grid {
    padding: 20px 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.kitu-tng-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.kitu-tng-desc {
    font-size: 15px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.kitu-tng-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.kitu-tng-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.kitu-tng-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.kitu-tng-name {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    word-break: break-all;
    line-height: 1.4;
}

.kitu-tng-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.kitu-tng-likes {
    color: #28a745;
}

.kitu-tng-dislikes {
    color: #dc3545;
}

/* Tablet: 2 cột */
@media (max-width: 991px) {
    .kitu-tng-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 cột */
@media (max-width: 575px) {
    .kitu-tng-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kitu-tng-title {
        font-size: 22px;
    }

    .kitu-tng-desc {
        font-size: 14px;
    }

    .kitu-tng-name {
        font-size: 15px;
    }
}

/* ============================================================
   Shortcode: [kitu_special_recommendations] — Đề xuất kí tự đặc biệt
   ============================================================ */

.kitu-special-recommendations {
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.kitu-special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.kitu-special-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kitu-special-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: #ccc;
}

.kitu-special-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.kitu-special-title {
    font-size: 16px;
    font-weight: 600;
    color: #e91e63;
    line-height: 1.4;
}

.kitu-special-sample {
    font-size: 15px;
    color: #333;
    cursor: pointer;
    word-break: break-all;
    line-height: 1.4;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.kitu-special-sample:hover {
    background: #e3f2fd;
}

.kitu-special-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.kitu-special-likes {
    color: #28a745;
}

.kitu-special-dislikes {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 991px) {
    .kitu-special-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .kitu-special-grid {
        grid-template-columns: 1fr;
    }

    .kitu-special-title {
        font-size: 15px;
    }

    .kitu-special-sample {
        font-size: 14px;
    }
}

/* ============================================================
   kitu_chu_nho — Chữ nhỏ converter
   ============================================================ */

.kitu-chn-wrap {
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.kitu-chn-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 18px;
}

/* Dashed border box around input + button */
.kitu-chn-input-box {
    border: 2px dashed #c084fc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kitu-chn-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    resize: vertical;
    min-height: 72px;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    box-sizing: border-box;
}

.kitu-chn-input:focus {
    border-color: #c084fc;
}

/* Full-width blue pill button */
.kitu-chn-gen-btn {
    width: 100%;
    padding: 14px 20px;
    background: #1d6ff0;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin: 0;
}

.kitu-chn-gen-btn:hover {
    background: #1558cc;
}

.kitu-chn-gen-btn:active {
    transform: scale(.98);
}

/* Result blocks */
.kitu-chn-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kitu-chn-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kitu-chn-block-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

/* Read-only textarea output — pink/red border like the screenshot */
.kitu-chn-output {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1.5px solid #f48fb1;
    border-radius: 8px;
    resize: none;
    outline: none;
    background: #fff;
    color: #222;
    font-family: inherit;
    box-sizing: border-box;
    min-height: 72px;
}

.kitu-chn-output:focus {
    border-color: #e91e63;
}

/* Centered "SAO CHÉP" button */
.kitu-chn-copy-row {
    display: flex;
    justify-content: center;
}

.kitu-chn-copy-btn {
    padding: 2px 24px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .2s;
    margin: 0;
}

.kitu-chn-copy-btn:hover {
    background: #c62828;
}

.kitu-chn-copy-btn-done {
    background: #22c55e !important;
}

/* ============================================================
   kitu_color_builder — Bảng màu / BBCode builder
   ============================================================ */

.kitu-cb-wrap {
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.kitu-cb-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
}

/* Each row — one horizontal line */
.kitu-cb-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.kitu-cb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
}

/* Checkboxes inline */
.kitu-cb-chk {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.kitu-cb-chk input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 14px;
    height: 14px;
}

/* Text input — grows to fill space */
.kitu-cb-row-text {
    flex: 1;
    min-width: 120px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    height: 34px;
    box-sizing: border-box;
}

.kitu-cb-row-text:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

/* Color picker — hidden input, visible swatch */
.kitu-cb-color-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}

.kitu-cb-row-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}

.kitu-cb-color-swatch {
    display: block;
    width: 50px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

/* Row action buttons */
.kitu-cb-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 10px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
    transition: opacity .15s;
}

.kitu-cb-row-btn:hover {
    opacity: .85;
}

/* ↑ ↓ — blue */
.kitu-cb-up,
.kitu-cb-dn {
    background: #0d6efd;
    color: #fff;
    width: 34px;
    padding: 0;
    font-size: 15px;
}

/* THÊM CHỮ — green */
.kitu-cb-add-row {
    background: #198754;
    color: #fff;
}

/* XÓA DÒNG NÀY — red */
.kitu-cb-del {
    background: #dc3545;
    color: #fff;
}

/* Output section — dark background */
.kitu-cb-output {
    background: #3d3d3d;
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kitu-cb-out-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kitu-cb-out-label {
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
}

.kitu-cb-code {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-family: monospace;
    border: none;
    border-radius: 4px;
    background: #d9d9d9;
    color: #222;
    outline: none;
    box-sizing: border-box;
    height: 36px;
}

.kitu-cb-copy-btn {
    align-self: flex-start;
    padding: 8px 20px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    margin: 0;
}

.kitu-cb-copy-btn:hover {
    background: #0b5ed7;
}

.kitu-cb-copy-done {
    background: #22c55e !important;
}

.kitu-cb-preview {
    font-size: 18px;
    min-height: 32px;
    color: #fff;
    word-break: break-all;
    padding: 2px 0;
}

/* Mobile */
@media (max-width: 640px) {
    .kitu-cb-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .kitu-cb-row-text {
        flex: 1 1 100%;
        order: -1;
    }
}

/* ============================================================
   kitu_bang_mau_co_ban — Bảng màu HTML/CSS/RGB cơ bản
   ============================================================ */

.kitu-bm-wrap {
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.kitu-bm-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}

.kitu-bm-table-wrap {
    overflow-x: auto;
}

.kitu-bm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

/* Header */
.kitu-bm-th {
    padding: 12px 16px;
    text-align: center;
    color: #1565c0;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 2px solid #dee2e6;
    background: #fff;
    vertical-align: bottom;
}

.kitu-bm-th-name {
    text-align: left;
}

.kitu-bm-th-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #1565c0;
    margin-top: 2px;
}

/* Rows */
.kitu-bm-row-even {
    background: #fff;
}

.kitu-bm-row-odd {
    background: #f5f5f5;
}

.kitu-bm-td {
    padding: 10px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
    color: #333;
}

/* Color swatch */
.kitu-bm-td-color {
    width: 100px;
    text-align: center;
    padding: 8px 12px;
}

.kitu-bm-swatch {
    display: block;
    width: 90px;
    height: 38px;
    border-radius: 3px;
}

/* Name */
.kitu-bm-td-name {
    text-align: left;
    font-weight: 400;
}

/* Hex */
.kitu-bm-td-hex {
    text-align: center;
    font-family: monospace;
    font-size: 15px;
    letter-spacing: .02em;
}

/* Decimal */
.kitu-bm-td-dec {
    text-align: center;
    font-family: monospace;
    font-size: 15px;
}

@media (max-width: 575px) {
    .kitu-bm-th,
    .kitu-bm-td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .kitu-bm-swatch {
        width: 60px;
        height: 30px;
    }
}

/* ============================================================
   kitu_bang_mau_thuong_dung — Bảng màu thường dùng (grid)
   ============================================================ */

.kitu-bmg-wrap {
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.kitu-bmg-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
}

.kitu-bmg-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.kitu-bmg-cell {
    padding: 10px 4px;
    text-align: center;
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
    line-height: 1.2;
    cursor: default;
    user-select: all;
}

@media (max-width: 767px) {
    .kitu-bmg-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .kitu-bmg-cell {
        font-size: 10px;
        padding: 8px 2px;
    }
}

@media (max-width: 480px) {
    .kitu-bmg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   [kitu_bang_mau_day_du] — Bảng màu đầy đủ (302 named colors)
   ============================================================ */

.kitu-bmf-wrap {
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.kitu-bmf-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
}

.kitu-bmf-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kitu-bmf-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d0d0d0;
    table-layout: fixed;
}

.kitu-bmf-th {
    background: #fff;
    color: #1565c0;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 14px;
    text-align: center;
    border: 1px solid #d0d0d0;
    line-height: 1.4;
}

.kitu-bmf-th-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #1565c0;
    margin-top: 2px;
}

.kitu-bmf-th-name { width: 50%; text-align: center; }
.kitu-bmf-th-dec  { width: 25%; }
.kitu-bmf-th-hex  { width: 25%; }

.kitu-bmf-td {
    padding: 0;
    border: 1px solid #d0d0d0;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
}

.kitu-bmf-td-name {
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    text-align: center;
}

.kitu-bmf-td-dec,
.kitu-bmf-td-hex {
    padding: 10px 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    background: #fff;
    color: #333;
}

.kitu-bmf-table tbody tr:nth-child(even) .kitu-bmf-td-dec,
.kitu-bmf-table tbody tr:nth-child(even) .kitu-bmf-td-hex {
    background: #f5f5f5;
}

@media (max-width: 600px) {
    .kitu-bmf-th-name { width: 45%; }
    .kitu-bmf-th-dec  { width: 28%; }
    .kitu-bmf-th-hex  { width: 27%; }

    .kitu-bmf-td-name { font-size: 12px; padding: 8px 6px; }
    .kitu-bmf-td-dec,
    .kitu-bmf-td-hex  { font-size: 11px; padding: 8px 4px; }
}

/* ============================================================
   [kitu_bang_mau_cmyk] — Bảng mã màu CMYK (106 rows)
   ============================================================ */

.kitu-cmyk-wrap {
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.kitu-cmyk-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
}

.kitu-cmyk-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kitu-cmyk-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d0d0d0;
}

.kitu-cmyk-th {
    background: #fff;
    color: #1565c0;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #d0d0d0;
    white-space: nowrap;
}

.kitu-cmyk-th-stt { width: 8%; }
.kitu-cmyk-th-c,
.kitu-cmyk-th-m,
.kitu-cmyk-th-y,
.kitu-cmyk-th-k   { width: 9%; }
.kitu-cmyk-th-rgb { width: 9%; }
.kitu-cmyk-th-hex { width: 13%; }

.kitu-cmyk-td {
    padding: 9px 8px;
    border: 1px solid #d8d8d8;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
}

/* STT column: color swatch background */
.kitu-cmyk-td-stt {
    font-weight: 700;
    font-size: 14px;
}

/* CMYK columns: white / light-gray alternating */
.kitu-cmyk-td-cmyk {
    background: #fff;
    color: #333;
}
.kitu-cmyk-odd .kitu-cmyk-td-cmyk {
    background: #f5f5f5;
}

/* RGB columns: slightly blue-gray tint */
.kitu-cmyk-td-rgb {
    background: #e8edf5;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
}
.kitu-cmyk-odd .kitu-cmyk-td-rgb {
    background: #dde3ef;
}

/* HEX column */
.kitu-cmyk-td-hex {
    background: #fff;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}
.kitu-cmyk-odd .kitu-cmyk-td-hex {
    background: #f5f5f5;
}

@media (max-width: 700px) {
    .kitu-cmyk-td,
    .kitu-cmyk-th { font-size: 12px; padding: 7px 5px; }
    .kitu-cmyk-td-hex { font-size: 11px; }
}

@media (max-width: 480px) {
    .kitu-cmyk-td,
    .kitu-cmyk-th { font-size: 11px; padding: 6px 4px; }
}

/* ============================================================
   [kitu_bang_mau_mxh] — Mã màu icon mạng xã hội nổi tiếng
   ============================================================ */

.kitu-mxh-wrap {
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.kitu-mxh-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.kitu-mxh-desc {
    font-size: 14px;
    color: #444;
    margin: 0 0 8px;
    line-height: 1.6;
}

.kitu-mxh-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;
}

.kitu-mxh-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d0d0d0;
}

.kitu-mxh-th {
    background: #fff;
    color: #1565c0;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 14px;
    text-align: center;
    border: 1px solid #d0d0d0;
}

.kitu-mxh-th-name   { width: 20%; text-align: center; }
.kitu-mxh-th-dec    { width: 32%; }
.kitu-mxh-th-hex    { width: 23%; }
.kitu-mxh-th-swatch { width: 25%; }

.kitu-mxh-td {
    padding: 9px 14px;
    border: 1px solid #d8d8d8;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    background: #fff;
    color: #222;
}

.kitu-mxh-odd .kitu-mxh-td {
    background: #f5f5f5;
}

.kitu-mxh-td-name {
    font-weight: 700;
}

.kitu-mxh-td-dec,
.kitu-mxh-td-hex {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

.kitu-mxh-td-swatch {
    padding: 6px 14px;
    background: transparent !important;
}

.kitu-mxh-swatch {
    display: block;
    width: 100%;
    height: 36px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
    .kitu-mxh-th,
    .kitu-mxh-td { font-size: 12px; padding: 8px 8px; }
    .kitu-mxh-td-dec,
    .kitu-mxh-td-hex { font-size: 11px; }
}

@media (max-width: 480px) {
    .kitu-mxh-th-name   { width: 22%; }
    .kitu-mxh-th-dec    { width: 30%; }
    .kitu-mxh-th-hex    { width: 22%; }
    .kitu-mxh-th-swatch { width: 26%; }

    .kitu-mxh-swatch { height: 28px; }
}

/* ============================================================
   Shortcode: [kitu_chu_nguoc] — Chữ Ngược converter
   ============================================================ */

.kitu-cn-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0 auto;
    padding: 20px 0;
    max-width: 720px;
}

.kitu-cn-outer {
    margin-bottom: 0 !important;
}

.kitu-cn-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.kitu-cn-arrow {
    text-align: center;
    font-size: 28px;
    color: #1976d2;
    line-height: 1;
    margin: 14px 0;
}

.kitu-cn-output-wrap {
    background: #f0f4ff;
    border: 2px solid #90caf9;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 64px;
}

.kitu-cn-output {
    flex: 1;
    font-size: 22px;
    font-weight: 600;
    color: #1a237e;
    line-height: 1.5;
    word-break: break-all;
    white-space: pre-wrap;
    min-height: 32px;
}

.kitu-cn-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, transform .12s;
}

.kitu-cn-copy-btn:hover  { background: #1565c0; transform: translateY(-1px); }
.kitu-cn-copy-btn:active { transform: translateY(0); }

@media (max-width: 500px) {
    .kitu-cn-output { font-size: 18px; }
    .kitu-cn-output-wrap { flex-direction: column; }
    .kitu-cn-copy-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Shortcode: [kitu_de_xuat] — Marquee "Đề Xuất" scrolling bar
   ============================================================ */

.kitu-dx-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e91e8c;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    height: 44px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 8px 0;
}

/* Pink badge "Đề Xuất:" */
.kitu-dx-label {
    flex-shrink: 0;
    background: #e91e8c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: .02em;
}

/* Fixed section: gif + "Kí tự đặc biệt đẹp" */
.kitu-dx-fixed {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px 0 10px;
    border-right: 1.5px solid #f8bbd0;
    height: 100%;
}

.kitu-dx-gif {
    height: 20px;
    width: auto;
    display: block;
}

.kitu-dx-fixed-text {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

/* Scrolling runner */
.kitu-dx-runner {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.kitu-dx-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: kitu-dx-scroll linear infinite;
    will-change: transform;
    padding-left: 16px;
}

.kitu-dx-track:hover { animation-play-state: paused; }

@keyframes kitu-dx-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.kitu-dx-sep {
    color: #e91e8c;
    font-weight: 700;
    margin: 0 10px;
    font-size: 15px;
}

.kitu-dx-link {
    font-size: 14px;
    color: #e91e8c;
    text-decoration: none;
    font-weight: 500;
}

.kitu-dx-link:hover {
    text-decoration: underline;
    color: #e91e8c;
}

/* ── [kitu_chu_viet_tay] ────────────────────────────────────── */
.kitu-cvt-wrap {
    background: #fff;
    padding: 20px 0;
}
.kitu-cvt-hint {
    text-align: center;
    color: #555;
    margin-bottom: 12px;
}
.kitu-cvt-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.kitu-cvt-input-row {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 14px;
    margin-bottom: 4px;
}
.kitu-cvt-label {
    width: 28%;
    min-width: 160px;
    font-size: 15px;
    color: #333;
    padding-right: 12px;
    flex-shrink: 0;
}
.kitu-cvt-field {
    flex: 1;
}
.kitu-cvt-textarea {
    width: 100%;
    font-size: 17px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}
.kitu-cvt-output {
    flex: 1;
    font-size: 17px;
    line-height: 1.5;
    word-break: break-word;
    color: #1a237e;
}
.kitu-cvt-action {
    width: 90px;
    text-align: right;
    flex-shrink: 0;
}
.kitu-cvt-copy {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.kitu-cvt-copy:hover {
    background: #e8e8e8;
}

/* =====================================================
   ARCHIVE PAGE — /archive/{slug}
   ===================================================== */

.kitu-archive-page {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 16px 60px;
}

/* Hide the default inline result box on archive page */
.kitu-archive-page #kytuhay-result {
    display: none !important;
}

/* ── Primary result banner ── */
.kitu-archive-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 2px dashed #e91e63;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 20px 0 28px;
}

.kitu-archive-primary-name {
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: #111;
    letter-spacing: .03em;
    word-break: break-all;
    flex: 1;
}

.kitu-archive-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: #e91e63;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
    flex-shrink: 0;
}
.kitu-archive-copy-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.kitu-archive-copy-btn:hover { background: #c2185b; }
.kitu-archive-copy-btn:active { transform: scale(.97); }
.kitu-archive-copy-btn.kitu-copied { background: #4caf50; }

/* ── Variants section ── */
.kitu-archive-variants-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Loading */
.kitu-archive-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    color: #666;
    font-size: .9rem;
}
.kitu-archive-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: #555;
    border-radius: 50%;
    animation: kitu-archive-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes kitu-archive-spin {
    to { transform: rotate(360deg); }
}

/* Empty states */
.kitu-archive-empty {
    color: #888;
    font-size: .9rem;
    padding: 12px 0;
}

/* ── Group blocks ── */
.kitu-archive-group {
    margin-bottom: 36px;
}
.kitu-archive-group-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #666;
    margin: 0 0 12px;
}

/* ── Cards grid ── */
.kitu-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.kitu-archive-card {
    background: #fff;
    border: 1.5px solid #ececec;
    border-radius: 12px;
    padding: 16px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, box-shadow .15s;
    cursor: pointer;
}
.kitu-archive-card:hover {
    border-color: #bbb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.kitu-archive-card-name {
    font-size: 1rem;
    font-weight: 500;
    color: #111;
    word-break: break-all;
    line-height: 1.5;
    user-select: none;
    transition: color .15s;
}
.kitu-archive-card:hover .kitu-archive-card-name {
    color: #1976d2;
}
.kitu-archive-card-name.kitu-archive-card-flash {
    color: #4caf50;
}

.kitu-archive-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kitu-archive-card-label {
    font-size: .72rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.kitu-archive-card-copy {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: #f5f5f5;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .12s, color .12s;
}
.kitu-archive-card-copy svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}
.kitu-archive-card-copy:hover { background: #e0e0e0; color: #111; }
.kitu-archive-card-copy.kitu-copied {
    background: #4caf50;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    width: auto;
    padding: 0 8px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .kitu-archive-primary { flex-direction: column; align-items: flex-start; }
    .kitu-archive-copy-btn { width: 100%; justify-content: center; }
    .kitu-archive-grid { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────────────────────
   ARCHIVE PAGE: LAYOUT & CONTAINER
   ───────────────────────────────────────────────────────── */

.kitu-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.kitu-archive-page {
    padding-bottom: 64px;
}

/* ── Block 1: Archive Header ── */
.kitu-archive-header {
    text-align: center;
    padding: 36px 0 24px;
}
.kitu-archive-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 99px;
    background: linear-gradient(90deg, #e040fb, #7c4dff);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 12px;
}
.kitu-archive-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.2;
}
.kitu-archive-desc {
    font-size: .95rem;
    color: #666;
    margin: 0;
}

/* ── Block 4: In-page Navigation ── */
.kitu-archive-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 32px;
}
.kitu-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 99px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}
.kitu-nav-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.kitu-nav-link:hover {
    border-color: #7c4dff;
    background: #f3f0ff;
    color: #7c4dff;
    text-decoration: none;
}

/* ── Section common styles ── */
.kitu-archive-section {
    padding: 0;
    margin-bottom: 12px;
}
.kitu-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.kitu-section-count {
    font-size: .85rem;
    font-weight: 500;
    color: #999;
}
.kitu-section-desc {
    font-size: .9rem;
    color: #666;
    margin: 0 0 16px;
}

/* Block separators */
.kitu-container + .kitu-container {
    margin-top: 8px;
}
#kitu-top-variants,
#kitu-submit,
#kitu-share {
    margin-top: 0;
    padding-top: 28px;
    border-top: 1px solid #f0f0f0;
}

/* ── Block 5: Top Variants Grid ── */
.kitu-top-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    color: #888;
    font-size: .875rem;
}
.kitu-top-empty {
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    text-align: center;
    color: #888;
    font-size: .9rem;
}

.kitu-top-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 4px;
}

/* Individual top variant card */
.kitu-tv-card {
    background: #fff;
    border: 1.5px solid #ebebeb;
    border-radius: 14px;
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.kitu-tv-card:hover { border-color: #c9b8ff; box-shadow: 0 2px 12px rgba(124,77,255,.08); }
.kitu-tv-card.kitu-tv-new {
    border-color: #7c4dff;
    animation: kitu-tv-new-flash .6s ease;
}
@keyframes kitu-tv-new-flash {
    0%, 100% { background: #fff; }
    30% { background: #f3f0ff; }
}

.kitu-tv-name {
    font-size: .95rem;
    font-weight: 500;
    color: #111;
    word-break: break-all;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
    transition: color .12s;
}
.kitu-tv-name:hover { color: #7c4dff; }
.kitu-tv-name.kitu-tv-copied { color: #4caf50; }

.kitu-tv-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kitu-tv-copy {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .12s;
    margin-right: auto;
}
.kitu-tv-copy svg { width: 13px; height: 13px; pointer-events: none; }
.kitu-tv-copy:hover { background: #e8e8e8; }
.kitu-tv-copy.kitu-copied {
    background: #4caf50;
    color: #fff;
    width: auto;
    padding: 0 8px;
    font-size: .65rem;
    font-weight: 700;
}

.kitu-tv-vote {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1.5px solid #e8e8e8;
    border-radius: 99px;
    background: #fff;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 600;
    color: #555;
    transition: border-color .12s, background .12s, color .12s;
    flex-shrink: 0;
}
.kitu-tv-vote svg { width: 13px; height: 13px; pointer-events: none; }
.kitu-tv-vote:hover { background: #fafafa; }
.kitu-tv-up:hover, .kitu-tv-up.voted { border-color: #4caf50; color: #4caf50; background: #f1fff4; }
.kitu-tv-down:hover, .kitu-tv-down.voted { border-color: #ef5350; color: #ef5350; background: #fff5f5; }
.kitu-tv-vote.voted { cursor: default; }

/* ── Block 6: Submit Form ── */
.kitu-submit-form { margin-top: 4px; }
.kitu-submit-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.kitu-submit-input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    font-size: .95rem;
    outline: none;
    transition: border-color .15s;
    min-width: 0;
    background: #fff;
    color: #111;
}
.kitu-submit-input:focus { border-color: #7c4dff; }
.kitu-submit-input::placeholder { color: #aaa; }
.kitu-submit-btn {
    padding: 11px 22px;
    border: none;
    border-radius: 12px;
    background: #7c4dff;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
}
.kitu-submit-btn:hover { background: #6635ff; }
.kitu-submit-btn:active { transform: scale(.97); }
.kitu-submit-btn:disabled { background: #bbb; cursor: not-allowed; }
.kitu-submit-hint {
    font-size: .8rem;
    color: #aaa;
    margin: 8px 0 0;
}
.kitu-submit-feedback {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
}
.kitu-feedback-ok  { background: #f1fff4; color: #2e7d32; border: 1.5px solid #a5d6a7; }
.kitu-feedback-error { background: #fff5f5; color: #c62828; border: 1.5px solid #ef9a9a; }

/* ── Block 7: Share ── */
.kitu-share-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.kitu-share-input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    font-size: .85rem;
    background: #fafafa;
    color: #555;
    outline: none;
    min-width: 0;
    cursor: text;
}
.kitu-share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    border: none;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s;
}
.kitu-share-copy-btn svg { width: 15px; height: 15px; }
.kitu-share-copy-btn:hover { background: #333; }
.kitu-share-copy-btn.kitu-copied { background: #4caf50; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .kitu-submit-row, .kitu-share-row { flex-direction: column; }
    .kitu-submit-btn, .kitu-share-copy-btn { width: 100%; justify-content: center; }
    .kitu-top-variants-grid { grid-template-columns: 1fr; }
    .kitu-archive-nav { gap: 6px; }
    .kitu-nav-link { font-size: .8rem; padding: 6px 14px; }
}


/* ============================================================
   Shortcode: [kitu_binh_luan] — Khung bình luận
   ============================================================ */
.kitu-cmt-wrap { margin: 32px auto; }
.kitu-cmt { width: 100%; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; color: #1c1e21; }
.kitu-cmt-head { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; padding: 16px 20px; background: #f0f2f5; border-radius: 12px 12px 0 0; }
.kitu-cmt-head svg { width: 22px; height: 22px; }

.kitu-cmt-form { display: flex; gap: 12px; padding: 18px 20px; background: #f7f8fa; }
.kitu-cmt-avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; background: #6c5ce7; }
.kitu-cmt-avatar-me { background: #8e7df0; }
.kitu-cmt-avatar-admin { background: linear-gradient(135deg,#2d9cdb,#2f80ed); }
.kitu-cmt-inputs { flex: 1; }
.kitu-cmt-text { width: 100%; border: 1px solid #ccd0d5; border-radius: 18px; padding: 11px 16px; font-size: 15px; resize: none; outline: none; box-sizing: border-box; line-height: 1.4; font-family: inherit; }
.kitu-cmt-text:focus { border-color: #6c5ce7; }
.kitu-cmt-formbar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.kitu-cmt-name { flex: 0 0 180px; border: 1px solid #ccd0d5; border-radius: 8px; padding: 8px 12px; font-size: 14px; outline: none; }
.kitu-cmt-name:focus { border-color: #6c5ce7; }
.kitu-cmt-asadmin { font-size: 13px; color: #2f80ed; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.kitu-cmt-counter { margin-left: auto; font-size: 13px; color: #8a8d91; }
.kitu-cmt-counter.over { color: #e53935; font-weight: 600; }
.kitu-cmt-send { background: #6c5ce7; color: #fff; border: none; border-radius: 8px; padding: 9px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.kitu-cmt-send:hover { background: #5a4bd4; }
.kitu-cmt-send:disabled { opacity: .6; cursor: default; }

.kitu-cmt-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 20px 18px; background: #f7f8fa; border-radius: 0 0 12px 12px; }
.kitu-cmt-share-label { font-size: 14px; color: #65676b; margin-right: 4px; }
.kitu-cmt-sbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer; }
.kitu-cmt-sbtn svg { width: 16px; height: 16px; }
.kitu-cmt-fb { background: #1877f2; }
.kitu-cmt-mes { background: #0084ff; }
.kitu-cmt-copy { background: #65676b; }
.kitu-cmt-email { background: #ea4335; }
.kitu-cmt-sbtn.copied { background: #00b894; }

.kitu-cmt-list { margin-top: 8px; }
.kitu-cmt-loading, .kitu-cmt-empty { padding: 24px; text-align: center; color: #8a8d91; }

.kitu-cmt-item { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #eef0f2; }
.kitu-cmt-item .kitu-cmt-avatar { flex: 0 0 36px; width: 36px; height: 36px; font-size: 15px; }
.kitu-cmt-body { flex: 1; min-width: 0; }
.kitu-cmt-bubble { background: #f0f2f5; border-radius: 14px; padding: 7px 13px; display: inline-block; max-width: 100%; }
.kitu-cmt-item-admin .kitu-cmt-bubble { background: #e7f3ff; }
.kitu-cmt-author { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.kitu-cmt-badge { color: #2f80ed; font-size: 12px; }
.kitu-cmt-gem { font-size: 12px; }
.kitu-cmt-content { font-size: 14px; margin-top: 1px; line-height: 1.35; word-break: break-word; white-space: pre-wrap; }
.kitu-cmt-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; background: #fff; border: 1px solid #ccd0d5; border-radius: 8px; cursor: pointer; max-width: 100%; }
.kitu-cmt-chip svg { width: 15px; height: 15px; flex: 0 0 auto; color: #65676b; }
.kitu-cmt-chip-text { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.kitu-cmt-chip.copied { border-color: #00b894; color: #00b894; }

.kitu-cmt-actions { display: flex; align-items: center; gap: 14px; margin: 3px 0 0 8px; }
.kitu-cmt-like, .kitu-cmt-replybtn, .kitu-cmt-delbtn { background: none; border: none; padding: 0; font-size: 13px; font-weight: 600; color: #65676b; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.kitu-cmt-delbtn { color: #e53935; }
.kitu-cmt-delbtn:hover { text-decoration: underline; }
.kitu-cmt-like svg { width: 15px; height: 15px; }
.kitu-cmt-like:hover, .kitu-cmt-replybtn:hover { text-decoration: underline; }
.kitu-cmt-like.active { color: #2f80ed; }
.kitu-cmt-ago { font-size: 12px; color: #8a8d91; }

.kitu-cmt-replies { margin-top: 4px; }
.kitu-cmt-reply { padding: 7px 4px 2px; border-bottom: none; }
.kitu-cmt-reply .kitu-cmt-avatar { flex: 0 0 30px; width: 30px; height: 30px; font-size: 13px; }

.kitu-cmt-replyform { margin: 10px 0 4px 8px; }
.kitu-cmt-replyform input, .kitu-cmt-replyform textarea { width: 100%; border: 1px solid #ccd0d5; border-radius: 8px; padding: 8px 12px; font-size: 14px; box-sizing: border-box; outline: none; font-family: inherit; }
.kitu-cmt-replyform input { margin-bottom: 6px; max-width: 200px; }
.kitu-cmt-replyform textarea { resize: none; }
.kitu-cmt-rbar { display: flex; gap: 8px; margin-top: 6px; }
.kitu-cmt-rsend { background: #6c5ce7; color: #fff; border: none; border-radius: 8px; padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.kitu-cmt-rcancel { background: #e4e6eb; color: #1c1e21; border: none; border-radius: 8px; padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }

.kitu-cmt-loadmore { display: block; margin: 16px auto 0; background: #e4e6eb; border: none; border-radius: 8px; padding: 10px 24px; font-size: 14px; font-weight: 600; color: #1c1e21; cursor: pointer; }
.kitu-cmt-loadmore:hover { background: #d8dadf; }

@media (max-width: 600px) {
    .kitu-cmt-name { flex: 1 1 auto; }
    .kitu-cmt-formbar { flex-wrap: wrap; }
    .kitu-cmt-chip-text { max-width: 160px; }
}

/* ============================================================
   Archive: Khối SEO + showcase + đánh giá (#kitu-seo)
   ============================================================ */
.kitu-seo { margin: 36px auto 8px; }
.kitu-seo-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.kitu-seo-tab { display: inline-block; padding: 10px 18px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; color: #555; font-size: 14px; font-weight: 600; text-decoration: none; transition: all .15s; }
.kitu-seo-tab:hover { border-color: #6c5ce7; color: #6c5ce7; }
.kitu-seo-tab.active { color: #6c5ce7; border-color: #d6d0fb; }
.kitu-seo-tab:nth-child(2) { color: #00b894; }
.kitu-seo-tab:nth-child(3) { color: #e17055; }

.kitu-seo-title { font-size: 30px; font-weight: 700; color: #222; margin: 0 0 12px; }
.kitu-seo-desc { font-size: 15px; line-height: 1.7; color: #444; margin: 0 0 22px; }
.kitu-seo-sample { cursor: pointer; white-space: nowrap; }
.kitu-seo-sample:hover { color: #6c5ce7; }
.kitu-seo-sample em { color: #9aa0a6; font-style: normal; font-size: 13px; }

.kitu-seo-showcase { position: relative; text-align: center; padding: 10px 0 28px; min-height: 120px; }
#nf_cloud { max-width: 100%; cursor: pointer; }
.kitu-seo-sample.kitu-seo-copied { background: #d8f5e8; color: #00b894; }
.kitu-seo-toast { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%) translateY(8px); background: #00b894; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.kitu-seo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.kitu-seo-rate { text-align: center; padding: 8px 0 4px; }
.kitu-seo-rate > p { font-size: 16px; color: #333; margin: 0 0 14px; }
.kitu-seo-votes { display: inline-flex; gap: 14px; }
.kitu-seo-vote { display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; transition: transform .15s, opacity .15s; }
.kitu-seo-vote svg { width: 18px; height: 18px; }
.kitu-seo-like { background: #2ecc71; }
.kitu-seo-dislike { background: #95a5a6; }
.kitu-seo-vote:hover { transform: scale(1.05); }
.kitu-seo-vote.voted { opacity: .65; cursor: default; }

@media (max-width: 600px) {
    .kitu-seo-title { font-size: 23px; }
    .kitu-seo-card { font-size: 17px; }
}

/* ===== Archive: nút danh tiếng (Tôi là / Tôi biết / Lưu yêu thích) ===== */
.kitu-rep-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.kitu-rep-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; text-transform: uppercase; transition: transform .12s, opacity .12s; }
.kitu-rep-btn:hover { transform: translateY(-1px); }
.kitu-rep-iam { background: #2d7ff0; }
.kitu-rep-iknow { background: #16c0b0; }
.kitu-rep-fav { background: #e74c3c; }
.kitu-rep-btn.active { opacity: .7; cursor: default; }
.kitu-rep-fav.saved { background: #c0392b; }
.kitu-rep-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; background: rgba(255,255,255,.28); border-radius: 10px; font-size: 12px; }

@media (max-width: 600px) {
    .kitu-rep-btn { flex: 1 1 auto; justify-content: center; font-size: 12px; padding: 9px 10px; }
}

/* ===== Lịch sử sao chép: nút nổi (FAB) + trang /sao-chep ===== */
/* Stack 3 nút nhỏ xinh góc phải */
#kth-fab-stack { position: fixed; right: 14px; bottom: 90px; z-index: 9990; display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* reset đè CSS mặc định của theme (Flatsome) cho button/a */
#kth-fab-stack .kth-fab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; border: none; background: none; cursor: pointer;
    margin: 0; padding: 0; min-height: 0; max-width: none; width: auto; height: auto;
    line-height: 1; text-transform: none; letter-spacing: normal; font-weight: 400;
    box-shadow: none; border-radius: 0; text-shadow: none; -webkit-appearance: none; appearance: none;
}
#kth-fab-stack .kth-fab:hover, #kth-fab-stack .kth-fab:focus { background: none; box-shadow: none; outline: none; }
#kth-fab-stack .kth-fab-circle { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 0; border-radius: 50%; border: 1.5px solid #e91e8c; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); color: #e91e8c; transition: transform .18s, background .18s; box-sizing: border-box; }
#kth-fab-stack .kth-fab:hover .kth-fab-circle { transform: scale(1.1); }
#kth-fab-stack .kth-fab-circle svg { width: 18px; height: 18px; }
#kth-fab-stack .kth-fab-solid { background: #e91e8c; color: #fff; border-color: #e91e8c; }
#kth-fab-stack .kth-fab-label { display: block; text-align: center; font-size: 9px; color: #555; font-weight: 700; margin-top: 3px; line-height: 1; white-space: nowrap; }
#kth-copy-fab-badge, #kth-fav-fab-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 10px; background: #ff1744; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; display: none; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: border-box; }
#kth-top-fab { display: none; }

.kth-saochep-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.kth-saochep-clear { background: #ffe9e7; color: #e74c3c; border: 1px solid #f5c6c0; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.kth-saochep-clear:hover { background: #fdd; }
.kth-saochep-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kth-sc-item { background: #fff; border: 1px solid #eef0f2; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.kth-sc-text { font-size: 18px; word-break: break-word; cursor: pointer; }
.kth-sc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: #8a8d91; }
.kth-sc-time { display: inline-flex; align-items: center; gap: 4px; }
.kth-sc-time svg { width: 13px; height: 13px; }
.kth-sc-clock { color: #b0b3b8; }
.kth-sc-copy { align-self: flex-start; margin-top: 4px; background: #f0eefe; color: #6c5ce7; border: none; border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.kth-sc-copy:hover { background: #e4e0fd; }
.kth-sc-copy.done { background: #d8f5e8; color: #00b894; }
.kth-sc-empty { grid-column: 1 / -1; text-align: center; color: #8a8d91; padding: 50px 20px; }

@media (max-width: 600px) { .kth-saochep-list { grid-template-columns: 1fr; } }

/* ===== Thanh tạo tên dính đáy (hiện khi cuộn qua generator) ===== */
.kytuhay-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980; padding: 10px 14px; transform: translateY(135%); transition: transform .3s ease; }
.kytuhay-sticky.show { transform: translateY(0); }
/* hộp dùng lại .kytuhay-container (viền nét đứt + nền hồng) nhưng gọn hơn */
.kytuhay-sticky-box.kytuhay-container { margin: 0 auto; padding: 12px; box-shadow: 0 -4px 24px rgba(0,0,0,.14); }
.kytuhay-sticky-box .kytuhay-input-wrap { margin: 0; }
.kytuhay-sticky-box .kytuhay-input { margin: 0; }
.kytuhay-sticky-box.kytuhay-container .kytuhay-btn { margin: 10px 0 0; padding: 12px 24px; font-size: 16px; }

/* Nâng stack 3 nút lên khi thanh sticky hiện để khỏi đè */
#kth-fab-stack { transition: bottom .3s ease; }
body.kth-sticky-on #kth-fab-stack { bottom: 170px; }

/* ============================================================
   Shortcode: [kitu_khoang_trong] — tool tạo khoảng trống
   ============================================================ */
.kt-blank-wrap { margin: 24px auto; }
.kt-blank { width: 100%; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; color: #1c1e21; }
/* reset đè CSS mặc định của Flatsome cho mọi button trong tool */
.kt-blank button { margin: 0; min-height: 0; line-height: normal; text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none; vertical-align: middle; -webkit-appearance: none; appearance: none; }
.kt-blank-head { border-bottom: 2px solid #111; padding-bottom: 7px; margin-bottom: 14px; }
.kt-blank-hot { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #333; }
.kt-blank-hot::first-letter { color: #f41252; }
.kt-blank-title { font-size: 22px; font-weight: 800; margin: 4px 0 0; color: #111; }

.kt-blank-label { font-size: 13px; color: #777; margin: 2px 0 7px; }
.kt-blank-row-head { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.kt-blank-sel { font-size: 13px; font-weight: 700; color: #111; }

.kt-blank-tabs { display: flex; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.kt-blank-tab { flex: 1; background: #fff; border: none; padding: 9px 8px; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; border-right: 1px solid #eee; }
.kt-blank-tab:last-child { border-right: none; }
.kt-blank-tab.active { background: #111; color: #fff; }

.kt-blank-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 4px; }
.kt-blank-chip { background: #fff; border: 1px solid #e3e3e3; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; transition: all .15s; }
.kt-blank-chip:hover { border-color: #f41252; color: #f41252; }
.kt-blank-chip.active { background: #111; color: #fff; border-color: #111; }
.kt-blank-more { background: #fff; border: 1px solid #f41252; color: #f41252; border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.kt-blank-more:hover { background: #fff0f5; }
.kt-hidden { display: none !important; }

.kt-blank-actions { display: flex; gap: 10px; margin: 16px 0 6px; }
.kt-blank-copy { flex: 1; background: #ff0a78; color: #fff; border: none; border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; }
.kt-blank-copy:hover { background: #e60069; }
.kt-blank-copy.done { background: #00b894; }
.kt-blank-reset { width: 48px; background: #fff; border: 1px solid #ddd; border-radius: 10px; font-size: 16px; color: #555; cursor: pointer; }
.kt-blank-reset:hover { border-color: #f41252; color: #f41252; }

.kt-blank-rate { text-align: center; margin-top: 16px; }
.kt-blank-rate > p { font-size: 14px; font-weight: 600; color: #444; margin: 0 0 10px; }
.kt-blank-votes { display: inline-flex; gap: 12px; }
.kt-blank-vote { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; transition: transform .15s, opacity .15s; }
.kt-blank-like { background: #2ecc71; }
.kt-blank-dislike { background: #7f8c9a; }
.kt-blank-vote:hover { transform: scale(1.04); }
.kt-blank-vote.voted { opacity: .6; cursor: default; }

@media (max-width: 700px) {
    .kt-blank-title { font-size: 19px; }
    .kt-blank-tab { font-size: 12px; padding: 8px 5px; }
    .kt-blank-chip { padding: 6px 12px; font-size: 12px; }
}
