.thsnppsr-wrapper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.thsnppsr-inner {
    padding: 12px 8px 16px;
}

.thsnppsr-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.thsnppsr-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(120deg, #ffdd00, #ff6f61, #9b5bff);
    color: #111;
    font-weight: 700;
}

/* Search Box */
.thsnppsr-search-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
}

/* ✅ MOBILE ZOOM FIX */
.thsnppsr-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 999px;
    border: 2px solid #ffdd00;
    outline: none;
    font-size: 16px;  /* DO NOT REDUCE BELOW 16px */
    background: #fff;
    box-shadow: 0 0 0 0 rgba(0,0,0,0.08);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.thsnppsr-input:focus {
    border-color: #9b5bff;
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.thsnppsr-button {
    align-self: center;
    padding: 10px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6f61, #ffdd00);
    color: #111;
    box-shadow: 0 10px 24px rgba(255, 111, 97, 0.35);
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.thsnppsr-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 111, 97, 0.45);
    filter: brightness(1.05);
}

.thsnppsr-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(255, 111, 97, 0.4);
}

/* Spinner */
.thsnppsr-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.thsnppsr-spinner-circle {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #ff6f61;
    animation: thsnppsr-spin 0.95s linear infinite;
}

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

/* Message */
.thsnppsr-message {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: #fff3cd;
    border-left: 4px solid #ffdd00;
}

/* Results */
.thsnppsr-results {
    border-radius: 24px;
    padding: 14px 10px 4px;
    background: radial-gradient(circle at 0 0, #ffe5f1, #fff7cc 32%, #ddf4ff 70%, #f1e6ff 100%);
}

.thsnppsr-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 12px;
}

/* Card */
.thsnppsr-card {
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88));
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
    padding: 1px;
}

.thsnppsr-card-inner {
    border-radius: 19px;
    padding: 10px 10px 8px;
    background:
        linear-gradient(135deg, rgba(255, 221, 0, 0.25), rgba(155, 91, 255, 0.28));
}

.thsnppsr-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.thsnppsr-avatar-wrap {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
    background: radial-gradient(circle at 0 0, #ffdd00, #ff6f61 40%, #9b5bff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thsnppsr-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thsnppsr-avatar-fallback span {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

/* Card main info */
.thsnppsr-card-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.thsnppsr-name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thsnppsr-username {
    font-size: 12px;
    color: #4b5563;
    opacity: 0.9;
}

/* Card bottom */
.thsnppsr-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 4px;
}

.thsnppsr-followers {
    font-size: 12px;
    font-weight: 500;
    color: #1f2933;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}

/* Add button */
.thsnppsr-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ff6f61, #ffdd00);
    color: #111827;
    box-shadow: 0 8px 18px rgba(255, 111, 97, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.thsnppsr-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 111, 97, 0.55);
    filter: brightness(1.05);
}

.thsnppsr-add-btn-disabled {
    cursor: default;
    opacity: 0.5;
    box-shadow: none;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

/* Responsive */
@media (max-width: 960px) {
    .thsnppsr-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .thsnppsr-results-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    /* KEEP INPUT AT 16PX TO STOP ZOOM */
    .thsnppsr-button {
        width: 100%;
    }
}
