#joke-tool-wrap {
    font-family: 'Segoe UI', sans-serif;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Counter */
#joke-tool-wrap .jt-header {
    margin-bottom: 20px;
}

#joke-tool-wrap .jt-counter-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f9f6ff;
    border: 1px solid #e0d9f7;
    /* border-radius: 30px; */
    padding: 6px 16px;
}

#joke-tool-wrap .jt-counter-num {
    font-size: 18px;
    font-weight: 700;
    color: #534AB7;
}

#joke-tool-wrap .jt-counter-label {
    font-size: 12px;
    color: #7f77dd;
    font-weight: 500;
}

/* Search box */
#joke-tool-wrap .jtbox {
    background: #ffffff;
    border: 1px solid #e8e8ed;
    /* border-radius: 14px; */
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

#joke-tool-wrap .jtrow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width: 480px) {
    #joke-tool-wrap .jtrow { grid-template-columns: 1fr; }
}

#joke-tool-wrap label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

#joke-tool-wrap input,
#joke-tool-wrap select {
    width: 100%;
    background: #f7f7fa;
    border: 1px solid #e0e0e8;
    /* border-radius: 8px; */
    padding: 11px 14px;
    font-size: 15px;
    color: #1a1a2e;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

#joke-tool-wrap input:focus,
#joke-tool-wrap select:focus {
    border-color: #7f77dd;
    background: #fff;
}

#joke-tool-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none;
    padding-right: 36px;
}

#joke-tool-wrap .jtbtn {
    width: 100%;
    padding: 13px;
    background: #534AB7;
    border: none;
    /* border-radius: 8px; */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
}

#joke-tool-wrap .jtbtn:hover { background: #4540a0; transform: translateY(-1px); }
#joke-tool-wrap .jtbtn:active { transform: scale(0.98); }
#joke-tool-wrap .jtbtn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Empty state */
#joke-tool-wrap .jt-empty {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed #ddd;
    /* border-radius: 14px; */
    color: #aaa;
    font-size: 14px;
}

/* Joke cards */
#joke-tool-wrap .jt-card {
    background: #ffffff;
    border: 1px solid #e8e8ed;
    /* border-radius: 14px; */
    padding: 18px 20px;
    margin-bottom: 12px;
    position: relative;
    animation: jtfade .3s ease both;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

#joke-tool-wrap .jt-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

#joke-tool-wrap .jt-card.top-rated {
    border-color: #7f77dd;
    background: #f9f6ff;
}

@keyframes jtfade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#joke-tool-wrap .jt-num {
    font-size: 11px;
    font-weight: 700;
    color: #7f77dd;
    letter-spacing: .1em;
    margin-bottom: 8px;
    opacity: .8;
}

#joke-tool-wrap .jt-text {
    font-size: 15px;
    line-height: 1.65;
    color: #1a1a2e;
    padding-right: 10px;
    margin-bottom: 14px;
}

/* Tags */
#joke-tool-wrap .jt-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

#joke-tool-wrap .jt-tag {
    font-size: 11px;
    padding: 3px 10px;
    /* border-radius: 20px; */
    background: #f0effe;
    color: #7f77dd;
    border: 1px solid #e0d9f7;
}

/* Action buttons row */
#joke-tool-wrap .jt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid #f0f0f5;
    padding-top: 12px;
}

#joke-tool-wrap .jt-copy,
#joke-tool-wrap .jt-share-btn,
#joke-tool-wrap .jt-rate-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    /* border-radius: 20px; */
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e0e0e8;
    background: #f7f7fa;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}

#joke-tool-wrap .jt-copy:hover { background: #eee; }
#joke-tool-wrap .jt-copy.ok { border-color: #534AB7; background: #f0effe; color: #534AB7; }

/* Share buttons */
#joke-tool-wrap .jt-share-btn.whatsapp:hover { background: #e7fce7; border-color: #25d366; color: #128c38; }
#joke-tool-wrap .jt-share-btn.twitter:hover  { background: #e8f5fd; border-color: #1da1f2; color: #1a8dc8; }
#joke-tool-wrap .jt-share-btn.facebook:hover { background: #e8edf8; border-color: #1877f2; color: #1560cc; }

/* Rating buttons */
#joke-tool-wrap .jt-rate-btn.up:hover   { background: #e7fce7; border-color: #4caf50; color: #2e7d32; }
#joke-tool-wrap .jt-rate-btn.down:hover { background: #fce7e7; border-color: #f44336; color: #c62828; }
#joke-tool-wrap .jt-rate-btn.up.active  { background: #e7fce7; border-color: #4caf50; color: #2e7d32; }
#joke-tool-wrap .jt-rate-btn.down.active{ background: #fce7e7; border-color: #f44336; color: #c62828; }

#joke-tool-wrap .jt-rating-score {
    font-size: 11px;
    color: #aaa;
    margin-left: 4px;
}

/* Load more */
#joke-tool-wrap .jt-loadmore-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: #fff;
    border: 2px dashed #c0bce8;
    /* border-radius: 10px; */
    font-size: 14px;
    font-weight: 600;
    color: #534AB7;
    cursor: pointer;
    font-family: inherit;
    margin-top: 4px;
    transition: background 0.15s, border-color 0.15s;
}

#joke-tool-wrap .jt-loadmore-btn:hover {
    background: #f9f6ff;
    border-color: #7f77dd;
}

/* Error */
#joke-tool-wrap .jt-error {
    background: #fff0f0;
    border: 1px solid #fcc;
    /* border-radius: 10px; */
    padding: 14px 16px;
    color: #c0392b;
    font-size: 13px;
    margin-top: 10px;
    display: none;
}

/* Skeleton */
#joke-tool-wrap .jt-skel {
    background: #f7f7fa;
    border: 1px solid #eee;
    /* border-radius: 14px; */
    padding: 18px 20px;
    margin-bottom: 10px;
}

#joke-tool-wrap .jt-skel-line {
    height: 11px;
    /* border-radius: 6px; */
    background: linear-gradient(90deg, #ebebf0 25%, #f5f5fa 50%, #ebebf0 75%);
    background-size: 200% 100%;
    animation: jtshim 1.4s infinite;
    margin-bottom: 9px;
}

@keyframes jtshim {
    to { background-position: -200% 0; }
}